Fix checkout payment memo

This commit is contained in:
Rene Vergara 2022-08-04 14:43:46 -05:00
parent b5885517e9
commit de1a19ffd0
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2
2 changed files with 2 additions and 1 deletions

View file

@ -33,6 +33,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Fixed ### Fixed
- Fixed order memo for checkout
- Fixed display of amounts in item list when using *zatoshis* - Fixed display of amounts in item list when using *zatoshis*
- Fixed sorting of items in list - Fixed sorting of items in list
- Fixed sorting of orders in list - Fixed sorting of orders in list

View file

@ -28,7 +28,7 @@ export class CheckoutComponent implements OnInit{
this.address = data.addr; this.address = data.addr;
this.total = data.totalZec; this.total = data.totalZec;
this.orderId = data.orderId; 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); this.zcashUrl = this.sanitizer.bypassSecurityTrustUrl(this.codeString);
} }