![]() Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : fdshops ( 1003) PHP Version : 8.2.21 Disable Function : NONE Directory : /home/fdshops/public_html/vendor/srmklive/paypal/tests/Mocks/Requests/ |
<?php namespace Srmklive\PayPal\Tests\Mocks\Requests; use GuzzleHttp\Utils; trait Orders { /* * @return array */ private function createOrderParams(): array { return Utils::jsonDecode('{ "intent": "CAPTURE", "purchase_units": [ { "amount": { "currency_code": "USD", "value": "100.00" } } ] }', true); } /* * @return array */ private function updateOrderParams(): array { return Utils::jsonDecode('[ { "op": "replace", "path": "/purchase_units/@reference_id==\'PUHF\'/shipping/address", "value": { "address_line_1": "123 Townsend St", "address_line_2": "Floor 6", "admin_area_2": "San Francisco", "admin_area_1": "CA", "postal_code": "94107", "country_code": "US" } } ]', true); } }