Advertisement
Guest User

Untitled

a guest
Jul 11th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. //
  2. // 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.
  3. //
  4. [WarplyPay registerUser:email name:name password:password deviceID:deviceID successBlock:^(id contextResponse) {
  5.  
  6. } failureBlock:^(NSError *error) {
  7.  
  8. }];
  9.  
  10. //
  11. // This method login user to Warply Pay platform.
  12. //
  13. [WarplyPay login:email password:password deviceID:deviceID successBlock:^(id contextResponse) {
  14.  
  15. } failureBlock:^(NSError *error) {
  16.  
  17. }];
  18.  
  19.  
  20. //
  21. // This method deletes card from certain user. Use callback to confirm that card has deleted successfully.
  22. //
  23. [WarplyPay deleteCardWithCardID:cardID successBlock:^(id contextResponse) {
  24.  
  25. } failureBlock:^(NSError *error) {
  26.  
  27. }];
  28.  
  29. //
  30. // 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.
  31. // Use register callback to confirm registration successand receive the card_id.
  32. //
  33. [WarplyPay registerUserWithCard:card email:email name:name password:password deviceID:deviceID successBlock:^(id contextResponse) {
  34.  
  35. } failureBlock:^(NSError *error) {
  36.  
  37. }];
  38.  
  39. //
  40. // This method add card to user. First create a card object and pass it on function. Use callback to verify that card added successfully.
  41. //
  42. [WarplyPay addCard:card successBlock:^(id contextResponse) {
  43.  
  44. } failureBlock:^(NSError *error) {
  45.  
  46. }];
  47.  
  48. //
  49. // This method retrieves the available products for the specific merchant id on the callback
  50. //
  51. [WarplyPay getAvailableProductsWithSuccessBlock:^(id contextResponse) {
  52.  
  53. } failureBlock:^(NSError *error) {
  54.  
  55. }];
  56.  
  57. //
  58. // 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.
  59. //
  60. [WarplyPay buyProduct:item amount:amount cardID:cardID successBlock:^(id contextResponse) {
  61.  
  62. } failureBlock:^(NSError *error) {
  63.  
  64. }];
  65.  
  66. //
  67. // 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.
  68. //
  69. [WarplyPay buyProducts:@[item1, item2] amount:amount cardID:cardID successBlock:^(id contextResponse) {
  70.  
  71. } failureBlock:^(NSError *error) {
  72.  
  73. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement