--- http_interactions: - request: method: post uri: https://api.sandbox.paypal.com/v1/oauth2/token body: encoding: UTF-8 string: grant_type=client_credentials headers: Content-Type: - application/x-www-form-urlencoded Authorization: - Basic RkFLRV9QQVlQQUxfQ0xJRU5UX0lEOkZBS0VfUEFZUEFMX0NMSUVOVF9TRUNS\nRVQ= Accept-Encoding: - gzip Sdk-Name: - Checkout SDK Sdk-Version: - 1.0.3 Sdk-Tech-Stack: - Ruby2.6.3 Api-Integration-Type: - PAYPALSDK User-Agent: - PayPalSDK/rest-sdk-ruby 1.0.3 (paypal-checkout-sdk 1.0.3; ruby 2.6.3p62-x86_64-darwin18;OpenSSL 1.0.2s 28 May 2019) Accept: - "*/*" response: status: code: 200 message: OK headers: Cache-Control: - max-age=0, no-cache, no-store, must-revalidate Content-Length: - '918' Content-Type: - application/json Date: - Wed, 29 Jan 2020 18:26:51 GMT Paypal-Debug-Id: - d6a0f863a1bd2 X-Paypal-Token-Service: - IAAS body: encoding: UTF-8 string: '{"scope":"https://uri.paypal.com/services/invoicing https://uri.paypal.com/services/disputes/read-buyer https://uri.paypal.com/services/payments/realtimepayment https://uri.paypal.com/services/disputes/update-seller https://uri.paypal.com/services/payments/payment/authcapture openid https://uri.paypal.com/services/disputes/read-seller https://uri.paypal.com/services/payments/refund https://api.paypal.com/v1/vault/credit-card https://api.paypal.com/v1/payments/.* https://uri.paypal.com/payments/payouts https://api.paypal.com/v1/vault/credit-card/.* https://uri.paypal.com/services/subscriptions https://uri.paypal.com/services/applications/webhooks","access_token":"A21AAH8JBaCq97a9fIWYVjR13RiayfAPxcb-o5l9hZ57HACn0JwaefBkRcSfh9rEwmZR6JozBLLU2MsRYTuFsZ91mOZR9jFMQ","token_type":"Bearer","app_id":"APP-80W284485P519543T","expires_in":32031,"nonce":"2020-01-29T18:20:43ZDKF3VcEmtOhEC5S6ZO80QnoxtZ-lP5lrj73RBoqrBwI"}' http_version: recorded_at: Wed, 29 Jan 2020 18:26:52 GMT - request: method: patch uri: https://api.sandbox.paypal.com/v2/checkout/orders/6DJ616473D999571D body: encoding: UTF-8 string: '[{"op":"replace","path":"/purchase_units/@reference_id==''default''/shipping/name","value":{"full_name":"Ben Crouse"}},{"op":"replace","path":"/purchase_units/@reference_id==''default''/shipping/address","value":{"address_line_1":"22 S. 3rd St.","address_line_2":"Second Floor","admin_area_2":"Philadelphia","admin_area_1":"PA","postal_code":"19106","country_code":"US"}},{"op":"replace","path":"/purchase_units/@reference_id==''default''/amount","value":{"currency_code":"USD","value":"6.60","breakdown":{"item_total":{"currency_code":"USD","value":"10.00"},"shipping":{"currency_code":"USD","value":"1.00"},"tax_total":{"currency_code":"USD","value":"0.60"},"discount":{"currency_code":"USD","value":"5.00"},"shipping_discount":{"currency_code":"USD","value":"0.00"}}}}]' headers: Content-Type: - application/json Authorization: - Bearer A21AAH8JBaCq97a9fIWYVjR13RiayfAPxcb-o5l9hZ57HACn0JwaefBkRcSfh9rEwmZR6JozBLLU2MsRYTuFsZ91mOZR9jFMQ Accept-Encoding: - gzip Sdk-Name: - Checkout SDK Sdk-Version: - 1.0.3 Sdk-Tech-Stack: - Ruby2.6.3 Api-Integration-Type: - PAYPALSDK User-Agent: - PayPalSDK/rest-sdk-ruby 1.0.3 (paypal-checkout-sdk 1.0.3; ruby 2.6.3p62-x86_64-darwin18;OpenSSL 1.0.2s 28 May 2019) Accept: - "*/*" response: status: code: 204 message: No Content headers: Cache-Control: - max-age=0, no-cache, no-store, must-revalidate Date: - Wed, 29 Jan 2020 18:26:52 GMT Paypal-Debug-Id: - d6a0f840188e6 body: encoding: UTF-8 string: '' http_version: recorded_at: Wed, 29 Jan 2020 18:26:52 GMT - request: method: post uri: https://api.sandbox.paypal.com/v1/oauth2/token body: encoding: UTF-8 string: grant_type=client_credentials headers: Content-Type: - application/x-www-form-urlencoded Authorization: - Basic QWM1N1dtTEJsaHhZcXpoOHhJbng5cGRTaTA1alZQMGVDOEtuTE1OMlF5Zkw0RGtCaHVIUV8ycktlekhMRGluVVdkdDFVM2hJejdsODdTTEc6RU4tN3JrbVFzdjZGdUVtT215VmQ1Mk5MN0wwaFNmdUN0M2RFVGtqelhYUy05UDFwQmlTS1Q1OGtGRWtkd3pFX2o0MDY3ZGc5V0dwQnREQlc= Accept-Encoding: - gzip Sdk-Name: - Checkout SDK Sdk-Version: - 1.0.3 Sdk-Tech-Stack: - Ruby2.6.3 Api-Integration-Type: - PAYPALSDK User-Agent: - PayPalSDK/rest-sdk-ruby 1.0.3 (paypal-checkout-sdk 1.0.3; ruby 2.6.3p62-x86_64-darwin18;OpenSSL 1.0.2s 28 May 2019) Accept: - "*/*" response: status: code: 200 message: OK headers: Cache-Control: - max-age=0, no-cache, no-store, must-revalidate Content-Length: - '918' Content-Type: - application/json Date: - Wed, 29 Jan 2020 18:26:53 GMT Paypal-Debug-Id: - 759fb44acfade X-Paypal-Token-Service: - IAAS body: encoding: UTF-8 string: '{"scope":"https://uri.paypal.com/services/invoicing https://uri.paypal.com/services/disputes/read-buyer https://uri.paypal.com/services/payments/realtimepayment https://uri.paypal.com/services/disputes/update-seller https://uri.paypal.com/services/payments/payment/authcapture openid https://uri.paypal.com/services/disputes/read-seller https://uri.paypal.com/services/payments/refund https://api.paypal.com/v1/vault/credit-card https://api.paypal.com/v1/payments/.* https://uri.paypal.com/payments/payouts https://api.paypal.com/v1/vault/credit-card/.* https://uri.paypal.com/services/subscriptions https://uri.paypal.com/services/applications/webhooks","access_token":"A21AAH8JBaCq97a9fIWYVjR13RiayfAPxcb-o5l9hZ57HACn0JwaefBkRcSfh9rEwmZR6JozBLLU2MsRYTuFsZ91mOZR9jFMQ","token_type":"Bearer","app_id":"APP-80W284485P519543T","expires_in":32030,"nonce":"2020-01-29T18:20:43ZDKF3VcEmtOhEC5S6ZO80QnoxtZ-lP5lrj73RBoqrBwI"}' http_version: recorded_at: Wed, 29 Jan 2020 18:26:53 GMT - request: method: get uri: https://api.sandbox.paypal.com/v2/checkout/orders/6DJ616473D999571D body: encoding: US-ASCII string: '' headers: Content-Type: - application/json Authorization: - Bearer A21AAH8JBaCq97a9fIWYVjR13RiayfAPxcb-o5l9hZ57HACn0JwaefBkRcSfh9rEwmZR6JozBLLU2MsRYTuFsZ91mOZR9jFMQ Accept-Encoding: - gzip Sdk-Name: - Checkout SDK Sdk-Version: - 1.0.3 Sdk-Tech-Stack: - Ruby2.6.3 Api-Integration-Type: - PAYPALSDK User-Agent: - PayPalSDK/rest-sdk-ruby 1.0.3 (paypal-checkout-sdk 1.0.3; ruby 2.6.3p62-x86_64-darwin18;OpenSSL 1.0.2s 28 May 2019) Accept: - "*/*" response: status: code: 200 message: OK headers: Cache-Control: - max-age=0, no-cache, no-store, must-revalidate Content-Length: - '1431' Content-Type: - application/json Date: - Wed, 29 Jan 2020 18:26:53 GMT Paypal-Debug-Id: - 759fb42d45c87 body: encoding: UTF-8 string: '{"id":"6DJ616473D999571D","intent":"CAPTURE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"USD","value":"6.60","breakdown":{"item_total":{"currency_code":"USD","value":"10.00"},"shipping":{"currency_code":"USD","value":"1.00"},"tax_total":{"currency_code":"USD","value":"0.60"},"shipping_discount":{"currency_code":"USD","value":"0.00"},"discount":{"currency_code":"USD","value":"5.00"}}},"payee":{"email_address":"sb-43jrhs896881@business.example.com","merchant_id":"M3XMHZJKTFK88","display_data":{"brand_name":"Workarea Paypal Plugin"}},"custom_id":"PAYPAL_TEST","items":[{"name":"Test Product","unit_amount":{"currency_code":"USD","value":"5.00"},"tax":{"currency_code":"USD","value":"0.30"},"quantity":"2","description":"","sku":"SKU","category":"PHYSICAL_GOODS"}],"shipping":{"method":"Ground","name":{"full_name":"Ben Crouse"},"address":{"address_line_1":"22 S. 3rd St.","address_line_2":"Second Floor","admin_area_2":"Philadelphia","admin_area_1":"PA","postal_code":"19106","country_code":"US"}}}],"create_time":"2020-01-29T18:20:45Z","links":[{"href":"https://api.sandbox.paypal.com/v2/checkout/orders/6DJ616473D999571D","rel":"self","method":"GET"},{"href":"https://www.sandbox.paypal.com/checkoutnow?token=6DJ616473D999571D","rel":"approve","method":"GET"},{"href":"https://api.sandbox.paypal.com/v2/checkout/orders/6DJ616473D999571D/capture","rel":"capture","method":"POST"}],"status":"CREATED"}' http_version: recorded_at: Wed, 29 Jan 2020 18:26:54 GMT recorded_with: VCR 2.9.3