Skip to content

Instantly share code, notes, and snippets.

@bespalown
Last active August 29, 2015 14:10
Show Gist options
  • Save bespalown/fea92cf78bff84dbc55f to your computer and use it in GitHub Desktop.
Save bespalown/fea92cf78bff84dbc55f to your computer and use it in GitHub Desktop.
pay.cards
PCDMerchant *merchant = [PCDMerchant new];
merchant.ID = @100018; //Merchant's ID. Should be obtained after a registration (see Prerequisites). Mandatory field.
merchant.password = @"ChuWeIle"; //Merchant's password. Should be obtained after a registration (see Prerequisites). Mandatory field.
merchant.clientId = @"Merchant_W1"; //Client's ID in Merchant's system. Mandatory field.
merchant.email = @"[email protected]"; // Client's email. Can be empty.
merchant.phone = @"+79854619029"; //Client phone. Can be empty.
PCDCardScanViewController *scanDardVC = [PCDCardScanViewController new];
scanDardVC.merchant = merchant; //merchant property is necessary, otherwise error will occur
scanDardVC.delegate = self;
[self.navigationController pushViewController:rootVC animated:NO];
[self.navigationController pushViewController:scanDardVC animated:NO];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment