Advertisement
jigneshkaila

Create Order request and response log

Nov 16th, 2023
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.39 KB | None | 0 0
  1. 2023-11-17T05:45:36+00:00 INFO Action: Create Order
  2. 2023-11-17T05:45:36+00:00 INFO Request URL: https://api-m.sandbox.paypal.com/v2/checkout/orders/
  3. 2023-11-17T05:45:36+00:00 INFO Request Body: Array
  4. (
  5. [intent] => AUTHORIZE
  6. [application_context] => Array
  7. (
  8. [brand_name] => PPCP
  9. [locale] => en-US
  10. [landing_page] => NO_PREFERENCE
  11. [shipping_preference] => NO_SHIPPING
  12. [user_action] => CONTINUE
  13. )
  14.  
  15. [payment_method] => Array
  16. (
  17. [payee_preferred] => UNRESTRICTED
  18. )
  19.  
  20. [purchase_units] => Array
  21. (
  22. [0] => Array
  23. (
  24. [reference_id] => wc_order_Y03jakhyLO2os
  25. [amount] => Array
  26. (
  27. [currency_code] => USD
  28. [value] => 100.00
  29. [breakdown] => Array
  30. (
  31. [item_total] => Array
  32. (
  33. [currency_code] => USD
  34. [value] => 100.00
  35. )
  36.  
  37. )
  38.  
  39. )
  40.  
  41. [invoice_id] => wc_order_Y03jakhyLO2os
  42. [custom_id] => wc_order_Y03jakhyLO2os
  43. [soft_descriptor] => PPCP
  44. [payee] => Array
  45. (
  46. [merchant_id] => EYQ22WLX6GNLY
  47. )
  48.  
  49. [items] => Array
  50. (
  51. [0] => Array
  52. (
  53. [name] => Belt
  54. [sku] => woo-belt
  55. [category] => PHYSICAL_GOODS
  56. [quantity] => 1
  57. [unit_amount] => Array
  58. (
  59. [currency_code] => USD
  60. [value] => 100.00
  61. )
  62.  
  63. )
  64.  
  65. )
  66.  
  67. )
  68.  
  69. )
  70.  
  71. )
  72.  
  73. 2023-11-17T05:45:36+00:00 INFO Response Headers: Array
  74. (
  75. [paypal-debug-id] => 2ea4acea683a4
  76. )
  77.  
  78. 2023-11-17T05:45:36+00:00 INFO Response Body: Array
  79. (
  80. [id] => 1CN041966M020771N
  81. [intent] => AUTHORIZE
  82. [status] => CREATED
  83. [purchase_units] => Array
  84. (
  85. [0] => Array
  86. (
  87. [reference_id] => wc_order_Y03jakhyLO2os
  88. [amount] => Array
  89. (
  90. [currency_code] => USD
  91. [value] => 100.00
  92. [breakdown] => Array
  93. (
  94. [item_total] => Array
  95. (
  96. [currency_code] => USD
  97. [value] => 100.00
  98. )
  99.  
  100. )
  101.  
  102. )
  103.  
  104. [payee] => Array
  105. (
  106. [merchant_id] => EYQ22WLX6GNLY
  107. )
  108.  
  109. [custom_id] => wc_order_Y03jakhyLO2os
  110. [invoice_id] => wc_order_Y03jakhyLO2os
  111. [soft_descriptor] => PPCP
  112. [items] => Array
  113. (
  114. [0] => Array
  115. (
  116. [name] => Belt
  117. [unit_amount] => Array
  118. (
  119. [currency_code] => USD
  120. [value] => 100.00
  121. )
  122.  
  123. [quantity] => 1
  124. [sku] => woo-belt
  125. [category] => PHYSICAL_GOODS
  126. )
  127.  
  128. )
  129.  
  130. )
  131.  
  132. )
  133.  
  134. [create_time] => 2023-11-17T05:45:34Z
  135. [links] => Array
  136. (
  137. [0] => Array
  138. (
  139. [href] => https://api.sandbox.paypal.com/v2/checkout/orders/1CN041966M020771N
  140. [rel] => self
  141. [method] => GET
  142. )
  143.  
  144. [1] => Array
  145. (
  146. [href] => https://www.sandbox.paypal.com/checkoutnow?token=1CN041966M020771N
  147. [rel] => approve
  148. [method] => GET
  149. )
  150.  
  151. [2] => Array
  152. (
  153. [href] => https://api.sandbox.paypal.com/v2/checkout/orders/1CN041966M020771N
  154. [rel] => update
  155. [method] => PATCH
  156. )
  157.  
  158. [3] => Array
  159. (
  160. [href] => https://api.sandbox.paypal.com/v2/checkout/orders/1CN041966M020771N/authorize
  161. [rel] => authorize
  162. [method] => POST
  163. )
  164.  
  165. )
  166.  
  167. )
  168.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement