Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1989)

Unified Diff: ios/chrome/browser/ui/payments/js_payment_request_manager.h

Issue 2968503002: [Payment Request] CanMakePayment (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698