Skip to content

Instantly share code, notes, and snippets.

@vipulnsward
Created July 27, 2020 17:38
Show Gist options
  • Save vipulnsward/ab1657cbb5ccfd447f541fb8c58785d1 to your computer and use it in GitHub Desktop.
Save vipulnsward/ab1657cbb5ccfd447f541fb8c58785d1 to your computer and use it in GitHub Desktop.
PaypalRestApi: [Cassette: 'PaypalRestApi/#pay/when valid order id is passed/returns success with valid order having approved status'] Initialized with options: {:record=>:once, :record_on_error=>true, :match_requests_on=>[:method, :uri], :allow_unused_http_interactions=>true, :serialize_with=>:yaml, :persist_with=>:file_system, :persister_options=>{}}
[webmock] Handling request: [post https://api.sandbox.paypal.com/v1/oauth2/token] (disabled: false)
[Cassette: 'PaypalRestApi/#pay/when valid order id is passed/returns success with valid order having approved status'] Initialized HTTPInteractionList with request matchers [:method, :uri] and 2 interaction(s): { [post https://api.sandbox.paypal.com/v1/oauth2/token] => [200 "{\"scope\":\"https://uri.paypal.com/services/customer/partner-referrals/readwrite h"], [post https://api.sandbox.paypal.com/v1/checkout/orders/26B680435S2075214/pay] => [202 "{\"order_id\":\"26B680435S2075214\",\"status\":\"APPROVED\",\"payer_info\":{\"email\":\"paypa"] }
[Cassette: 'PaypalRestApi/#pay/when valid order id is passed/returns success with valid order having approved status'] Checking if [post https://api.sandbox.paypal.com/v1/oauth2/token] matches [post https://api.sandbox.paypal.com/v1/oauth2/token] using [:method, :uri]
[Cassette: 'PaypalRestApi/#pay/when valid order id is passed/returns success with valid order having approved status'] method (matched): current request [post https://api.sandbox.paypal.com/v1/oauth2/token] vs [post https://api.sandbox.paypal.com/v1/oauth2/token]
[Cassette: 'PaypalRestApi/#pay/when valid order id is passed/returns success with valid order having approved status'] uri (matched): current request [post https://api.sandbox.paypal.com/v1/oauth2/token] vs [post https://api.sandbox.paypal.com/v1/oauth2/token]
[Cassette: 'PaypalRestApi/#pay/when valid order id is passed/returns success with valid order having approved status'] Found matching interaction for [post https://api.sandbox.paypal.com/v1/oauth2/token] at index 0: [200 "{\"scope\":\"https://uri.paypal.com/services/customer/partner-referrals/readwrite h"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment