Commit 03fc0c2d by Brent Gulanowski

Update to new API for checkout creation.

parent e7632aba
......@@ -286,7 +286,7 @@
BUYCart *cart = [self.client.modelManager insertCartWithJSONDictionary:nil];
[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
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