Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced Sample App: Prefetch BUYShop for Apple Pay #4

Merged
merged 4 commits into from Oct 5, 2015

Conversation

runmad
Copy link
Contributor

@runmad runmad commented Oct 2, 2015

What this does

This adds an example of pre-fetching the BUYShop object for use with Apple Pay. Also use the currency and country code, if available.

I also added an example of getting a completed BUYCheckout once an Apple Pay checkout is completed.

  • Prefetch BUYShop
  • Use the shop's currency and country code for the PKPaymentRequest object
  • Example of getting the completed BUYCheckout once an Apple Pay checkout is completed

Fix #3


// Get the completed checkout
[self.client getCheckout:self.applePayHelper.checkout completion:^(BUYCheckout *checkout, NSError *error) {
NSLog(@"%@", checkout);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One of these will always be nil, can you wrap these logs in a if statement

@runmad
Copy link
Contributor Author

runmad commented Oct 5, 2015

@davidmuzi I've added logic in response to your comment.

@davidmuzi
Copy link

Good to merge

runmad added a commit that referenced this pull request Oct 5, 2015
Advanced Sample App: Prefetch BUYShop for Apple Pay
@runmad runmad merged commit 663d399 into develop Oct 5, 2015
@runmad runmad deleted the runmad.3-shop-name-prefetch branch October 5, 2015 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants