Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // This method register user to Warply Pay platform. Password must be at least 6 characters. Use register callback to confirm registration success and receive the card_id.
- //
- [WarplyPay registerUser:email name:name password:password deviceID:deviceID successBlock:^(id contextResponse) {
- } failureBlock:^(NSError *error) {
- }];
- //
- // This method login user to Warply Pay platform.
- //
- [WarplyPay login:email password:password deviceID:deviceID successBlock:^(id contextResponse) {
- } failureBlock:^(NSError *error) {
- }];
- //
- // This method deletes card from certain user. Use callback to confirm that card has deleted successfully.
- //
- [WarplyPay deleteCardWithCardID:cardID successBlock:^(id contextResponse) {
- } failureBlock:^(NSError *error) {
- }];
- //
- // This method register user to Warply Pay platform with card with one call. First create a card object and the pass it on function with other parameters.Password must be at least 6 characters.
- // Use register callback to confirm registration successand receive the card_id.
- //
- [WarplyPay registerUserWithCard:card email:email name:name password:password deviceID:deviceID successBlock:^(id contextResponse) {
- } failureBlock:^(NSError *error) {
- }];
- //
- // This method add card to user. First create a card object and pass it on function. Use callback to verify that card added successfully.
- //
- [WarplyPay addCard:card successBlock:^(id contextResponse) {
- } failureBlock:^(NSError *error) {
- }];
- //
- // This method retrieves the available products for the specific merchant id on the callback
- //
- [WarplyPay getAvailableProductsWithSuccessBlock:^(id contextResponse) {
- } failureBlock:^(NSError *error) {
- }];
- //
- // This method buys products that is specified. This method works for specific item. First create BasketItem object and then pass it on function with the card_id.
- //
- [WarplyPay buyProduct:item amount:amount cardID:cardID successBlock:^(id contextResponse) {
- } failureBlock:^(NSError *error) {
- }];
- //
- // This method buys products that is specified. This method works for array of item. First create BasketItem objects and then pass them in an NSArray on function with the card_id.
- //
- [WarplyPay buyProducts:@[item1, item2] amount:amount cardID:cardID successBlock:^(id contextResponse) {
- } failureBlock:^(NSError *error) {
- }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement