Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const request = new PaymentRequest(buildPaymentMethodData(), buildDetails());
- // TODO Next
- function buildPaymentMethodData() {
- // Example supported payment methods:
- return [{
- supportedMethods: 'basic-card',
- data: {
- supportedNetworks: ['visa', 'mastercard'],
- supportedTypes: ['debit', 'credit']
- }
- }];
- }
- function buildDetails() {
- return {
- id: 'count-order',
- displayItems: [
- {
- label: 'รองเท้าวิ่ง',
- amount: {currency: 'USD', value: '50.00'}
- }
- ],
- total: {
- label: 'Total',
- amount: {currency: 'USD', value: count }
- }
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement