Advertisement
jigneshkaila

Untitled

Oct 26th, 2023
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.54 KB | None | 0 0
  1. 2023-10-26T07:12:06+00:00 INFO Action: Create Order
  2. 2023-10-26T07:12:06+00:00 INFO Request URL: https://api-m.sandbox.paypal.com/v2/checkout/orders/
  3. 2023-10-26T07:12:06+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] => GET_FROM_FILE
  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_j1QrTKC0rCLCB
  25. [amount] => Array
  26. (
  27. [currency_code] => USD
  28. [value] => 100.00
  29. )
  30.  
  31. [invoice_id] => wc_order_j1QrTKC0rCLCB
  32. [custom_id] => wc_order_j1QrTKC0rCLCB
  33. [soft_descriptor] => PPCP
  34. [payee] => Array
  35. (
  36. [merchant_id] => K75H4EE58B5FL
  37. )
  38.  
  39. [shipping] => Array
  40. (
  41. [name] => Array
  42. (
  43. [full_name] => jigneshbhai kaila
  44. )
  45.  
  46. [address] => Array
  47. (
  48. [address_line_1] => 416 W 8th St
  49. [admin_area_2] => Los Angeles
  50. [admin_area_1] => CA
  51. [postal_code] => 90014
  52. [country_code] => US
  53. )
  54.  
  55. )
  56.  
  57. )
  58.  
  59. )
  60.  
  61. [payer] => Array
  62. (
  63. [name] => Array
  64. (
  65. [given_name] => jignesh
  66. [surname] => kaila
  67. )
  68.  
  69. [email_address] => angelleye-smart-button@gmail.com
  70. [phone] => Array
  71. (
  72. [phone_type] => HOME
  73. [phone_number] => Array
  74. (
  75. [national_number] => 4085366858
  76. )
  77.  
  78. )
  79.  
  80. [address] => Array
  81. (
  82. [address_line_1] => 416 W 8th St
  83. [admin_area_2] => Los Angeles
  84. [admin_area_1] => CA
  85. [postal_code] => 90014
  86. [country_code] => US
  87. )
  88.  
  89. )
  90.  
  91. )
  92.  
  93. 2023-10-26T07:12:06+00:00 INFO Response Headers: Array
  94. (
  95. [paypal-debug-id] => d80672835650b
  96. )
  97.  
  98. 2023-10-26T07:12:06+00:00 INFO Response Body: Array
  99. (
  100. [id] => 3KX26509JH592273U
  101. [intent] => AUTHORIZE
  102. [status] => CREATED
  103. [purchase_units] => Array
  104. (
  105. [0] => Array
  106. (
  107. [reference_id] => wc_order_j1QrTKC0rCLCB
  108. [amount] => Array
  109. (
  110. [currency_code] => USD
  111. [value] => 100.00
  112. )
  113.  
  114. [payee] => Array
  115. (
  116. [merchant_id] => K75H4EE58B5FL
  117. )
  118.  
  119. [custom_id] => wc_order_j1QrTKC0rCLCB
  120. [invoice_id] => wc_order_j1QrTKC0rCLCB
  121. [soft_descriptor] => PPCP
  122. [shipping] => Array
  123. (
  124. [name] => Array
  125. (
  126. [full_name] => jigneshbhai kaila
  127. )
  128.  
  129. [address] => Array
  130. (
  131. [address_line_1] => 416 W 8th St
  132. [admin_area_2] => Los Angeles
  133. [admin_area_1] => CA
  134. [postal_code] => 90014
  135. [country_code] => US
  136. )
  137.  
  138. )
  139.  
  140. )
  141.  
  142. )
  143.  
  144. [payer] => Array
  145. (
  146. [name] => Array
  147. (
  148. [given_name] => jignesh
  149. [surname] => kaila
  150. )
  151.  
  152. [email_address] => angelleye-smart-button@gmail.com
  153. [phone] => Array
  154. (
  155. [phone_type] => HOME
  156. [phone_number] => Array
  157. (
  158. [national_number] => 4085366858
  159. )
  160.  
  161. )
  162.  
  163. [address] => Array
  164. (
  165. [address_line_1] => 416 W 8th St
  166. [admin_area_2] => Los Angeles
  167. [admin_area_1] => CA
  168. [postal_code] => 90014
  169. [country_code] => US
  170. )
  171.  
  172. )
  173.  
  174. [create_time] => 2023-10-26T07:12:06Z
  175. [links] => Array
  176. (
  177. [0] => Array
  178. (
  179. [href] => https://api.sandbox.paypal.com/v2/checkout/orders/3KX26509JH592273U
  180. [rel] => self
  181. [method] => GET
  182. )
  183.  
  184. [1] => Array
  185. (
  186. [href] => https://www.sandbox.paypal.com/checkoutnow?token=3KX26509JH592273U
  187. [rel] => approve
  188. [method] => GET
  189. )
  190.  
  191. [2] => Array
  192. (
  193. [href] => https://api.sandbox.paypal.com/v2/checkout/orders/3KX26509JH592273U
  194. [rel] => update
  195. [method] => PATCH
  196. )
  197.  
  198. [3] => Array
  199. (
  200. [href] => https://api.sandbox.paypal.com/v2/checkout/orders/3KX26509JH592273U/authorize
  201. [rel] => authorize
  202. [method] => POST
  203. )
  204.  
  205. )
  206.  
  207. )
  208.  
  209. 2023-10-26T07:12:21+00:00 INFO Action: Update Order
  210. 2023-10-26T07:12:21+00:00 INFO Request URL: https://api-m.sandbox.paypal.com/v2/checkout/orders/3KX26509JH592273U
  211. 2023-10-26T07:12:21+00:00 INFO Request Body: Array
  212. (
  213. [0] => Array
  214. (
  215. [op] => replace
  216. [path] => /purchase_units/@reference_id=='wc_order_j1QrTKC0rCLCB'
  217. [value] => Array
  218. (
  219. [reference_id] => wc_order_j1QrTKC0rCLCB
  220. [soft_descriptor] => PPCP
  221. [amount] => Array
  222. (
  223. [currency_code] => USD
  224. [value] => 100.00
  225. )
  226.  
  227. [invoice_id] => WC-PPCP-fmmkeb370
  228. [custom_id] => WC-PPCP-fmmkeb370
  229. [payee] => Array
  230. (
  231. [merchant_id] => K75H4EE58B5FL
  232. )
  233.  
  234. [shipping] => Array
  235. (
  236. [name] => Array
  237. (
  238. [full_name] => jigneshbhai kaila
  239. )
  240.  
  241. [address] => Array
  242. (
  243. [address_line_1] => 416 W 8th St
  244. [admin_area_2] => Los Angeles
  245. [admin_area_1] => CA
  246. [postal_code] => 90014
  247. [country_code] => US
  248. )
  249.  
  250. )
  251.  
  252. )
  253.  
  254. )
  255.  
  256. [1] => Array
  257. (
  258. [op] => replace
  259. [path] => /intent
  260. [value] => AUTHORIZE
  261. )
  262.  
  263. )
  264.  
  265. 2023-10-26T07:12:21+00:00 INFO Response Headers: Array
  266. (
  267. [paypal-debug-id] => d1e9be89871df
  268. )
  269.  
  270. 2023-10-26T07:12:21+00:00 INFO Response Body: Array
  271. (
  272. [status] => 1
  273. [body] =>
  274. [headers] => Array
  275. (
  276. [paypal-debug-id] => d1e9be89871df
  277. )
  278.  
  279. [statusCode] => 204
  280. [requestId] => e97c06b4_bd52_4df1_9e78_8db2ad4b4698
  281. )
  282.  
  283. 2023-10-26T07:12:26+00:00 INFO Action: Authorize Order
  284. 2023-10-26T07:12:26+00:00 INFO Request URL: https://api-m.sandbox.paypal.com/v2/checkout/orders/3KX26509JH592273U/authorize
  285. 2023-10-26T07:12:26+00:00 INFO Response Headers: Array
  286. (
  287. [paypal-debug-id] => 1c07289eac3cf
  288. )
  289.  
  290. 2023-10-26T07:12:26+00:00 INFO Response Body: Array
  291. (
  292. [id] => 3KX26509JH592273U
  293. [intent] => AUTHORIZE
  294. [status] => COMPLETED
  295. [payment_source] => Array
  296. (
  297. [paypal] => Array
  298. (
  299. [email_address] => angelleye-smart-button@gmail.com
  300. [account_id] => EYQ22WLX6GNLY
  301. [account_status] => VERIFIED
  302. [name] => Array
  303. (
  304. [given_name] => jignesh
  305. [surname] => kaila
  306. )
  307.  
  308. [phone_number] => Array
  309. (
  310. [national_number] => 4085366858
  311. )
  312.  
  313. [address] => Array
  314. (
  315. [address_line_1] => 416 W 8th St
  316. [admin_area_2] => Los Angeles
  317. [admin_area_1] => CA
  318. [postal_code] => 90014
  319. [country_code] => US
  320. )
  321.  
  322. )
  323.  
  324. )
  325.  
  326. [purchase_units] => Array
  327. (
  328. [0] => Array
  329. (
  330. [reference_id] => wc_order_j1QrTKC0rCLCB
  331. [amount] => Array
  332. (
  333. [currency_code] => USD
  334. [value] => 100.00
  335. )
  336.  
  337. [payee] => Array
  338. (
  339. [email_address] => kcppdevelopers@gmail.com
  340. [merchant_id] => K75H4EE58B5FL
  341. )
  342.  
  343. [custom_id] => WC-PPCP-fmmkeb370
  344. [invoice_id] => WC-PPCP-fmmkeb370
  345. [shipping] => Array
  346. (
  347. [name] => Array
  348. (
  349. [full_name] => jigneshbhai kaila
  350. )
  351.  
  352. [address] => Array
  353. (
  354. [address_line_1] => 416 W 8th St
  355. [admin_area_2] => Los Angeles
  356. [admin_area_1] => CA
  357. [postal_code] => 90014
  358. [country_code] => US
  359. )
  360.  
  361. )
  362.  
  363. [payments] => Array
  364. (
  365. [authorizations] => Array
  366. (
  367. [0] => Array
  368. (
  369. [status] => CREATED
  370. [id] => 15242667WC2359403
  371. [amount] => Array
  372. (
  373. [currency_code] => USD
  374. [value] => 100.00
  375. )
  376.  
  377. [invoice_id] => WC-PPCP-fmmkeb370
  378. [custom_id] => WC-PPCP-fmmkeb370
  379. [seller_protection] => Array
  380. (
  381. [status] => ELIGIBLE
  382. [dispute_categories] => Array
  383. (
  384. [0] => ITEM_NOT_RECEIVED
  385. [1] => UNAUTHORIZED_TRANSACTION
  386. )
  387.  
  388. )
  389.  
  390. [expiration_time] => 2023-11-24T07:12:25Z
  391. [links] => Array
  392. (
  393. [0] => Array
  394. (
  395. [href] => https://api.sandbox.paypal.com/v2/payments/authorizations/15242667WC2359403
  396. [rel] => self
  397. [method] => GET
  398. )
  399.  
  400. [1] => Array
  401. (
  402. [href] => https://api.sandbox.paypal.com/v2/payments/authorizations/15242667WC2359403/capture
  403. [rel] => capture
  404. [method] => POST
  405. )
  406.  
  407. [2] => Array
  408. (
  409. [href] => https://api.sandbox.paypal.com/v2/payments/authorizations/15242667WC2359403/void
  410. [rel] => void
  411. [method] => POST
  412. )
  413.  
  414. [3] => Array
  415. (
  416. [href] => https://api.sandbox.paypal.com/v2/checkout/orders/3KX26509JH592273U
  417. [rel] => up
  418. [method] => GET
  419. )
  420.  
  421. )
  422.  
  423. [create_time] => 2023-10-26T07:12:25Z
  424. [update_time] => 2023-10-26T07:12:25Z
  425. )
  426.  
  427. )
  428.  
  429. )
  430.  
  431. )
  432.  
  433. )
  434.  
  435. [payer] => Array
  436. (
  437. [name] => Array
  438. (
  439. [given_name] => jignesh
  440. [surname] => kaila
  441. )
  442.  
  443. [email_address] => angelleye-smart-button@gmail.com
  444. [payer_id] => EYQ22WLX6GNLY
  445. [phone] => Array
  446. (
  447. [phone_number] => Array
  448. (
  449. [national_number] => 4085366858
  450. )
  451.  
  452. )
  453.  
  454. [address] => Array
  455. (
  456. [address_line_1] => 416 W 8th St
  457. [admin_area_2] => Los Angeles
  458. [admin_area_1] => CA
  459. [postal_code] => 90014
  460. [country_code] => US
  461. )
  462.  
  463. )
  464.  
  465. [create_time] => 2023-10-26T07:12:06Z
  466. [update_time] => 2023-10-26T07:12:25Z
  467. [links] => Array
  468. (
  469. [0] => Array
  470. (
  471. [href] => https://api.sandbox.paypal.com/v2/checkout/orders/3KX26509JH592273U
  472. [rel] => self
  473. [method] => GET
  474. )
  475.  
  476. )
  477.  
  478. )
  479.  
  480. 2023-10-26T07:13:12+00:00 INFO Action: Capture Authorized
  481. 2023-10-26T07:13:12+00:00 INFO Request URL: https://api-m.sandbox.paypal.com/v2/payments/authorizations/15242667WC2359403/capture
  482. 2023-10-26T07:13:12+00:00 INFO Request Body: Array
  483. (
  484. [amount] => Array
  485. (
  486. [value] => 60.00
  487. [currency_code] => USD
  488. )
  489.  
  490. [payment_instruction] => Array
  491. (
  492. [payee] => Array
  493. (
  494. [merchant_id] => K75H4EE58B5FL
  495. )
  496.  
  497. )
  498.  
  499. [invoice_id] => WC-PPCP-fmmkeb370
  500. )
  501.  
  502. 2023-10-26T07:13:12+00:00 INFO Response Headers: Array
  503. (
  504. [paypal-debug-id] => 223e816485a38
  505. )
  506.  
  507. 2023-10-26T07:13:12+00:00 INFO Response Body: Array
  508. (
  509. [id] => 06C42385PD3731446
  510. [amount] => Array
  511. (
  512. [currency_code] => USD
  513. [value] => 60.00
  514. )
  515.  
  516. [final_capture] =>
  517. [seller_protection] => Array
  518. (
  519. [status] => ELIGIBLE
  520. [dispute_categories] => Array
  521. (
  522. [0] => ITEM_NOT_RECEIVED
  523. [1] => UNAUTHORIZED_TRANSACTION
  524. )
  525.  
  526. )
  527.  
  528. [disbursement_mode] => INSTANT
  529. [seller_receivable_breakdown] => Array
  530. (
  531. [gross_amount] => Array
  532. (
  533. [currency_code] => USD
  534. [value] => 60.00
  535. )
  536.  
  537. [paypal_fee] => Array
  538. (
  539. [currency_code] => USD
  540. [value] => 2.58
  541. )
  542.  
  543. [platform_fees] => Array
  544. (
  545. [0] => Array
  546. (
  547. [amount] => Array
  548. (
  549. [currency_code] => USD
  550. [value] => 0.06
  551. )
  552.  
  553. [payee] => Array
  554. (
  555. [merchant_id] => B82TS7QWRJ6TS
  556. )
  557.  
  558. )
  559.  
  560. )
  561.  
  562. [net_amount] => Array
  563. (
  564. [currency_code] => USD
  565. [value] => 57.36
  566. )
  567.  
  568. )
  569.  
  570. [invoice_id] => WC-PPCP-fmmkeb370
  571. [custom_id] => WC-PPCP-fmmkeb370
  572. [status] => COMPLETED
  573. [payee] => Array
  574. (
  575. [email_address] => kcppdevelopers@gmail.com
  576. [merchant_id] => K75H4EE58B5FL
  577. )
  578.  
  579. [create_time] => 2023-10-26T07:13:12Z
  580. [update_time] => 2023-10-26T07:13:12Z
  581. [links] => Array
  582. (
  583. [0] => Array
  584. (
  585. [href] => https://api.sandbox.paypal.com/v2/payments/captures/06C42385PD3731446
  586. [rel] => self
  587. [method] => GET
  588. )
  589.  
  590. [1] => Array
  591. (
  592. [href] => https://api.sandbox.paypal.com/v2/payments/captures/06C42385PD3731446/refund
  593. [rel] => refund
  594. [method] => POST
  595. )
  596.  
  597. [2] => Array
  598. (
  599. [href] => https://api.sandbox.paypal.com/v2/payments/authorizations/15242667WC2359403
  600. [rel] => up
  601. [method] => GET
  602. )
  603.  
  604. )
  605.  
  606. )
  607.  
  608. 2023-10-26T07:13:40+00:00 INFO Action: Capture Authorized
  609. 2023-10-26T07:13:40+00:00 INFO Request URL: https://api-m.sandbox.paypal.com/v2/payments/authorizations/15242667WC2359403/capture
  610. 2023-10-26T07:13:40+00:00 INFO Request Body: Array
  611. (
  612. [amount] => Array
  613. (
  614. [value] => 40.00
  615. [currency_code] => USD
  616. )
  617.  
  618. [payment_instruction] => Array
  619. (
  620. [payee] => Array
  621. (
  622. [merchant_id] => K75H4EE58B5FL
  623. )
  624.  
  625. )
  626.  
  627. [invoice_id] => WC-PPCP-fmmkeb370
  628. )
  629.  
  630. 2023-10-26T07:13:40+00:00 INFO Response Headers: Array
  631. (
  632. [paypal-debug-id] => 6ffe8be3ba8c5
  633. )
  634.  
  635. 2023-10-26T07:13:40+00:00 INFO Response Body: Array
  636. (
  637. [id] => 7NA550192K324143M
  638. [amount] => Array
  639. (
  640. [currency_code] => USD
  641. [value] => 40.00
  642. )
  643.  
  644. [final_capture] => 1
  645. [seller_protection] => Array
  646. (
  647. [status] => ELIGIBLE
  648. [dispute_categories] => Array
  649. (
  650. [0] => ITEM_NOT_RECEIVED
  651. [1] => UNAUTHORIZED_TRANSACTION
  652. )
  653.  
  654. )
  655.  
  656. [disbursement_mode] => INSTANT
  657. [seller_receivable_breakdown] => Array
  658. (
  659. [gross_amount] => Array
  660. (
  661. [currency_code] => USD
  662. [value] => 40.00
  663. )
  664.  
  665. [paypal_fee] => Array
  666. (
  667. [currency_code] => USD
  668. [value] => 1.89
  669. )
  670.  
  671. [platform_fees] => Array
  672. (
  673. [0] => Array
  674. (
  675. [amount] => Array
  676. (
  677. [currency_code] => USD
  678. [value] => 0.04
  679. )
  680.  
  681. [payee] => Array
  682. (
  683. [merchant_id] => B82TS7QWRJ6TS
  684. )
  685.  
  686. )
  687.  
  688. )
  689.  
  690. [net_amount] => Array
  691. (
  692. [currency_code] => USD
  693. [value] => 38.07
  694. )
  695.  
  696. )
  697.  
  698. [invoice_id] => WC-PPCP-fmmkeb370
  699. [custom_id] => WC-PPCP-fmmkeb370
  700. [status] => COMPLETED
  701. [payee] => Array
  702. (
  703. [email_address] => kcppdevelopers@gmail.com
  704. [merchant_id] => K75H4EE58B5FL
  705. )
  706.  
  707. [create_time] => 2023-10-26T07:13:39Z
  708. [update_time] => 2023-10-26T07:13:39Z
  709. [links] => Array
  710. (
  711. [0] => Array
  712. (
  713. [href] => https://api.sandbox.paypal.com/v2/payments/captures/7NA550192K324143M
  714. [rel] => self
  715. [method] => GET
  716. )
  717.  
  718. [1] => Array
  719. (
  720. [href] => https://api.sandbox.paypal.com/v2/payments/captures/7NA550192K324143M/refund
  721. [rel] => refund
  722. [method] => POST
  723. )
  724.  
  725. [2] => Array
  726. (
  727. [href] => https://api.sandbox.paypal.com/v2/payments/authorizations/15242667WC2359403
  728. [rel] => up
  729. [method] => GET
  730. )
  731.  
  732. )
  733.  
  734. )
  735.  
  736. 2023-10-26T07:14:08+00:00 INFO Action: Refund Order
  737. 2023-10-26T07:14:08+00:00 INFO Request URL: https://api-m.sandbox.paypal.com/v2/payments/captures/7NA550192K324143M/refund
  738. 2023-10-26T07:14:08+00:00 INFO Request Body: Array
  739. (
  740. [note_to_payer] => Refund
  741. [amount] => Array
  742. (
  743. [value] => 40.00
  744. [currency_code] => USD
  745. )
  746.  
  747. )
  748.  
  749. 2023-10-26T07:14:08+00:00 INFO Response Headers: Array
  750. (
  751. [paypal-debug-id] => 89328d1b421ee
  752. )
  753.  
  754. 2023-10-26T07:14:08+00:00 INFO Response Body: Array
  755. (
  756. [name] => UNPROCESSABLE_ENTITY
  757. [message] => The requested action could not be performed, semantically incorrect, or failed business validation.
  758. [debug_id] => 89328d1b421ee
  759. [details] => Array
  760. (
  761. [0] => Array
  762. (
  763. [issue] => PLATFORM_FEE_EXCEEDED
  764. [description] => Platform fee amount specified exceeds the amount that is available for refund. You can only refund up to the available platform fee amount. This error is also returned when no platform_fee was specified or was zero when the payment was captured.
  765. )
  766.  
  767. )
  768.  
  769. [links] => Array
  770. (
  771. [0] => Array
  772. (
  773. [href] => https://developer.paypal.com/docs/api/payments/v2/#error-PLATFORM_FEE_EXCEEDED
  774. [rel] => information_link
  775. )
  776.  
  777. )
  778.  
  779. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement