Commit 2b58afd0 by Brent Gulanowski

Merge pull request #223 from Shopify/task/advance-sample-fix

Update to new API for checkout creation
parents 726b6580 03fc0c2d
...@@ -286,7 +286,7 @@ ...@@ -286,7 +286,7 @@
BUYCart *cart = [self.client.modelManager insertCartWithJSONDictionary:nil]; BUYCart *cart = [self.client.modelManager insertCartWithJSONDictionary:nil];
[cart addVariant:product.variants.firstObject]; [cart addVariant:product.variants.firstObject];
BUYCheckout *checkout = [[BUYCheckout alloc] initWithCart:cart]; BUYCheckout *checkout = [[BUYCheckout alloc] initWithModelManager:cart.modelManager cart:cart];
// Apply billing and shipping address, as well as email to the checkout // Apply billing and shipping address, as well as email to the checkout
checkout.shippingAddress = [self address]; checkout.shippingAddress = [self address];
......
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