Skip to content

Instantly share code, notes, and snippets.

{
"author": "Ryan Connelly <ryan@quad.io> (http://quad.io)",
"name": "shopnode",
"description": "A complete node client for the shopify api.",
"version": "0.0.2",
"homepage": "http://quad.io",
"main": "lib/shopnode.js",
"scripts": {
"test": "make test"
},
-(void) fetchCustomerForPayment
{
// Retrieve Customer associated with a self.ppsPayment
[MMProgressHUD showWithTitle:@"Looking for customer information..."];
[self.ppsPayment getCustomerWithCompletion:^(BOOL success, PPSCustomer *customer, NSError *error) {
self.customer = customer;
if (success) {
PopupConfirmationViewController *vc = [PopupConfirmationViewController popup:kPopupConfirmationTypeApproved delegate:self];
vc.ppsPayment = self.ppsPayment; // Optional
vc.message = @"Custom Message Here"; // Optional
[vc showWithVC:self];