From de1a19ffd0c8e7ab9b2722faf952568776d7a143 Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Thu, 4 Aug 2022 14:43:46 -0500 Subject: [PATCH] Fix checkout payment memo --- CHANGELOG.md | 1 + src/app/checkout/checkout.component.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bff525d..0c5f5fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Fixed +- Fixed order memo for checkout - Fixed display of amounts in item list when using *zatoshis* - Fixed sorting of items in list - Fixed sorting of orders in list diff --git a/src/app/checkout/checkout.component.ts b/src/app/checkout/checkout.component.ts index 5298fc0..815afe0 100644 --- a/src/app/checkout/checkout.component.ts +++ b/src/app/checkout/checkout.component.ts @@ -28,7 +28,7 @@ export class CheckoutComponent implements OnInit{ this.address = data.addr; this.total = data.totalZec; this.orderId = data.orderId; - this.codeString = `zcash:${this.address}?amount=${this.total.toFixed(6)}&memo=${URLSafeBase64.encode(Buffer.from('Z-Go Order '.concat(this.orderId)))}`; + this.codeString = `zcash:${this.address}?amount=${this.total.toFixed(8)}&memo=${URLSafeBase64.encode(Buffer.from('ZGo Order::'.concat(this.orderId)))}`; this.zcashUrl = this.sanitizer.bypassSecurityTrustUrl(this.codeString); }