Index: ios/chrome/browser/ui/payments/js_payment_request_manager.h |
diff --git a/ios/chrome/browser/ui/payments/js_payment_request_manager.h b/ios/chrome/browser/ui/payments/js_payment_request_manager.h |
index f1a573d3fc4763509dfc9026c72d698cd471555f..81d319ced7636d8931db52b71ea4914d7da50d71 100644 |
--- a/ios/chrome/browser/ui/payments/js_payment_request_manager.h |
+++ b/ios/chrome/browser/ui/payments/js_payment_request_manager.h |
@@ -51,6 +51,14 @@ class PaymentShippingOption; |
completionHandler: |
(ProceduralBlockWithBool)completionHandler; |
+// Rejects the JavaScript promise returned by the call to canMakePayment on the |
+// current PaymentRequest, with the supplied |errorMessage|. If |
+// |completionHandler| is not nil, it will be invoked with YES after the |
+// operation has completed successfully or with NO otherwise. |
+- (void)rejectCanMakePaymentPromiseWithErrorMessage:(NSString*)errorMessage |
+ completionHandler:(ProceduralBlockWithBool) |
+ completionHandler; |
+ |
// Resolves the promise returned by PaymentRequest.prototype.abort. |
- (void)resolveAbortPromiseWithCompletionHandler: |
(ProceduralBlockWithBool)completionHandler; |