- From: Manu Sporny <notifications@github.com>
- Date: Tue, 15 Dec 2015 21:18:36 -0800
- To: w3c/webpayments <webpayments@noreply.github.com>
- Message-ID: <w3c/webpayments/issues/37@github.com>
The paymentRequest API asserts that the list of accepted payment methods that a payee exposes to the payer should be a list of strings: http://wicg.github.io/paymentrequest/specs/paymentrequest.html#paymentrequest-interface For example: ```javascript ["visa", "bitcoin", "bobpay.com"] ``` The Web Payments CG Browser API asserts that the list should be composed of objects: http://wicg.github.io/web-payments-browser-api/#processing-a-payment-request For example: ```javascript acceptedScheme: [{ scheme: [ 'https://w3id.org/payment-schemes#Visa', 'https://w3id.org/payment-schemes#Mastercard', 'https://w3id.org/payment-schemes#Discover' ], transfer: { amount: '4.35', currency: 'USD' }, paymentRequestService: 'https://merchant-psp.example.com/services/getPaymentInfo' }, { scheme: 'https://w3id.org/payment-schemes#Bitcoin', transfer: { amount: '0.0177', currency: 'BTC' }, destination: '3QJmV3qfvL9SuYo34YihAf3sRCW3qSinyC' }, ``` Should list of accepted payment methods be strings or objects? --- Reply to this email directly or view it on GitHub: https://github.com/w3c/webpayments/issues/37
Received on Wednesday, 16 December 2015 05:19:06 UTC