- From: Rouslan Solomakhin <notifications@github.com>
- Date: Tue, 25 Jun 2019 07:41:43 -0700
- To: w3c/payment-request <payment-request@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 25 June 2019 14:42:05 UTC
> would an enhancement to the API make this possible in a future release?
Yep, if you have a few locations, you should be able to call PR API like so:
```javascript
new PaymentRequest[{
supportedMethods:
'basic-card',
}], {
total: {
label: 'Total',
amount: {
currency: 'USD',
value: '1.00',
},
},
modifiers: [{
supportedMethods: 'basic-card',
total: {
label: '(Canada) Total',
amount: {
currency: 'CAD',
value: '1.00',
},
},
data: {
cardNumberPrefix: '411111',
}
}]
}).show();
```
Such an enhancement would require some changes to either this spec or to https://w3c.github.io/payment-method-basic-card/.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/payment-request/issues/870#issuecomment-505476001
Received on Tuesday, 25 June 2019 14:42:05 UTC