mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-05 12:05:22 +00:00
af95d86b7f
1. Create a new action response status PAYMENT_NOTSUPPORTED and get rid of unnecessary method isAccpeted() from nsIPaymentActionResponse.idl. 2. Create canMakePayment() in PaymentRequestService and run it before launching UI. If canMakePayment() returns false, send PAYMENT_NOTSUPPORTED back to content process. 3. If chrome process returns PAYMENT_NOTSUPPORTED when calling showPayment(), throw NotSupportedError DOMException to merchant side. |
||
---|---|---|
.. | ||
moz.build | ||
PaymentRequestChild.cpp | ||
PaymentRequestChild.h | ||
PaymentRequestParent.cpp | ||
PaymentRequestParent.h | ||
PPaymentRequest.ipdl |