- From: cozohar <notifications@github.com>
- Date: Sun, 06 May 2018 11:46:23 +0000 (UTC)
- To: w3c/payment-request <payment-request@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 6 May 2018 11:46:48 UTC
Hi, I'm trying to understand why canMakePayment always return false although I have setup a card in the broswer. (When testing locally it always return true). I configured a Visa test card in Chrome 4111111111111111 and also a real mastercard. I'm attaching the browser console. Am I doing something wrong? Is there a problem maybe? ``` const methodData = [{ supportedMethods: "basic-card", data: { supportedNetworks: ["mastercard","visa"], supportedTypes: ["debit", "credit"] } } ]; const details = { total: { label: "Total due", amount: {currency: "USD", value: "10.00"} } }; var request = new PaymentRequest(methodData, details); PaymentRequest {id: "c12d264e-f677-49c8-b050-2252e38f5e24", shippingAddress: null, shippingOption: null, shippingType: null, onshippingaddresschange: null, …} request.canMakePayment().then((result) => { console.log(result); }); Promise {<pending>} __proto__: Promise [[PromiseStatus]]: "resolved" [[PromiseValue]]: undefined false ``` -- 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/708
Received on Sunday, 6 May 2018 11:46:48 UTC