Advertisement
Guest User

Payment Test Data

a guest
Apr 7th, 2017
1,048
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.34 KB | None | 0 0
  1. //Payment Test Data
  2. //No line Item
  3. {
  4. "customerId": 1,
  5. "paymentType": "TWO_CHECKOUT",
  6. "total": 50,
  7. "currency": "USD",
  8. "billing": {
  9.   "name": "string",
  10.   "addrLine1": "string",
  11.   "email": "roberto@gmail.com",
  12.   "phone": "70470934"
  13.   }
  14. }
  15. //Single Line Item
  16. {
  17. "customerId": 1,
  18. "paymentType": "TWO_CHECKOUT",
  19. "total": 50,
  20. "currency": "USD",
  21. "billing": {
  22.   "name": "string",
  23.   "addrLine1": "string",
  24.   "email": "roberto@gmail.com",
  25.   "phone": "70470934"
  26.   },
  27.   "lineItems": [
  28.     {
  29.       "type": "PRODUCT",
  30.       "serial": "5184-6565",
  31.       "quantity": 1,
  32.       "concept": "test",
  33.       "unitPrice": 10,
  34.       "totalPrice": 10
  35.     }
  36.   ]
  37. }
  38. //Multiple Line Items
  39. {
  40. "customerId": 1,
  41. "paymentType": "TWO_CHECKOUT",
  42. "total": 50,
  43. "currency": "USD",
  44. "billing": {
  45.   "name": "string",
  46.   "addrLine1": "string",
  47.   "email": "roberto@gmail.com",
  48.   "phone": "70470934"
  49.   },
  50.   "lineItems": [
  51.     {
  52.       "type": "PRODUCT",
  53.       "serial": "5184-6565",
  54.       "quantity": 1,
  55.       "concept": "test",
  56.       "unitPrice": 10,
  57.       "totalPrice": 10
  58.     },
  59.     {
  60.       "type": "PRODUCT",
  61.       "serial": "5184-6565",
  62.       "quantity": 2,
  63.       "concept": "test",
  64.       "unitPrice": 20,
  65.       "totalPrice": 40
  66.     },
  67.     {
  68.       "type": "SHIPPING",
  69.       "concept": "test",
  70.       "unitPrice": 10,
  71.       "totalPrice": 10
  72.     }
  73.   ]
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement