Commit 69fafd74 by Rune Madsen

Add example of fetching the completed BUYCheckout object after Apple Pay completes.

parent d7491527
...@@ -294,6 +294,12 @@ NSString * const MerchantId = @""; ...@@ -294,6 +294,12 @@ NSString * const MerchantId = @"";
{ {
// Add additional methods if needed and forward the callback to BUYApplePayHelpers // Add additional methods if needed and forward the callback to BUYApplePayHelpers
[self.applePayHelper paymentAuthorizationViewController:controller didAuthorizePayment:payment completion:completion]; [self.applePayHelper paymentAuthorizationViewController:controller didAuthorizePayment:payment completion:completion];
// Get the completed checkout
[self.client getCheckout:self.applePayHelper.checkout completion:^(BUYCheckout *checkout, NSError *error) {
NSLog(@"%@", checkout);
NSLog(@"%@", error);
}];
} }
- (void)paymentAuthorizationViewControllerDidFinish:(PKPaymentAuthorizationViewController *)controller - (void)paymentAuthorizationViewControllerDidFinish:(PKPaymentAuthorizationViewController *)controller
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment