From f3f59ed6ad0e6c6726804a9a68214f6a852793ba Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Mon, 4 Dec 2023 20:48:53 +0000 Subject: [PATCH 1/3] Adds valid credid card types (non-3D) --- ...s_payment_intent_id_and_does_not_raise.yml | 517 +++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 529 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 517 +++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 517 +++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 517 +++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 517 +++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 517 +++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 517 +++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 517 +++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 517 +++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 517 +++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 517 +++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 517 +++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 517 +++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 517 +++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 106 ++-- ...s_payment_intent_id_and_does_not_raise.yml | 517 +++++++++++++++++ .../stripe/payment_intent_validator_spec.rb | 86 ++- 18 files changed, 8393 insertions(+), 83 deletions(-) create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Authenticate_unless_set_up/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/returns_payment_intent_id_and_does_not_raise.yml rename spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/{ => valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa}/returns_payment_intent_id_and_does_not_raise.yml (80%) create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..4efcb38203 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,517 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=378282246310005&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_2nR9W2ZCRoU7Zt","request_duration_ms":418}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:52 GMT + Content-Type: + - application/json + Content-Length: + - '932' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 785d9bdb-3260-4702-afed-6a1995c41bf4 + Original-Request: + - req_ud5UGo3TLJlE3V + Request-Id: + - req_ud5UGo3TLJlE3V + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJj2WKuuB1fWySnp8wdHY2g", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "amex", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "zYCOiuhqkk4w2g2M", + "funding": "credit", + "generated_from": null, + "last4": "0005", + "networks": { + "available": [ + "amex" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": false + }, + "wallet": null + }, + "created": 1701722812, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Mon, 04 Dec 2023 20:46:52 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OJj2WKuuB1fWySnp8wdHY2g&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_ud5UGo3TLJlE3V","request_duration_ms":467}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:53 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 1c8d6a4b-c6be-492e-a4c7-ebafba7c78f4 + Original-Request: + - req_XhKxeSDZ0Sycn9 + Request-Id: + - req_XhKxeSDZ0Sycn9 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2WKuuB1fWySn07Xkpx25", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2WKuuB1fWySn07Xkpx25_secret_t5FsYIakS9DwGTIOEX8QbL6jQ", + "confirmation_method": "automatic", + "created": 1701722812, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2WKuuB1fWySnp8wdHY2g", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:53 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2WKuuB1fWySn07Xkpx25/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_XhKxeSDZ0Sycn9","request_duration_ms":396}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:54 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 65158ad1-4aa8-4f37-8e1e-1bda18bffb65 + Original-Request: + - req_L5y463rS7140I6 + Request-Id: + - req_L5y463rS7140I6 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2WKuuB1fWySn07Xkpx25", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2WKuuB1fWySn07Xkpx25_secret_t5FsYIakS9DwGTIOEX8QbL6jQ", + "confirmation_method": "automatic", + "created": 1701722812, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2WKuuB1fWySn0tBsEUXs", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2WKuuB1fWySnp8wdHY2g", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:54 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2WKuuB1fWySn07Xkpx25 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_L5y463rS7140I6","request_duration_ms":1027}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:55 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_hIwz6YfndA8AcC + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2WKuuB1fWySn07Xkpx25", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2WKuuB1fWySn07Xkpx25_secret_t5FsYIakS9DwGTIOEX8QbL6jQ", + "confirmation_method": "automatic", + "created": 1701722812, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2WKuuB1fWySn0tBsEUXs", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2WKuuB1fWySnp8wdHY2g", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:55 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Authenticate_unless_set_up/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Authenticate_unless_set_up/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..be921cefa1 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Authenticate_unless_set_up/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,529 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000002500003155&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:32 GMT + Content-Type: + - application/json + Content-Length: + - '931' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - d5a8669a-5e7e-4ac5-9d9c-f7eafafbcbfa + Original-Request: + - req_wcTMbNP098ISmy + Request-Id: + - req_wcTMbNP098ISmy + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJj2CKuuB1fWySnmTYY6khQ", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "FR", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "2Z1xiwQp79NyXETe", + "funding": "credit", + "generated_from": null, + "last4": "3155", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701722792, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Mon, 04 Dec 2023 20:46:32 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OJj2CKuuB1fWySnmTYY6khQ&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_wcTMbNP098ISmy","request_duration_ms":711}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:33 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 4a6845b1-a6af-4c67-97c4-5f1c1bd2d9d6 + Original-Request: + - req_5TLWJjEPel2FVW + Request-Id: + - req_5TLWJjEPel2FVW + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2DKuuB1fWySn2TTdJ1Tw", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2DKuuB1fWySn2TTdJ1Tw_secret_X6ePZ2G9LOnKehVKHiM0fapXu", + "confirmation_method": "automatic", + "created": 1701722793, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2CKuuB1fWySnmTYY6khQ", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:33 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2DKuuB1fWySn2TTdJ1Tw/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_5TLWJjEPel2FVW","request_duration_ms":720}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:34 GMT + Content-Type: + - application/json + Content-Length: + - '1752' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 8d6f6a15-1913-463b-8c28-d45543abb367 + Original-Request: + - req_yjy69ZLoaoY2mC + Request-Id: + - req_yjy69ZLoaoY2mC + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2DKuuB1fWySn2TTdJ1Tw", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2DKuuB1fWySn2TTdJ1Tw_secret_X6ePZ2G9LOnKehVKHiM0fapXu", + "confirmation_method": "automatic", + "created": 1701722793, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": { + "type": "use_stripe_sdk", + "use_stripe_sdk": { + "source": "src_1OJj2EKuuB1fWySnqeCQCrZF", + "stripe_js": "https://hooks.stripe.com/redirect/authenticate/src_1OJj2EKuuB1fWySnqeCQCrZF?client_secret=src_client_secret_YRiJPGckZJtNDUldHHbs8s3u&source_redirect_slug=test_YWNjdF8xRmlxRXNLdXVCMWZXeVNuLF9QN3owNGNMRDhFUGFaTmlJMjhqSjh5V1J0SGpkQkNl0100XBhfiDBT", + "type": "three_d_secure_redirect" + } + }, + "on_behalf_of": null, + "payment_method": "pm_1OJj2CKuuB1fWySnmTYY6khQ", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_action", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:34 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2DKuuB1fWySn2TTdJ1Tw + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_yjy69ZLoaoY2mC","request_duration_ms":1123}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:35 GMT + Content-Type: + - application/json + Content-Length: + - '1752' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_TFYWjB2c88GTQp + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2DKuuB1fWySn2TTdJ1Tw", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2DKuuB1fWySn2TTdJ1Tw_secret_X6ePZ2G9LOnKehVKHiM0fapXu", + "confirmation_method": "automatic", + "created": 1701722793, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": { + "type": "use_stripe_sdk", + "use_stripe_sdk": { + "source": "src_1OJj2EKuuB1fWySnqeCQCrZF", + "stripe_js": "https://hooks.stripe.com/redirect/authenticate/src_1OJj2EKuuB1fWySnqeCQCrZF?client_secret=src_client_secret_YRiJPGckZJtNDUldHHbs8s3u&source_redirect_slug=test_YWNjdF8xRmlxRXNLdXVCMWZXeVNuLF9QN3owNGNMRDhFUGFaTmlJMjhqSjh5V1J0SGpkQkNl0100XBhfiDBT", + "type": "three_d_secure_redirect" + } + }, + "on_behalf_of": null, + "payment_method": "pm_1OJj2CKuuB1fWySnmTYY6khQ", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_action", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:35 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..5086b5cbd2 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,517 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6555900000604105&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_Huk2iMtr6cghVI","request_duration_ms":390}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:08 GMT + Content-Type: + - application/json + Content-Length: + - '939' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 4e1d0fda-1907-49be-afd9-82243424994b + Original-Request: + - req_UsUuNXI6Mf78Zr + Request-Id: + - req_UsUuNXI6Mf78Zr + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJj2mKuuB1fWySnwzbZHjl8", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "discover", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "7NZ8adObS8Rw8HOq", + "funding": "credit", + "generated_from": null, + "last4": "4105", + "networks": { + "available": [ + "discover" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701722828, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Mon, 04 Dec 2023 20:47:08 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OJj2mKuuB1fWySnwzbZHjl8&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_UsUuNXI6Mf78Zr","request_duration_ms":574}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:08 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - c225ede7-4a69-4984-b0bc-0fea33898deb + Original-Request: + - req_Xx4ybTOvJ2JW1q + Request-Id: + - req_Xx4ybTOvJ2JW1q + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2mKuuB1fWySn0bNhtOzo", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2mKuuB1fWySn0bNhtOzo_secret_XUKC9pxXp4pPc8a3MCH02okch", + "confirmation_method": "automatic", + "created": 1701722828, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2mKuuB1fWySnwzbZHjl8", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:08 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2mKuuB1fWySn0bNhtOzo/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_Xx4ybTOvJ2JW1q","request_duration_ms":404}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:09 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - a72f707b-9107-4716-a499-6d6ad43d76df + Original-Request: + - req_1iXUE29Ls5dtX5 + Request-Id: + - req_1iXUE29Ls5dtX5 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2mKuuB1fWySn0bNhtOzo", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2mKuuB1fWySn0bNhtOzo_secret_XUKC9pxXp4pPc8a3MCH02okch", + "confirmation_method": "automatic", + "created": 1701722828, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2mKuuB1fWySn0Z6aBzKj", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2mKuuB1fWySnwzbZHjl8", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:09 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2mKuuB1fWySn0bNhtOzo + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_1iXUE29Ls5dtX5","request_duration_ms":1020}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:10 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_MVdZ7didxp5zr8 + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2mKuuB1fWySn0bNhtOzo", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2mKuuB1fWySn0bNhtOzo_secret_XUKC9pxXp4pPc8a3MCH02okch", + "confirmation_method": "automatic", + "created": 1701722828, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2mKuuB1fWySn0Z6aBzKj", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2mKuuB1fWySnwzbZHjl8", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:10 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..9bf96c3dfe --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,517 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=3056930009020004&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_QyvzzQqGeKUY7C","request_duration_ms":394}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:02 GMT + Content-Type: + - application/json + Content-Length: + - '936' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 323860d7-7e6a-4f30-9f14-558973f820d2 + Original-Request: + - req_gGtCYiWxbNeaJv + Request-Id: + - req_gGtCYiWxbNeaJv + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJj2gKuuB1fWySnUg2cFGOG", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "diners", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "8CvV2XFCUY7eGw6O", + "funding": "credit", + "generated_from": null, + "last4": "0004", + "networks": { + "available": [ + "diners" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": false + }, + "wallet": null + }, + "created": 1701722822, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Mon, 04 Dec 2023 20:47:02 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OJj2gKuuB1fWySnUg2cFGOG&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_gGtCYiWxbNeaJv","request_duration_ms":572}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:03 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - bd145627-8d95-40ad-aa8d-05715feabb2f + Original-Request: + - req_u4pKVVS1PRCvVN + Request-Id: + - req_u4pKVVS1PRCvVN + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2gKuuB1fWySn0oN3C56a", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2gKuuB1fWySn0oN3C56a_secret_PoHyuHdQsNXD5sr4e2AaPwqsO", + "confirmation_method": "automatic", + "created": 1701722822, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2gKuuB1fWySnUg2cFGOG", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:03 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2gKuuB1fWySn0oN3C56a/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_u4pKVVS1PRCvVN","request_duration_ms":506}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:03 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - b9f75b70-dc38-4659-91a5-93bb7f1f081f + Original-Request: + - req_hHAv52Rtio8Kar + Request-Id: + - req_hHAv52Rtio8Kar + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2gKuuB1fWySn0oN3C56a", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2gKuuB1fWySn0oN3C56a_secret_PoHyuHdQsNXD5sr4e2AaPwqsO", + "confirmation_method": "automatic", + "created": 1701722822, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2gKuuB1fWySn0PgzKS1r", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2gKuuB1fWySnUg2cFGOG", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:03 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2gKuuB1fWySn0oN3C56a + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_hHAv52Rtio8Kar","request_duration_ms":838}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:04 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_zHez8FZF2OLOHh + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2gKuuB1fWySn0oN3C56a", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2gKuuB1fWySn0oN3C56a_secret_PoHyuHdQsNXD5sr4e2AaPwqsO", + "confirmation_method": "automatic", + "created": 1701722822, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2gKuuB1fWySn0PgzKS1r", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2gKuuB1fWySnUg2cFGOG", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:04 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..7b874287a0 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,517 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=36227206271667&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_zHez8FZF2OLOHh","request_duration_ms":388}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:05 GMT + Content-Type: + - application/json + Content-Length: + - '936' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - d515aec3-6187-45a7-a15d-204bd33f6d89 + Original-Request: + - req_kubS80nZjHbZPs + Request-Id: + - req_kubS80nZjHbZPs + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJj2jKuuB1fWySn3RgNmuah", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "diners", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "gDlx6y9moRYkO83e", + "funding": "credit", + "generated_from": null, + "last4": "1667", + "networks": { + "available": [ + "diners" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": false + }, + "wallet": null + }, + "created": 1701722825, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Mon, 04 Dec 2023 20:47:05 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OJj2jKuuB1fWySn3RgNmuah&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_kubS80nZjHbZPs","request_duration_ms":573}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:05 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 6817365c-51f0-4d4a-99ac-69e68171ad1e + Original-Request: + - req_g3hnQzB5ZlXOsP + Request-Id: + - req_g3hnQzB5ZlXOsP + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2jKuuB1fWySn2j9vH0uw", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2jKuuB1fWySn2j9vH0uw_secret_I8oix67gX7JnJFsd4otPRGEB6", + "confirmation_method": "automatic", + "created": 1701722825, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2jKuuB1fWySn3RgNmuah", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:05 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2jKuuB1fWySn2j9vH0uw/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_g3hnQzB5ZlXOsP","request_duration_ms":502}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:06 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - d553557d-e7a8-4d4e-829c-a8dba40d18de + Original-Request: + - req_WL9p3GWQJc1rCi + Request-Id: + - req_WL9p3GWQJc1rCi + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2jKuuB1fWySn2j9vH0uw", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2jKuuB1fWySn2j9vH0uw_secret_I8oix67gX7JnJFsd4otPRGEB6", + "confirmation_method": "automatic", + "created": 1701722825, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2jKuuB1fWySn2oDk10YR", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2jKuuB1fWySn3RgNmuah", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:07 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2jKuuB1fWySn2j9vH0uw + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_WL9p3GWQJc1rCi","request_duration_ms":1123}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:07 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_Huk2iMtr6cghVI + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2jKuuB1fWySn2j9vH0uw", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2jKuuB1fWySn2j9vH0uw_secret_I8oix67gX7JnJFsd4otPRGEB6", + "confirmation_method": "automatic", + "created": 1701722825, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2jKuuB1fWySn2oDk10YR", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2jKuuB1fWySn3RgNmuah", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:07 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..9863826796 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,517 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6011111111111117&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_hIwz6YfndA8AcC","request_duration_ms":3}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:56 GMT + Content-Type: + - application/json + Content-Length: + - '939' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 97a91438-d123-4854-a92b-aa720cd12084 + Original-Request: + - req_TvJodmTvBRnmnJ + Request-Id: + - req_TvJodmTvBRnmnJ + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJj2aKuuB1fWySnMsW5jxOx", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "discover", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "SJztPPlfyEUr9hdK", + "funding": "credit", + "generated_from": null, + "last4": "1117", + "networks": { + "available": [ + "discover" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701722816, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Mon, 04 Dec 2023 20:46:56 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OJj2aKuuB1fWySnMsW5jxOx&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_TvJodmTvBRnmnJ","request_duration_ms":640}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:56 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - bd96c097-19d5-4780-9a3b-e64f79d99022 + Original-Request: + - req_GfG1H0LGaxGRH5 + Request-Id: + - req_GfG1H0LGaxGRH5 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2aKuuB1fWySn0vqbmdz5", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2aKuuB1fWySn0vqbmdz5_secret_F83oJtyX1n1fgnE3qwMkM4Gzn", + "confirmation_method": "automatic", + "created": 1701722816, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2aKuuB1fWySnMsW5jxOx", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:56 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2aKuuB1fWySn0vqbmdz5/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_GfG1H0LGaxGRH5","request_duration_ms":406}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:57 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 8152a891-fbb6-411a-aa97-bcdcc1af2cba + Original-Request: + - req_4wIP4ww15nZzwx + Request-Id: + - req_4wIP4ww15nZzwx + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2aKuuB1fWySn0vqbmdz5", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2aKuuB1fWySn0vqbmdz5_secret_F83oJtyX1n1fgnE3qwMkM4Gzn", + "confirmation_method": "automatic", + "created": 1701722816, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2aKuuB1fWySn0era0pHB", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2aKuuB1fWySnMsW5jxOx", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:57 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2aKuuB1fWySn0vqbmdz5 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_4wIP4ww15nZzwx","request_duration_ms":1019}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:58 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_G2bdZBkEP2NnQa + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2aKuuB1fWySn0vqbmdz5", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2aKuuB1fWySn0vqbmdz5_secret_F83oJtyX1n1fgnE3qwMkM4Gzn", + "confirmation_method": "automatic", + "created": 1701722816, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2aKuuB1fWySn0era0pHB", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2aKuuB1fWySnMsW5jxOx", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:58 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..ea0201092e --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,517 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6011981111111113&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_G2bdZBkEP2NnQa","request_duration_ms":1}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:59 GMT + Content-Type: + - application/json + Content-Length: + - '938' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - e1d1530e-4459-452b-b58b-ffe28d7cac77 + Original-Request: + - req_TCaUGX811CvlXm + Request-Id: + - req_TCaUGX811CvlXm + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJj2dKuuB1fWySnmSKlIi5g", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "discover", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "Y3EGIoTEEuDsD8eJ", + "funding": "debit", + "generated_from": null, + "last4": "1113", + "networks": { + "available": [ + "discover" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701722819, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Mon, 04 Dec 2023 20:46:59 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OJj2dKuuB1fWySnmSKlIi5g&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_TCaUGX811CvlXm","request_duration_ms":657}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:00 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - be39911a-bb09-4a5b-b32f-8ece7bac6111 + Original-Request: + - req_eRcSfNEf18DyC1 + Request-Id: + - req_eRcSfNEf18DyC1 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2dKuuB1fWySn02YhKqxe", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2dKuuB1fWySn02YhKqxe_secret_ig8wlubruurAczOHfMVeFkgQq", + "confirmation_method": "automatic", + "created": 1701722819, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2dKuuB1fWySnmSKlIi5g", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:00 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2dKuuB1fWySn02YhKqxe/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_eRcSfNEf18DyC1","request_duration_ms":406}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:01 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - c9245e72-f78a-40a6-9f9c-382e49e709be + Original-Request: + - req_AVivtTDQPX0YJM + Request-Id: + - req_AVivtTDQPX0YJM + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2dKuuB1fWySn02YhKqxe", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2dKuuB1fWySn02YhKqxe_secret_ig8wlubruurAczOHfMVeFkgQq", + "confirmation_method": "automatic", + "created": 1701722819, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2dKuuB1fWySn0fscw9kw", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2dKuuB1fWySnmSKlIi5g", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:01 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2dKuuB1fWySn02YhKqxe + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_AVivtTDQPX0YJM","request_duration_ms":1038}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:01 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_QyvzzQqGeKUY7C + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2dKuuB1fWySn02YhKqxe", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2dKuuB1fWySn02YhKqxe_secret_ig8wlubruurAczOHfMVeFkgQq", + "confirmation_method": "automatic", + "created": 1701722819, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2dKuuB1fWySn0fscw9kw", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2dKuuB1fWySnmSKlIi5g", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:02 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..52e7f6cc38 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,517 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=3566002020360505&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_MVdZ7didxp5zr8","request_duration_ms":320}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:11 GMT + Content-Type: + - application/json + Content-Length: + - '929' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 5f87fb65-57a8-432a-8da4-18f2cde41e89 + Original-Request: + - req_6zwMOQn7UEKz6h + Request-Id: + - req_6zwMOQn7UEKz6h + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJj2pKuuB1fWySnutBfMJtf", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "jcb", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "JP", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "8f2gcynh7EdGyDKt", + "funding": "credit", + "generated_from": null, + "last4": "0505", + "networks": { + "available": [ + "jcb" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701722831, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Mon, 04 Dec 2023 20:47:11 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OJj2pKuuB1fWySnutBfMJtf&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_6zwMOQn7UEKz6h","request_duration_ms":439}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:11 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - befe0b53-fd2c-4374-9e2f-fd55b9425863 + Original-Request: + - req_3sMcsrq5wWRIMK + Request-Id: + - req_3sMcsrq5wWRIMK + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2pKuuB1fWySn032muymS", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2pKuuB1fWySn032muymS_secret_urMInk75ViprdTlBTqCTcMkAE", + "confirmation_method": "automatic", + "created": 1701722831, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2pKuuB1fWySnutBfMJtf", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:11 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2pKuuB1fWySn032muymS/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_3sMcsrq5wWRIMK","request_duration_ms":387}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:12 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 391b23c6-649f-4f9e-9e3a-b20348c518fb + Original-Request: + - req_eBOcHkUNpiGMIR + Request-Id: + - req_eBOcHkUNpiGMIR + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2pKuuB1fWySn032muymS", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2pKuuB1fWySn032muymS_secret_urMInk75ViprdTlBTqCTcMkAE", + "confirmation_method": "automatic", + "created": 1701722831, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2pKuuB1fWySn0EIu3p5h", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2pKuuB1fWySnutBfMJtf", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:12 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2pKuuB1fWySn032muymS + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_eBOcHkUNpiGMIR","request_duration_ms":968}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:13 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_JTUbXkj4ct2Q35 + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2pKuuB1fWySn032muymS", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2pKuuB1fWySn032muymS_secret_urMInk75ViprdTlBTqCTcMkAE", + "confirmation_method": "automatic", + "created": 1701722831, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2pKuuB1fWySn0EIu3p5h", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2pKuuB1fWySnutBfMJtf", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:13 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..d54d6e34a7 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,517 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=5555555555554444&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_HnAxMcQcRahsXX","request_duration_ms":285}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:41 GMT + Content-Type: + - application/json + Content-Length: + - '943' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 742e850f-0e97-4c28-98eb-1be24e28fd17 + Original-Request: + - req_PS8S5e8CVLUnQM + Request-Id: + - req_PS8S5e8CVLUnQM + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJj2LKuuB1fWySnFsyUXxaq", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "mastercard", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "BL35fEFVcTTS5wpE", + "funding": "credit", + "generated_from": null, + "last4": "4444", + "networks": { + "available": [ + "mastercard" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701722801, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Mon, 04 Dec 2023 20:46:41 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OJj2LKuuB1fWySnFsyUXxaq&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_PS8S5e8CVLUnQM","request_duration_ms":479}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:42 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 60de5bc5-76f5-4833-8f62-bec39fce49fe + Original-Request: + - req_LhpOxMoRbsDdJU + Request-Id: + - req_LhpOxMoRbsDdJU + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2MKuuB1fWySn0UdRnVgN", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2MKuuB1fWySn0UdRnVgN_secret_xveHs2ahlaVGHZJmvlogniDqv", + "confirmation_method": "automatic", + "created": 1701722802, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2LKuuB1fWySnFsyUXxaq", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:42 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2MKuuB1fWySn0UdRnVgN/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_LhpOxMoRbsDdJU","request_duration_ms":479}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:43 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 6376df60-5807-46f2-8060-08d89b1ada71 + Original-Request: + - req_eTWb5ne5MYQ4Wh + Request-Id: + - req_eTWb5ne5MYQ4Wh + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2MKuuB1fWySn0UdRnVgN", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2MKuuB1fWySn0UdRnVgN_secret_xveHs2ahlaVGHZJmvlogniDqv", + "confirmation_method": "automatic", + "created": 1701722802, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2MKuuB1fWySn0jCaTNJG", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2LKuuB1fWySnFsyUXxaq", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:43 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2MKuuB1fWySn0UdRnVgN + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_eTWb5ne5MYQ4Wh","request_duration_ms":918}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:43 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_xWkEtUOYFxOqa1 + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2MKuuB1fWySn0UdRnVgN", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2MKuuB1fWySn0UdRnVgN_secret_xveHs2ahlaVGHZJmvlogniDqv", + "confirmation_method": "automatic", + "created": 1701722802, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2MKuuB1fWySn0jCaTNJG", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2LKuuB1fWySnFsyUXxaq", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:43 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..d6f1fc3e9e --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,517 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=2223003122003222&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_xWkEtUOYFxOqa1","request_duration_ms":311}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:44 GMT + Content-Type: + - application/json + Content-Length: + - '943' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 98e53dae-967b-480c-b766-1f2f36396c4d + Original-Request: + - req_LKTIJjqn9Cxpsz + Request-Id: + - req_LKTIJjqn9Cxpsz + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJj2OKuuB1fWySnIpkWmNA9", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "mastercard", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "0gTPwvyIV7E6CAld", + "funding": "credit", + "generated_from": null, + "last4": "3222", + "networks": { + "available": [ + "mastercard" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701722804, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Mon, 04 Dec 2023 20:46:44 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OJj2OKuuB1fWySnIpkWmNA9&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_LKTIJjqn9Cxpsz","request_duration_ms":465}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:44 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - f897f2ed-e834-4033-836f-40547076e6ed + Original-Request: + - req_aRs681Z8r2LLrX + Request-Id: + - req_aRs681Z8r2LLrX + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2OKuuB1fWySn0P3Hmijt", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2OKuuB1fWySn0P3Hmijt_secret_eWu0u1Dru6MVb2v6mQG9hoTO5", + "confirmation_method": "automatic", + "created": 1701722804, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2OKuuB1fWySnIpkWmNA9", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:44 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2OKuuB1fWySn0P3Hmijt/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_aRs681Z8r2LLrX","request_duration_ms":373}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:45 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 0523c130-9590-4e59-bdf9-a0509e4a24eb + Original-Request: + - req_Bi16cFfudXGu6g + Request-Id: + - req_Bi16cFfudXGu6g + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2OKuuB1fWySn0P3Hmijt", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2OKuuB1fWySn0P3Hmijt_secret_eWu0u1Dru6MVb2v6mQG9hoTO5", + "confirmation_method": "automatic", + "created": 1701722804, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2OKuuB1fWySn0307tJHk", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2OKuuB1fWySnIpkWmNA9", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:45 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2OKuuB1fWySn0P3Hmijt + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_Bi16cFfudXGu6g","request_duration_ms":1051}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:46 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_IwpZjxRgPqGyw7 + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2OKuuB1fWySn0P3Hmijt", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2OKuuB1fWySn0P3Hmijt_secret_eWu0u1Dru6MVb2v6mQG9hoTO5", + "confirmation_method": "automatic", + "created": 1701722804, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2OKuuB1fWySn0307tJHk", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2OKuuB1fWySnIpkWmNA9", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:46 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..d5df9e448b --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,517 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=5200828282828210&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_IwpZjxRgPqGyw7","request_duration_ms":366}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:46 GMT + Content-Type: + - application/json + Content-Length: + - '942' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 10b41ff6-8948-4282-9089-8f232145bb69 + Original-Request: + - req_QoqigMNp4jhg4F + Request-Id: + - req_QoqigMNp4jhg4F + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJj2QKuuB1fWySnrtGemn7e", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "mastercard", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "DpQ8VoC0Z3P9xrbi", + "funding": "debit", + "generated_from": null, + "last4": "8210", + "networks": { + "available": [ + "mastercard" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701722806, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Mon, 04 Dec 2023 20:46:47 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OJj2QKuuB1fWySnrtGemn7e&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_QoqigMNp4jhg4F","request_duration_ms":420}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:47 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 88b825ed-9ac3-4adf-92ef-8966200db8ef + Original-Request: + - req_H1Gzo1f9e1a1ye + Request-Id: + - req_H1Gzo1f9e1a1ye + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2RKuuB1fWySn0Xm1D2v6", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2RKuuB1fWySn0Xm1D2v6_secret_k4lWXYcHxLzJQDt6suSRFqmPy", + "confirmation_method": "automatic", + "created": 1701722807, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2QKuuB1fWySnrtGemn7e", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:47 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2RKuuB1fWySn0Xm1D2v6/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_H1Gzo1f9e1a1ye","request_duration_ms":553}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:48 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 34b24887-57b9-4ae9-9c0f-b850f0bbbfcd + Original-Request: + - req_XmYf53Nbvp56lo + Request-Id: + - req_XmYf53Nbvp56lo + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2RKuuB1fWySn0Xm1D2v6", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2RKuuB1fWySn0Xm1D2v6_secret_k4lWXYcHxLzJQDt6suSRFqmPy", + "confirmation_method": "automatic", + "created": 1701722807, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2RKuuB1fWySn0OyfmQWp", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2QKuuB1fWySnrtGemn7e", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:48 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2RKuuB1fWySn0Xm1D2v6 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_XmYf53Nbvp56lo","request_duration_ms":1018}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:49 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_tXVz4ODdWNVfB9 + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2RKuuB1fWySn0Xm1D2v6", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2RKuuB1fWySn0Xm1D2v6_secret_k4lWXYcHxLzJQDt6suSRFqmPy", + "confirmation_method": "automatic", + "created": 1701722807, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2RKuuB1fWySn0OyfmQWp", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2QKuuB1fWySnrtGemn7e", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:49 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..406398d187 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,517 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=5105105105105100&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_tXVz4ODdWNVfB9","request_duration_ms":287}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:49 GMT + Content-Type: + - application/json + Content-Length: + - '944' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 286f75b0-5fa2-478f-8477-7120c3856b5f + Original-Request: + - req_LloNStq1tCGrjf + Request-Id: + - req_LloNStq1tCGrjf + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJj2TKuuB1fWySnMp68Qsrd", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "mastercard", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "B9ykFJ6imaeWU8aO", + "funding": "prepaid", + "generated_from": null, + "last4": "5100", + "networks": { + "available": [ + "mastercard" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701722809, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Mon, 04 Dec 2023 20:46:49 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OJj2TKuuB1fWySnMp68Qsrd&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_LloNStq1tCGrjf","request_duration_ms":464}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:50 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 8c26f5a6-c934-4e0d-ac47-c8f7f0f0070b + Original-Request: + - req_sPWIqISyePb0LG + Request-Id: + - req_sPWIqISyePb0LG + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2TKuuB1fWySn1EeH0Lho", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2TKuuB1fWySn1EeH0Lho_secret_b2uIapt8ScB7TneUngzF8ujiq", + "confirmation_method": "automatic", + "created": 1701722809, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2TKuuB1fWySnMp68Qsrd", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:50 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2TKuuB1fWySn1EeH0Lho/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_sPWIqISyePb0LG","request_duration_ms":506}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:51 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 62b3cce9-e2b4-41dd-8f26-533b0a16c0e5 + Original-Request: + - req_Snmp0E5ne6Y5qS + Request-Id: + - req_Snmp0E5ne6Y5qS + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2TKuuB1fWySn1EeH0Lho", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2TKuuB1fWySn1EeH0Lho_secret_b2uIapt8ScB7TneUngzF8ujiq", + "confirmation_method": "automatic", + "created": 1701722809, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2TKuuB1fWySn1tNNirHo", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2TKuuB1fWySnMp68Qsrd", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:51 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2TKuuB1fWySn1EeH0Lho + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_Snmp0E5ne6Y5qS","request_duration_ms":920}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:52 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_2nR9W2ZCRoU7Zt + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2TKuuB1fWySn1EeH0Lho", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2TKuuB1fWySn1EeH0Lho_secret_b2uIapt8ScB7TneUngzF8ujiq", + "confirmation_method": "automatic", + "created": 1701722809, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2TKuuB1fWySn1tNNirHo", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2TKuuB1fWySnMp68Qsrd", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:52 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..1c327c235e --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,517 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6200000000000005&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_JTUbXkj4ct2Q35","request_duration_ms":347}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:13 GMT + Content-Type: + - application/json + Content-Length: + - '939' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - febb326b-4f98-4ac3-97cf-0a5384200d10 + Original-Request: + - req_SMrgpuiweD3PjK + Request-Id: + - req_SMrgpuiweD3PjK + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJj2rKuuB1fWySnGZIjSslY", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "unionpay", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "CN", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "Aq45rzUxvT6SiF1W", + "funding": "credit", + "generated_from": null, + "last4": "0005", + "networks": { + "available": [ + "unionpay" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701722833, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Mon, 04 Dec 2023 20:47:13 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OJj2rKuuB1fWySnGZIjSslY&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_SMrgpuiweD3PjK","request_duration_ms":474}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:14 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - af32b398-dca6-41f8-96cf-dd1a842ae181 + Original-Request: + - req_P2y0c7rJMee8rU + Request-Id: + - req_P2y0c7rJMee8rU + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2sKuuB1fWySn2jiI7zQt", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2sKuuB1fWySn2jiI7zQt_secret_v5lIhNs2q5QUuIwTN0TtMQZWj", + "confirmation_method": "automatic", + "created": 1701722834, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2rKuuB1fWySnGZIjSslY", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:14 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2sKuuB1fWySn2jiI7zQt/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_P2y0c7rJMee8rU","request_duration_ms":405}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:15 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - f1d3336d-acfb-419b-9ca8-f12dc71763cb + Original-Request: + - req_8DgrZVPPhj7fnm + Request-Id: + - req_8DgrZVPPhj7fnm + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2sKuuB1fWySn2jiI7zQt", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2sKuuB1fWySn2jiI7zQt_secret_v5lIhNs2q5QUuIwTN0TtMQZWj", + "confirmation_method": "automatic", + "created": 1701722834, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2sKuuB1fWySn2ng1XGkr", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2rKuuB1fWySnGZIjSslY", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:15 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2sKuuB1fWySn2jiI7zQt + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_8DgrZVPPhj7fnm","request_duration_ms":1021}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:15 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_4wmy4SEdLRcDG9 + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2sKuuB1fWySn2jiI7zQt", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2sKuuB1fWySn2jiI7zQt_secret_v5lIhNs2q5QUuIwTN0TtMQZWj", + "confirmation_method": "automatic", + "created": 1701722834, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2sKuuB1fWySn2ng1XGkr", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2rKuuB1fWySnGZIjSslY", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:16 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..df5475a744 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,517 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6205500000000000004&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_9ro64kilrFj4To","request_duration_ms":403}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:19 GMT + Content-Type: + - application/json + Content-Length: + - '938' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - '08a2b487-4548-44e6-a162-957e6a867957' + Original-Request: + - req_oeD0kQklE96e0a + Request-Id: + - req_oeD0kQklE96e0a + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJj2wKuuB1fWySnW5e0E3Pm", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "unionpay", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "F9o1vzLUnyEJBPXi", + "funding": "debit", + "generated_from": null, + "last4": "0004", + "networks": { + "available": [ + "unionpay" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701722838, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Mon, 04 Dec 2023 20:47:19 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OJj2wKuuB1fWySnW5e0E3Pm&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_oeD0kQklE96e0a","request_duration_ms":565}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:19 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 7015bf78-4049-4048-bef7-aa4d1d1301ae + Original-Request: + - req_iYmEFfw4ajYKgU + Request-Id: + - req_iYmEFfw4ajYKgU + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2xKuuB1fWySn2nhpzbdQ", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2xKuuB1fWySn2nhpzbdQ_secret_HUnUvPOu030pxIzeGPTZpl1EQ", + "confirmation_method": "automatic", + "created": 1701722839, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2wKuuB1fWySnW5e0E3Pm", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:19 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2xKuuB1fWySn2nhpzbdQ/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_iYmEFfw4ajYKgU","request_duration_ms":507}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:20 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - c79031cb-7c54-401c-88da-6da291f6d850 + Original-Request: + - req_A10i0krkHnlJ88 + Request-Id: + - req_A10i0krkHnlJ88 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2xKuuB1fWySn2nhpzbdQ", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2xKuuB1fWySn2nhpzbdQ_secret_HUnUvPOu030pxIzeGPTZpl1EQ", + "confirmation_method": "automatic", + "created": 1701722839, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2xKuuB1fWySn2LEd86vF", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2wKuuB1fWySnW5e0E3Pm", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:20 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2xKuuB1fWySn2nhpzbdQ + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_A10i0krkHnlJ88","request_duration_ms":918}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:21 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_9pkmm8GBwHLk9r + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2xKuuB1fWySn2nhpzbdQ", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2xKuuB1fWySn2nhpzbdQ_secret_HUnUvPOu030pxIzeGPTZpl1EQ", + "confirmation_method": "automatic", + "created": 1701722839, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2xKuuB1fWySn2LEd86vF", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2wKuuB1fWySnW5e0E3Pm", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:21 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..2d0541a428 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,517 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6200000000000047&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_4wmy4SEdLRcDG9","request_duration_ms":319}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:16 GMT + Content-Type: + - application/json + Content-Length: + - '938' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 1a0f14fc-6530-4f87-8dd0-283f0829ac69 + Original-Request: + - req_R4ueM1WTdswzyr + Request-Id: + - req_R4ueM1WTdswzyr + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJj2uKuuB1fWySnYb5hWcxP", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "unionpay", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "CN", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "Bk3yMwVTBMfdXTtb", + "funding": "debit", + "generated_from": null, + "last4": "0047", + "networks": { + "available": [ + "unionpay" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701722836, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Mon, 04 Dec 2023 20:47:16 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OJj2uKuuB1fWySnYb5hWcxP&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_R4ueM1WTdswzyr","request_duration_ms":466}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:16 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 2f149d5f-b2ec-4302-be4b-2cec74eeb49c + Original-Request: + - req_cFYrdTYjbOaMJJ + Request-Id: + - req_cFYrdTYjbOaMJJ + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2uKuuB1fWySn0KauXt6G", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2uKuuB1fWySn0KauXt6G_secret_5yyPwcQiU0pljz3MMA9NZH6BZ", + "confirmation_method": "automatic", + "created": 1701722836, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2uKuuB1fWySnYb5hWcxP", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:16 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2uKuuB1fWySn0KauXt6G/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_cFYrdTYjbOaMJJ","request_duration_ms":372}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:17 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 00f734fc-6c93-4836-a2f4-a7493b28e51a + Original-Request: + - req_m1pPuXKwTySqbI + Request-Id: + - req_m1pPuXKwTySqbI + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2uKuuB1fWySn0KauXt6G", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2uKuuB1fWySn0KauXt6G_secret_5yyPwcQiU0pljz3MMA9NZH6BZ", + "confirmation_method": "automatic", + "created": 1701722836, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2uKuuB1fWySn0IC5kWI1", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2uKuuB1fWySnYb5hWcxP", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:17 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2uKuuB1fWySn0KauXt6G + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_m1pPuXKwTySqbI","request_duration_ms":897}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:47:18 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_9ro64kilrFj4To + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2uKuuB1fWySn0KauXt6G", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2uKuuB1fWySn0KauXt6G_secret_5yyPwcQiU0pljz3MMA9NZH6BZ", + "confirmation_method": "automatic", + "created": 1701722836, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2uKuuB1fWySn0IC5kWI1", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2uKuuB1fWySnYb5hWcxP", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:47:18 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml similarity index 80% rename from spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml index eea14e86b8..1453a28933 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml @@ -14,14 +14,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_csbcri928ZfdcH","request_duration_ms":383}}' + - '{"last_request_metrics":{"request_id":"req_TFYWjB2c88GTQp","request_duration_ms":294}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:38 GMT + - Mon, 04 Dec 2023 20:46:36 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - f5709309-e423-4316-a53a-efff308a5142 + - 48870c95-5148-491c-bb94-f00fb95e2080 Original-Request: - - req_92pt1iiudNKQXC + - req_LmifJNlcjscRvV Request-Id: - - req_92pt1iiudNKQXC + - req_LmifJNlcjscRvV Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJPWcKuuB1fWySn3lTkJZ7P", + "id": "pm_1OJj2FKuuB1fWySnnFGOYQha", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701647798, + "created": 1701722796, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Sun, 03 Dec 2023 23:56:38 GMT + recorded_at: Mon, 04 Dec 2023 20:46:36 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJPWcKuuB1fWySn3lTkJZ7P&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OJj2FKuuB1fWySnnFGOYQha&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,14 +139,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_92pt1iiudNKQXC","request_duration_ms":495}}' + - '{"last_request_metrics":{"request_id":"req_LmifJNlcjscRvV","request_duration_ms":435}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:38 GMT + - Mon, 04 Dec 2023 20:46:36 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 66769690-c72a-4110-a0f7-d46d5e8acf9b + - 614c220d-872d-4f48-9b10-b3a629b66ad5 Original-Request: - - req_rlc68o8Yad1N0J + - req_cy8clAZTdpUZCE Request-Id: - - req_rlc68o8Yad1N0J + - req_cy8clAZTdpUZCE Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJPWcKuuB1fWySn1TvbLKfQ", + "id": "pi_3OJj2GKuuB1fWySn0L6zUWZM", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJPWcKuuB1fWySn1TvbLKfQ_secret_SD3LOsHFK4C8czYeqCnIA018P", + "client_secret": "pi_3OJj2GKuuB1fWySn0L6zUWZM_secret_fdjyu0ZZeB6KQOYK9fM97c7iU", "confirmation_method": "automatic", - "created": 1701647798, + "created": 1701722796, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJPWcKuuB1fWySn3lTkJZ7P", + "payment_method": "pm_1OJj2FKuuB1fWySnnFGOYQha", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Sun, 03 Dec 2023 23:56:38 GMT + recorded_at: Mon, 04 Dec 2023 20:46:36 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJPWcKuuB1fWySn1TvbLKfQ/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2GKuuB1fWySn0L6zUWZM/confirm body: encoding: US-ASCII string: '' @@ -270,14 +270,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_rlc68o8Yad1N0J","request_duration_ms":508}}' + - '{"last_request_metrics":{"request_id":"req_cy8clAZTdpUZCE","request_duration_ms":434}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:39 GMT + - Mon, 04 Dec 2023 20:46:37 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - a714cacb-6c93-42b8-8a13-1a4ce00db5de + - 4cd9daeb-7772-4fef-a833-a78897a52515 Original-Request: - - req_S4T4unZ2XulfdV + - req_b5W8XofC0cCYcU Request-Id: - - req_S4T4unZ2XulfdV + - req_b5W8XofC0cCYcU Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJPWcKuuB1fWySn1TvbLKfQ", + "id": "pi_3OJj2GKuuB1fWySn0L6zUWZM", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJPWcKuuB1fWySn1TvbLKfQ_secret_SD3LOsHFK4C8czYeqCnIA018P", + "client_secret": "pi_3OJj2GKuuB1fWySn0L6zUWZM_secret_fdjyu0ZZeB6KQOYK9fM97c7iU", "confirmation_method": "automatic", - "created": 1701647798, + "created": 1701722796, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJPWcKuuB1fWySn1iNGVTRZ", + "latest_charge": "ch_3OJj2GKuuB1fWySn0rJjslie", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJPWcKuuB1fWySn3lTkJZ7P", + "payment_method": "pm_1OJj2FKuuB1fWySnnFGOYQha", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Sun, 03 Dec 2023 23:56:39 GMT + recorded_at: Mon, 04 Dec 2023 20:46:37 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OJPWcKuuB1fWySn1TvbLKfQ + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2GKuuB1fWySn0L6zUWZM body: encoding: US-ASCII string: '' @@ -402,14 +402,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_S4T4unZ2XulfdV","request_duration_ms":920}}' + - '{"last_request_metrics":{"request_id":"req_b5W8XofC0cCYcU","request_duration_ms":1123}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:40 GMT + - Mon, 04 Dec 2023 20:46:38 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_icnFZXbIUY8Jy4 + - req_L7OYD5kmaQIMPk Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJPWcKuuB1fWySn1TvbLKfQ", + "id": "pi_3OJj2GKuuB1fWySn0L6zUWZM", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJPWcKuuB1fWySn1TvbLKfQ_secret_SD3LOsHFK4C8czYeqCnIA018P", + "client_secret": "pi_3OJj2GKuuB1fWySn0L6zUWZM_secret_fdjyu0ZZeB6KQOYK9fM97c7iU", "confirmation_method": "automatic", - "created": 1701647798, + "created": 1701722796, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJPWcKuuB1fWySn1iNGVTRZ", + "latest_charge": "ch_3OJj2GKuuB1fWySn0rJjslie", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJPWcKuuB1fWySn3lTkJZ7P", + "payment_method": "pm_1OJj2FKuuB1fWySnnFGOYQha", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,5 +513,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Sun, 03 Dec 2023 23:56:40 GMT + recorded_at: Mon, 04 Dec 2023 20:46:38 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml new file mode 100644 index 0000000000..56435803e7 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml @@ -0,0 +1,517 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000056655665556&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_L7OYD5kmaQIMPk","request_duration_ms":312}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:39 GMT + Content-Type: + - application/json + Content-Length: + - '930' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - baa8c920-ca3f-4a1f-add7-cd61de2aa73b + Original-Request: + - req_JXfsPHDK3CXUC6 + Request-Id: + - req_JXfsPHDK3CXUC6 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJj2IKuuB1fWySnSIE4gDTL", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "QOaaYMtlTSm6xJM8", + "funding": "debit", + "generated_from": null, + "last4": "5556", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701722798, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Mon, 04 Dec 2023 20:46:39 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OJj2IKuuB1fWySnSIE4gDTL&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_JXfsPHDK3CXUC6","request_duration_ms":471}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:39 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - e3350400-79eb-4616-ab1a-a899512c9266 + Original-Request: + - req_dkFhtRG9mp9N15 + Request-Id: + - req_dkFhtRG9mp9N15 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2JKuuB1fWySn2RlGpZxw", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2JKuuB1fWySn2RlGpZxw_secret_fDCAcBHWT3Fama20zwPFFJ9AA", + "confirmation_method": "automatic", + "created": 1701722799, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2IKuuB1fWySnSIE4gDTL", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:39 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2JKuuB1fWySn2RlGpZxw/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_dkFhtRG9mp9N15","request_duration_ms":411}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:40 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - a78d843f-e267-41fd-838e-34b22d48c66e + Original-Request: + - req_aBXrqitnoYPiRa + Request-Id: + - req_aBXrqitnoYPiRa + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2JKuuB1fWySn2RlGpZxw", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2JKuuB1fWySn2RlGpZxw_secret_fDCAcBHWT3Fama20zwPFFJ9AA", + "confirmation_method": "automatic", + "created": 1701722799, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2JKuuB1fWySn23b1nTwA", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2IKuuB1fWySnSIE4gDTL", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:40 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2JKuuB1fWySn2RlGpZxw + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_aBXrqitnoYPiRa","request_duration_ms":1014}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Mon, 04 Dec 2023 20:46:41 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_HnAxMcQcRahsXX + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OJj2JKuuB1fWySn2RlGpZxw", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OJj2JKuuB1fWySn2RlGpZxw_secret_fDCAcBHWT3Fama20zwPFFJ9AA", + "confirmation_method": "automatic", + "created": 1701722799, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OJj2JKuuB1fWySn23b1nTwA", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OJj2IKuuB1fWySnSIE4gDTL", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Mon, 04 Dec 2023 20:46:41 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/lib/stripe/payment_intent_validator_spec.rb b/spec/lib/stripe/payment_intent_validator_spec.rb index fe8bcb3a5e..c9ed83ada3 100644 --- a/spec/lib/stripe/payment_intent_validator_spec.rb +++ b/spec/lib/stripe/payment_intent_validator_spec.rb @@ -25,38 +25,64 @@ describe Stripe::PaymentIntentValidator do let(:validator) { Stripe::PaymentIntentValidator.new(payment) } context "when payment intent is valid" do - let!(:pm_card) do - Stripe::PaymentMethod.create({ - type: 'card', - card: { - number: '4242424242424242', - exp_month: 12, - exp_year: year_valid, - cvc: '314', - }, - }) - end - let!(:payment_intent) do - Stripe::PaymentIntent.create({ - amount: 100, - currency: 'eur', - payment_method: pm_card, - payment_method_types: ['card'], - capture_method: 'manual', - }) - end - let(:payment_intent_response_body) { - [id: payment_intent.id, status: payment_intent.status] - } + shared_examples "payments intents" do |card_type, card_number| + context "from #{card_type}" do + let!(:pm_card) do + Stripe::PaymentMethod.create({ + type: 'card', + card: { + number: card_number, + exp_month: 12, + exp_year: year_valid, + cvc: '314', + }, + }) + end + let!(:payment_intent) do + Stripe::PaymentIntent.create({ + amount: 100, + currency: 'eur', + payment_method: pm_card, + payment_method_types: ['card'], + capture_method: 'manual', + }) + end + let(:payment_intent_response_body) { + [id: payment_intent.id, status: payment_intent.status] + } - before do - Stripe::PaymentIntent.confirm(payment_intent.id) + before do + Stripe::PaymentIntent.confirm(payment_intent.id) + end + it "returns payment intent id and does not raise" do + expect { + result = validator.call + expect(result).to eq payment_intent_response_body + }.to_not raise_error Stripe::StripeError + end + end end - it "returns payment intent id and does not raise" do - expect { - result = validator.call - expect(result).to eq payment_intent_response_body - }.to_not raise_error Stripe::StripeError + + context "valid credit cards are correctly handled" do + it_behaves_like "payments intents", "Authenticate unless set up", 4_000_002_500_003_155 + it_behaves_like "payments intents", "Visa", 4_242_424_242_424_242 + it_behaves_like "payments intents", "Visa (debit)", 4_000_056_655_665_556 + it_behaves_like "payments intents", "Mastercard", 5_555_555_555_554_444 + it_behaves_like "payments intents", "Mastercard (2-series)", 2_223_003_122_003_222 + it_behaves_like "payments intents", "Mastercard (debit)", 5_200_828_282_828_210 + it_behaves_like "payments intents", "Mastercard (prepaid)", 5_105_105_105_105_100 + it_behaves_like "payments intents", "American Express", 378_282_246_310_005 + it_behaves_like "payments intents", "American Express", 371_449_635_398_431 + it_behaves_like "payments intents", "Discover", 6_011_111_111_111_117 + it_behaves_like "payments intents", "Discover", 6_011_000_990_139_424 + it_behaves_like "payments intents", "Discover (debit)", 6_011_981_111_111_113 + it_behaves_like "payments intents", "Diners Club", 3_056_930_009_020_004 + it_behaves_like "payments intents", "Diners Club (14-digit card)", 36_227_206_271_667 + it_behaves_like "payments intents", "BCcard and DinaCard", 6_555_900_000_604_105 + it_behaves_like "payments intents", "JCB", 3_566_002_020_360_505 + it_behaves_like "payments intents", "UnionPay", 6_200_000_000_000_005 + it_behaves_like "payments intents", "UnionPay (debit)", 6_200_000_000_000_047 + it_behaves_like "payments intents", "UnionPay (19-digit card)", 6_205_500_000_000_000_004 end end context "when payment intent is invalid" do From e50baa9a189db638ff19ac6c0b4919d3e958b8ce Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Tue, 5 Dec 2023 15:27:46 +0000 Subject: [PATCH 2/3] Adds payment capture scenario --- ...s_payment_intent_id_and_does_not_raise.yml | 529 ------------ .../captures_the_payment.yml | 775 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 82 +- .../captures_the_payment.yml | 775 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 82 +- .../from_Diners_Club/captures_the_payment.yml | 775 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 82 +- .../captures_the_payment.yml | 775 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 82 +- .../from_Discover/captures_the_payment.yml | 775 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 82 +- .../captures_the_payment.yml | 775 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 82 +- .../from_JCB/captures_the_payment.yml | 775 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 82 +- .../from_Mastercard/captures_the_payment.yml | 775 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 82 +- .../captures_the_payment.yml | 775 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 82 +- .../captures_the_payment.yml | 775 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 82 +- .../captures_the_payment.yml | 775 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 82 +- .../from_UnionPay/captures_the_payment.yml | 775 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 82 +- .../captures_the_payment.yml | 775 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 82 +- .../captures_the_payment.yml | 775 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 82 +- .../from_Visa/captures_the_payment.yml | 775 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 82 +- .../from_Visa_debit_/captures_the_payment.yml | 775 ++++++++++++++++++ ...s_payment_intent_id_and_does_not_raise.yml | 82 +- .../stripe/payment_intent_validator_spec.rb | 15 +- 34 files changed, 13068 insertions(+), 1188 deletions(-) delete mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Authenticate_unless_set_up/returns_payment_intent_id_and_does_not_raise.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/captures_the_payment.yml rename spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/{valid_credit_cards_are_correctly_handled => valid_non-3D_credit_cards_are_correctly_handled}/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml (87%) create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/captures_the_payment.yml rename spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/{valid_credit_cards_are_correctly_handled => valid_non-3D_credit_cards_are_correctly_handled}/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml (87%) create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/captures_the_payment.yml rename spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/{valid_credit_cards_are_correctly_handled => valid_non-3D_credit_cards_are_correctly_handled}/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml (87%) create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/captures_the_payment.yml rename spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/{valid_credit_cards_are_correctly_handled => valid_non-3D_credit_cards_are_correctly_handled}/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml (87%) create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/captures_the_payment.yml rename spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/{valid_credit_cards_are_correctly_handled => valid_non-3D_credit_cards_are_correctly_handled}/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml (87%) create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/captures_the_payment.yml rename spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/{valid_credit_cards_are_correctly_handled => valid_non-3D_credit_cards_are_correctly_handled}/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml (87%) create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/captures_the_payment.yml rename spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/{valid_credit_cards_are_correctly_handled => valid_non-3D_credit_cards_are_correctly_handled}/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml (87%) create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/captures_the_payment.yml rename spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/{valid_credit_cards_are_correctly_handled => valid_non-3D_credit_cards_are_correctly_handled}/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml (87%) create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/captures_the_payment.yml rename spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/{valid_credit_cards_are_correctly_handled => valid_non-3D_credit_cards_are_correctly_handled}/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml (87%) create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/captures_the_payment.yml rename spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/{valid_credit_cards_are_correctly_handled => valid_non-3D_credit_cards_are_correctly_handled}/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml (87%) create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/captures_the_payment.yml rename spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/{valid_credit_cards_are_correctly_handled => valid_non-3D_credit_cards_are_correctly_handled}/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml (87%) create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/captures_the_payment.yml rename spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/{valid_credit_cards_are_correctly_handled => valid_non-3D_credit_cards_are_correctly_handled}/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml (87%) create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/captures_the_payment.yml rename spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/{valid_credit_cards_are_correctly_handled => valid_non-3D_credit_cards_are_correctly_handled}/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml (87%) create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/captures_the_payment.yml rename spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/{valid_credit_cards_are_correctly_handled => valid_non-3D_credit_cards_are_correctly_handled}/behaves_like_payments_intents/from_UnionPay_debit_/returns_payment_intent_id_and_does_not_raise.yml (87%) create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/captures_the_payment.yml rename spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/{valid_credit_cards_are_correctly_handled => valid_non-3D_credit_cards_are_correctly_handled}/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml (86%) create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/captures_the_payment.yml rename spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/{valid_credit_cards_are_correctly_handled => valid_non-3D_credit_cards_are_correctly_handled}/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml (87%) diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Authenticate_unless_set_up/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Authenticate_unless_set_up/returns_payment_intent_id_and_does_not_raise.yml deleted file mode 100644 index be921cefa1..0000000000 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Authenticate_unless_set_up/returns_payment_intent_id_and_does_not_raise.yml +++ /dev/null @@ -1,529 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.stripe.com/v1/payment_methods - body: - encoding: UTF-8 - string: type=card&card[number]=4000002500003155&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 - (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) - #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Mon, 04 Dec 2023 20:46:32 GMT - Content-Type: - - application/json - Content-Length: - - '931' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; - default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; - img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' - Idempotency-Key: - - d5a8669a-5e7e-4ac5-9d9c-f7eafafbcbfa - Original-Request: - - req_wcTMbNP098ISmy - Request-Id: - - req_wcTMbNP098ISmy - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pm_1OJj2CKuuB1fWySnmTYY6khQ", - "object": "payment_method", - "billing_details": { - "address": { - "city": null, - "country": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "email": null, - "name": null, - "phone": null - }, - "card": { - "brand": "visa", - "checks": { - "address_line1_check": null, - "address_postal_code_check": null, - "cvc_check": "unchecked" - }, - "country": "FR", - "exp_month": 12, - "exp_year": 2024, - "fingerprint": "2Z1xiwQp79NyXETe", - "funding": "credit", - "generated_from": null, - "last4": "3155", - "networks": { - "available": [ - "visa" - ], - "preferred": null - }, - "three_d_secure_usage": { - "supported": true - }, - "wallet": null - }, - "created": 1701722792, - "customer": null, - "livemode": false, - "metadata": {}, - "type": "card" - } - recorded_at: Mon, 04 Dec 2023 20:46:32 GMT -- request: - method: post - uri: https://api.stripe.com/v1/payment_intents - body: - encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJj2CKuuB1fWySnmTYY6khQ&payment_method_types[0]=card&capture_method=manual - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_wcTMbNP098ISmy","request_duration_ms":711}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 - (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) - #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Mon, 04 Dec 2023 20:46:33 GMT - Content-Type: - - application/json - Content-Length: - - '1343' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; - default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; - img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' - Idempotency-Key: - - 4a6845b1-a6af-4c67-97c4-5f1c1bd2d9d6 - Original-Request: - - req_5TLWJjEPel2FVW - Request-Id: - - req_5TLWJjEPel2FVW - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OJj2DKuuB1fWySn2TTdJ1Tw", - "object": "payment_intent", - "amount": 100, - "amount_capturable": 0, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OJj2DKuuB1fWySn2TTdJ1Tw_secret_X6ePZ2G9LOnKehVKHiM0fapXu", - "confirmation_method": "automatic", - "created": 1701722793, - "currency": "eur", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": null, - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OJj2CKuuB1fWySnmTYY6khQ", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_confirmation", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Mon, 04 Dec 2023 20:46:33 GMT -- request: - method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2DKuuB1fWySn2TTdJ1Tw/confirm - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_5TLWJjEPel2FVW","request_duration_ms":720}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 - (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) - #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Mon, 04 Dec 2023 20:46:34 GMT - Content-Type: - - application/json - Content-Length: - - '1752' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; - block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action - 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; - style-src 'self' - Idempotency-Key: - - 8d6f6a15-1913-463b-8c28-d45543abb367 - Original-Request: - - req_yjy69ZLoaoY2mC - Request-Id: - - req_yjy69ZLoaoY2mC - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OJj2DKuuB1fWySn2TTdJ1Tw", - "object": "payment_intent", - "amount": 100, - "amount_capturable": 0, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OJj2DKuuB1fWySn2TTdJ1Tw_secret_X6ePZ2G9LOnKehVKHiM0fapXu", - "confirmation_method": "automatic", - "created": 1701722793, - "currency": "eur", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": null, - "livemode": false, - "metadata": {}, - "next_action": { - "type": "use_stripe_sdk", - "use_stripe_sdk": { - "source": "src_1OJj2EKuuB1fWySnqeCQCrZF", - "stripe_js": "https://hooks.stripe.com/redirect/authenticate/src_1OJj2EKuuB1fWySnqeCQCrZF?client_secret=src_client_secret_YRiJPGckZJtNDUldHHbs8s3u&source_redirect_slug=test_YWNjdF8xRmlxRXNLdXVCMWZXeVNuLF9QN3owNGNMRDhFUGFaTmlJMjhqSjh5V1J0SGpkQkNl0100XBhfiDBT", - "type": "three_d_secure_redirect" - } - }, - "on_behalf_of": null, - "payment_method": "pm_1OJj2CKuuB1fWySnmTYY6khQ", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_action", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Mon, 04 Dec 2023 20:46:34 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2DKuuB1fWySn2TTdJ1Tw - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_yjy69ZLoaoY2mC","request_duration_ms":1123}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 - (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) - #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Mon, 04 Dec 2023 20:46:35 GMT - Content-Type: - - application/json - Content-Length: - - '1752' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; - block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action - 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; - style-src 'self' - Request-Id: - - req_TFYWjB2c88GTQp - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OJj2DKuuB1fWySn2TTdJ1Tw", - "object": "payment_intent", - "amount": 100, - "amount_capturable": 0, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OJj2DKuuB1fWySn2TTdJ1Tw_secret_X6ePZ2G9LOnKehVKHiM0fapXu", - "confirmation_method": "automatic", - "created": 1701722793, - "currency": "eur", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": null, - "livemode": false, - "metadata": {}, - "next_action": { - "type": "use_stripe_sdk", - "use_stripe_sdk": { - "source": "src_1OJj2EKuuB1fWySnqeCQCrZF", - "stripe_js": "https://hooks.stripe.com/redirect/authenticate/src_1OJj2EKuuB1fWySnqeCQCrZF?client_secret=src_client_secret_YRiJPGckZJtNDUldHHbs8s3u&source_redirect_slug=test_YWNjdF8xRmlxRXNLdXVCMWZXeVNuLF9QN3owNGNMRDhFUGFaTmlJMjhqSjh5V1J0SGpkQkNl0100XBhfiDBT", - "type": "three_d_secure_redirect" - } - }, - "on_behalf_of": null, - "payment_method": "pm_1OJj2CKuuB1fWySnmTYY6khQ", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_action", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Mon, 04 Dec 2023 20:46:35 GMT -recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/captures_the_payment.yml new file mode 100644 index 0000000000..461ff887c3 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/captures_the_payment.yml @@ -0,0 +1,775 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=378282246310005&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_hDMJRF3PKMkqRA","request_duration_ms":412}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:59 GMT + Content-Type: + - application/json + Content-Length: + - '932' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - a8ae9a78-6df4-437e-b614-6961ba8b9b19 + Original-Request: + - req_SYoCWmWwYsUDB2 + Request-Id: + - req_SYoCWmWwYsUDB2 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OK0NnKuuB1fWySnCwEknS1v", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "amex", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "zYCOiuhqkk4w2g2M", + "funding": "credit", + "generated_from": null, + "last4": "0005", + "networks": { + "available": [ + "amex" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": false + }, + "wallet": null + }, + "created": 1701789479, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 15:17:59 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OK0NnKuuB1fWySnCwEknS1v&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_SYoCWmWwYsUDB2","request_duration_ms":698}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:59 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - d36ad718-c670-4096-a0ce-2b2d90e4e084 + Original-Request: + - req_sMOosltstE21F2 + Request-Id: + - req_sMOosltstE21F2 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NnKuuB1fWySn1Ea3k80J", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NnKuuB1fWySn1Ea3k80J_secret_7wzasiQ4kikXKuqDTh3dmtOW6", + "confirmation_method": "automatic", + "created": 1701789479, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NnKuuB1fWySnCwEknS1v", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:59 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NnKuuB1fWySn1Ea3k80J/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_sMOosltstE21F2","request_duration_ms":623}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:01 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 6e48f67e-18c2-4c6f-b014-073854ce72c3 + Original-Request: + - req_AlxJNFEp2APeSU + Request-Id: + - req_AlxJNFEp2APeSU + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NnKuuB1fWySn1Ea3k80J", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NnKuuB1fWySn1Ea3k80J_secret_7wzasiQ4kikXKuqDTh3dmtOW6", + "confirmation_method": "automatic", + "created": 1701789479, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NnKuuB1fWySn1g2gr2XU", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NnKuuB1fWySnCwEknS1v", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:00 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NnKuuB1fWySn1Ea3k80J + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_AlxJNFEp2APeSU","request_duration_ms":1238}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:01 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_rNC3BOSQBSM7jv + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NnKuuB1fWySn1Ea3k80J", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NnKuuB1fWySn1Ea3k80J_secret_7wzasiQ4kikXKuqDTh3dmtOW6", + "confirmation_method": "automatic", + "created": 1701789479, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NnKuuB1fWySn1g2gr2XU", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NnKuuB1fWySnCwEknS1v", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:01 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NnKuuB1fWySn1Ea3k80J/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_rNC3BOSQBSM7jv","request_duration_ms":528}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:03 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - d40d23b6-4806-4203-889f-af8b4283180c + Original-Request: + - req_ZHmpjdytcnwPEV + Request-Id: + - req_ZHmpjdytcnwPEV + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NnKuuB1fWySn1Ea3k80J", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NnKuuB1fWySn1Ea3k80J_secret_7wzasiQ4kikXKuqDTh3dmtOW6", + "confirmation_method": "automatic", + "created": 1701789479, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NnKuuB1fWySn1g2gr2XU", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NnKuuB1fWySnCwEknS1v", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:02 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NnKuuB1fWySn1Ea3k80J + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_ZHmpjdytcnwPEV","request_duration_ms":1460}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:03 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_CpRbwgH4d5pN4d + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NnKuuB1fWySn1Ea3k80J", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NnKuuB1fWySn1Ea3k80J_secret_7wzasiQ4kikXKuqDTh3dmtOW6", + "confirmation_method": "automatic", + "created": 1701789479, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NnKuuB1fWySn1g2gr2XU", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NnKuuB1fWySnCwEknS1v", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:03 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml similarity index 87% rename from spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml index 4efcb38203..2eca578cbc 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_2nR9W2ZCRoU7Zt","request_duration_ms":418}}' + - '{"last_request_metrics":{"request_id":"req_aill0MXqVb2gur","request_duration_ms":373}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:52 GMT + - Tue, 05 Dec 2023 15:17:56 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 785d9bdb-3260-4702-afed-6a1995c41bf4 + - f4bf3727-3295-4ec9-b193-a3bcc6248d8c Original-Request: - - req_ud5UGo3TLJlE3V + - req_IKwNHSoX51G1UH Request-Id: - - req_ud5UGo3TLJlE3V + - req_IKwNHSoX51G1UH Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJj2WKuuB1fWySnp8wdHY2g", + "id": "pm_1OK0NjKuuB1fWySnf1DLzQbQ", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701722812, + "created": 1701789475, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Mon, 04 Dec 2023 20:46:52 GMT + recorded_at: Tue, 05 Dec 2023 15:17:55 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJj2WKuuB1fWySnp8wdHY2g&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OK0NjKuuB1fWySnf1DLzQbQ&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_ud5UGo3TLJlE3V","request_duration_ms":467}}' + - '{"last_request_metrics":{"request_id":"req_IKwNHSoX51G1UH","request_duration_ms":625}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:53 GMT + - Tue, 05 Dec 2023 15:17:56 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 1c8d6a4b-c6be-492e-a4c7-ebafba7c78f4 + - 343353fc-4ba4-47f6-a8b6-c485c4d65cf6 Original-Request: - - req_XhKxeSDZ0Sycn9 + - req_a5MRKLmiWzP5Bt Request-Id: - - req_XhKxeSDZ0Sycn9 + - req_a5MRKLmiWzP5Bt Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2WKuuB1fWySn07Xkpx25", + "id": "pi_3OK0NkKuuB1fWySn26j9L00x", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2WKuuB1fWySn07Xkpx25_secret_t5FsYIakS9DwGTIOEX8QbL6jQ", + "client_secret": "pi_3OK0NkKuuB1fWySn26j9L00x_secret_TsLQMlOnmhjCZWjBbiBqldzDB", "confirmation_method": "automatic", - "created": 1701722812, + "created": 1701789476, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2WKuuB1fWySnp8wdHY2g", + "payment_method": "pm_1OK0NjKuuB1fWySnf1DLzQbQ", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:53 GMT + recorded_at: Tue, 05 Dec 2023 15:17:56 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2WKuuB1fWySn07Xkpx25/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NkKuuB1fWySn26j9L00x/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_XhKxeSDZ0Sycn9","request_duration_ms":396}}' + - '{"last_request_metrics":{"request_id":"req_a5MRKLmiWzP5Bt","request_duration_ms":624}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:54 GMT + - Tue, 05 Dec 2023 15:17:57 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 65158ad1-4aa8-4f37-8e1e-1bda18bffb65 + - 8c0875cb-1e95-4d4c-997d-c9c21248117e Original-Request: - - req_L5y463rS7140I6 + - req_oSfvc1FoeEuIOl Request-Id: - - req_L5y463rS7140I6 + - req_oSfvc1FoeEuIOl Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2WKuuB1fWySn07Xkpx25", + "id": "pi_3OK0NkKuuB1fWySn26j9L00x", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2WKuuB1fWySn07Xkpx25_secret_t5FsYIakS9DwGTIOEX8QbL6jQ", + "client_secret": "pi_3OK0NkKuuB1fWySn26j9L00x_secret_TsLQMlOnmhjCZWjBbiBqldzDB", "confirmation_method": "automatic", - "created": 1701722812, + "created": 1701789476, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2WKuuB1fWySn0tBsEUXs", + "latest_charge": "ch_3OK0NkKuuB1fWySn2a21PE8W", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2WKuuB1fWySnp8wdHY2g", + "payment_method": "pm_1OK0NjKuuB1fWySnf1DLzQbQ", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:54 GMT + recorded_at: Tue, 05 Dec 2023 15:17:57 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2WKuuB1fWySn07Xkpx25 + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NkKuuB1fWySn26j9L00x body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_L5y463rS7140I6","request_duration_ms":1027}}' + - '{"last_request_metrics":{"request_id":"req_oSfvc1FoeEuIOl","request_duration_ms":1042}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:55 GMT + - Tue, 05 Dec 2023 15:17:58 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_hIwz6YfndA8AcC + - req_hDMJRF3PKMkqRA Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2WKuuB1fWySn07Xkpx25", + "id": "pi_3OK0NkKuuB1fWySn26j9L00x", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2WKuuB1fWySn07Xkpx25_secret_t5FsYIakS9DwGTIOEX8QbL6jQ", + "client_secret": "pi_3OK0NkKuuB1fWySn26j9L00x_secret_TsLQMlOnmhjCZWjBbiBqldzDB", "confirmation_method": "automatic", - "created": 1701722812, + "created": 1701789476, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2WKuuB1fWySn0tBsEUXs", + "latest_charge": "ch_3OK0NkKuuB1fWySn2a21PE8W", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2WKuuB1fWySnp8wdHY2g", + "payment_method": "pm_1OK0NjKuuB1fWySnf1DLzQbQ", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,5 +513,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:55 GMT + recorded_at: Tue, 05 Dec 2023 15:17:58 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/captures_the_payment.yml new file mode 100644 index 0000000000..26b55d1195 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/captures_the_payment.yml @@ -0,0 +1,775 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6555900000604105&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_N9IvR7c7bdPRVF","request_duration_ms":489}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:39 GMT + Content-Type: + - application/json + Content-Length: + - '939' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 18ada2e6-2f82-48a6-a66f-c528075b2a3b + Original-Request: + - req_LBhKyXRz0te2LM + Request-Id: + - req_LBhKyXRz0te2LM + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OK0ORKuuB1fWySn01GwTcHT", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "discover", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "7NZ8adObS8Rw8HOq", + "funding": "credit", + "generated_from": null, + "last4": "4105", + "networks": { + "available": [ + "discover" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701789519, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 15:18:38 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OK0ORKuuB1fWySn01GwTcHT&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_LBhKyXRz0te2LM","request_duration_ms":485}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:39 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 1d6614cf-5c31-406a-93c0-976861923559 + Original-Request: + - req_KWddo4V7yQvpKh + Request-Id: + - req_KWddo4V7yQvpKh + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0ORKuuB1fWySn0sIZSpGF", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0ORKuuB1fWySn0sIZSpGF_secret_Jbm9bPiWtYazT9cw1wwdeWxz4", + "confirmation_method": "automatic", + "created": 1701789519, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0ORKuuB1fWySn01GwTcHT", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:39 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0ORKuuB1fWySn0sIZSpGF/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_KWddo4V7yQvpKh","request_duration_ms":510}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:40 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - f562bdb6-62fd-436d-89f3-1110fae6fe1a + Original-Request: + - req_vmRWBvjaYxSsqJ + Request-Id: + - req_vmRWBvjaYxSsqJ + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0ORKuuB1fWySn0sIZSpGF", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0ORKuuB1fWySn0sIZSpGF_secret_Jbm9bPiWtYazT9cw1wwdeWxz4", + "confirmation_method": "automatic", + "created": 1701789519, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0ORKuuB1fWySn00XsuLJz", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0ORKuuB1fWySn01GwTcHT", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:40 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0ORKuuB1fWySn0sIZSpGF + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_vmRWBvjaYxSsqJ","request_duration_ms":1051}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:41 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_0IKVsFYco3MLM0 + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0ORKuuB1fWySn0sIZSpGF", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0ORKuuB1fWySn0sIZSpGF_secret_Jbm9bPiWtYazT9cw1wwdeWxz4", + "confirmation_method": "automatic", + "created": 1701789519, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0ORKuuB1fWySn00XsuLJz", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0ORKuuB1fWySn01GwTcHT", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:40 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0ORKuuB1fWySn0sIZSpGF/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_0IKVsFYco3MLM0","request_duration_ms":426}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:42 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 461c4490-90ac-4b91-980d-dc06fdc1ae01 + Original-Request: + - req_kOivKLRQV2gwAG + Request-Id: + - req_kOivKLRQV2gwAG + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0ORKuuB1fWySn0sIZSpGF", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0ORKuuB1fWySn0sIZSpGF_secret_Jbm9bPiWtYazT9cw1wwdeWxz4", + "confirmation_method": "automatic", + "created": 1701789519, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0ORKuuB1fWySn00XsuLJz", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0ORKuuB1fWySn01GwTcHT", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:42 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0ORKuuB1fWySn0sIZSpGF + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_kOivKLRQV2gwAG","request_duration_ms":1163}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:42 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_T1R5tMpzPVq4Qh + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0ORKuuB1fWySn0sIZSpGF", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0ORKuuB1fWySn0sIZSpGF_secret_Jbm9bPiWtYazT9cw1wwdeWxz4", + "confirmation_method": "automatic", + "created": 1701789519, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0ORKuuB1fWySn00XsuLJz", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0ORKuuB1fWySn01GwTcHT", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:42 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml similarity index 87% rename from spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml index 5086b5cbd2..04743a2eb8 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Huk2iMtr6cghVI","request_duration_ms":390}}' + - '{"last_request_metrics":{"request_id":"req_FsWpCIItxhZwAx","request_duration_ms":493}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:08 GMT + - Tue, 05 Dec 2023 15:18:36 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 4e1d0fda-1907-49be-afd9-82243424994b + - a8f4a2e6-110e-43f2-8837-894841616018 Original-Request: - - req_UsUuNXI6Mf78Zr + - req_uAMB03UKPu5Lvf Request-Id: - - req_UsUuNXI6Mf78Zr + - req_uAMB03UKPu5Lvf Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJj2mKuuB1fWySnwzbZHjl8", + "id": "pm_1OK0OOKuuB1fWySnGptMBuYy", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701722828, + "created": 1701789516, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Mon, 04 Dec 2023 20:47:08 GMT + recorded_at: Tue, 05 Dec 2023 15:18:36 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJj2mKuuB1fWySnwzbZHjl8&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OK0OOKuuB1fWySnGptMBuYy&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_UsUuNXI6Mf78Zr","request_duration_ms":574}}' + - '{"last_request_metrics":{"request_id":"req_uAMB03UKPu5Lvf","request_duration_ms":500}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:08 GMT + - Tue, 05 Dec 2023 15:18:36 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - c225ede7-4a69-4984-b0bc-0fea33898deb + - 743a1f66-3192-43e3-9e89-f53978609279 Original-Request: - - req_Xx4ybTOvJ2JW1q + - req_7xYPaXePiaTYB8 Request-Id: - - req_Xx4ybTOvJ2JW1q + - req_7xYPaXePiaTYB8 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2mKuuB1fWySn0bNhtOzo", + "id": "pi_3OK0OOKuuB1fWySn2OKUeMDy", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2mKuuB1fWySn0bNhtOzo_secret_XUKC9pxXp4pPc8a3MCH02okch", + "client_secret": "pi_3OK0OOKuuB1fWySn2OKUeMDy_secret_J1Fu2Q2OdSokbidZipe83zGBB", "confirmation_method": "automatic", - "created": 1701722828, + "created": 1701789516, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2mKuuB1fWySnwzbZHjl8", + "payment_method": "pm_1OK0OOKuuB1fWySnGptMBuYy", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:08 GMT + recorded_at: Tue, 05 Dec 2023 15:18:36 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2mKuuB1fWySn0bNhtOzo/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OOKuuB1fWySn2OKUeMDy/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Xx4ybTOvJ2JW1q","request_duration_ms":404}}' + - '{"last_request_metrics":{"request_id":"req_7xYPaXePiaTYB8","request_duration_ms":468}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:09 GMT + - Tue, 05 Dec 2023 15:18:37 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - a72f707b-9107-4716-a499-6d6ad43d76df + - 2cf4c83e-08f6-40d0-89ae-084c8e9237ec Original-Request: - - req_1iXUE29Ls5dtX5 + - req_PPPIIre38iMPAf Request-Id: - - req_1iXUE29Ls5dtX5 + - req_PPPIIre38iMPAf Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2mKuuB1fWySn0bNhtOzo", + "id": "pi_3OK0OOKuuB1fWySn2OKUeMDy", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2mKuuB1fWySn0bNhtOzo_secret_XUKC9pxXp4pPc8a3MCH02okch", + "client_secret": "pi_3OK0OOKuuB1fWySn2OKUeMDy_secret_J1Fu2Q2OdSokbidZipe83zGBB", "confirmation_method": "automatic", - "created": 1701722828, + "created": 1701789516, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2mKuuB1fWySn0Z6aBzKj", + "latest_charge": "ch_3OK0OOKuuB1fWySn24oGO6oI", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2mKuuB1fWySnwzbZHjl8", + "payment_method": "pm_1OK0OOKuuB1fWySnGptMBuYy", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:09 GMT + recorded_at: Tue, 05 Dec 2023 15:18:37 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2mKuuB1fWySn0bNhtOzo + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OOKuuB1fWySn2OKUeMDy body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_1iXUE29Ls5dtX5","request_duration_ms":1020}}' + - '{"last_request_metrics":{"request_id":"req_PPPIIre38iMPAf","request_duration_ms":1016}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:10 GMT + - Tue, 05 Dec 2023 15:18:38 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_MVdZ7didxp5zr8 + - req_N9IvR7c7bdPRVF Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2mKuuB1fWySn0bNhtOzo", + "id": "pi_3OK0OOKuuB1fWySn2OKUeMDy", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2mKuuB1fWySn0bNhtOzo_secret_XUKC9pxXp4pPc8a3MCH02okch", + "client_secret": "pi_3OK0OOKuuB1fWySn2OKUeMDy_secret_J1Fu2Q2OdSokbidZipe83zGBB", "confirmation_method": "automatic", - "created": 1701722828, + "created": 1701789516, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2mKuuB1fWySn0Z6aBzKj", + "latest_charge": "ch_3OK0OOKuuB1fWySn24oGO6oI", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2mKuuB1fWySnwzbZHjl8", + "payment_method": "pm_1OK0OOKuuB1fWySnGptMBuYy", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,5 +513,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:10 GMT + recorded_at: Tue, 05 Dec 2023 15:18:38 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/captures_the_payment.yml new file mode 100644 index 0000000000..77b1dcd8be --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/captures_the_payment.yml @@ -0,0 +1,775 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=3056930009020004&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_WmC2NruzVUF1qB","request_duration_ms":516}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:24 GMT + Content-Type: + - application/json + Content-Length: + - '936' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 93f68076-4a61-483e-9d6a-3da797c891af + Original-Request: + - req_AF8cYVTb9Rp80a + Request-Id: + - req_AF8cYVTb9Rp80a + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OK0OCKuuB1fWySnXXYtmIqO", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "diners", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "8CvV2XFCUY7eGw6O", + "funding": "credit", + "generated_from": null, + "last4": "0004", + "networks": { + "available": [ + "diners" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": false + }, + "wallet": null + }, + "created": 1701789504, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 15:18:24 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OK0OCKuuB1fWySnXXYtmIqO&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_AF8cYVTb9Rp80a","request_duration_ms":685}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:25 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 4bacfd64-5c40-4602-a162-4d31f820e03e + Original-Request: + - req_pITol3FN79B8nb + Request-Id: + - req_pITol3FN79B8nb + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0ODKuuB1fWySn2L39JsPV", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0ODKuuB1fWySn2L39JsPV_secret_pMYnFNWohTPsSdwOOSmfS4lIF", + "confirmation_method": "automatic", + "created": 1701789505, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OCKuuB1fWySnXXYtmIqO", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:25 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0ODKuuB1fWySn2L39JsPV/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_pITol3FN79B8nb","request_duration_ms":733}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:26 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - ddd63ea8-d6af-41d1-a473-54444ebe2bb7 + Original-Request: + - req_gEQw4EUIq9Utey + Request-Id: + - req_gEQw4EUIq9Utey + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0ODKuuB1fWySn2L39JsPV", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0ODKuuB1fWySn2L39JsPV_secret_pMYnFNWohTPsSdwOOSmfS4lIF", + "confirmation_method": "automatic", + "created": 1701789505, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0ODKuuB1fWySn2JjFgzR4", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OCKuuB1fWySnXXYtmIqO", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:26 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0ODKuuB1fWySn2L39JsPV + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_gEQw4EUIq9Utey","request_duration_ms":1249}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:27 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_N4xfPjUAXq6Gix + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0ODKuuB1fWySn2L39JsPV", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0ODKuuB1fWySn2L39JsPV_secret_pMYnFNWohTPsSdwOOSmfS4lIF", + "confirmation_method": "automatic", + "created": 1701789505, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0ODKuuB1fWySn2JjFgzR4", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OCKuuB1fWySnXXYtmIqO", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:27 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0ODKuuB1fWySn2L39JsPV/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_N4xfPjUAXq6Gix","request_duration_ms":517}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:28 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 27a7c41c-ac5d-4133-b9bd-f3eabb7a36ce + Original-Request: + - req_RyhaEhFojMNcKq + Request-Id: + - req_RyhaEhFojMNcKq + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0ODKuuB1fWySn2L39JsPV", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0ODKuuB1fWySn2L39JsPV_secret_pMYnFNWohTPsSdwOOSmfS4lIF", + "confirmation_method": "automatic", + "created": 1701789505, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0ODKuuB1fWySn2JjFgzR4", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OCKuuB1fWySnXXYtmIqO", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:28 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0ODKuuB1fWySn2L39JsPV + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_RyhaEhFojMNcKq","request_duration_ms":1021}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:29 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_WISMFz5TxsTsH2 + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0ODKuuB1fWySn2L39JsPV", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0ODKuuB1fWySn2L39JsPV_secret_pMYnFNWohTPsSdwOOSmfS4lIF", + "confirmation_method": "automatic", + "created": 1701789505, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0ODKuuB1fWySn2JjFgzR4", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OCKuuB1fWySnXXYtmIqO", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:28 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml similarity index 87% rename from spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml index 9bf96c3dfe..9f8e999b7e 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_QyvzzQqGeKUY7C","request_duration_ms":394}}' + - '{"last_request_metrics":{"request_id":"req_fEQMyAwtwZBVEk","request_duration_ms":411}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:02 GMT + - Tue, 05 Dec 2023 15:18:21 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 323860d7-7e6a-4f30-9f14-558973f820d2 + - 1e540e0b-0403-4021-9fe1-ff7244b01325 Original-Request: - - req_gGtCYiWxbNeaJv + - req_2wmS5fABuqN6wt Request-Id: - - req_gGtCYiWxbNeaJv + - req_2wmS5fABuqN6wt Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJj2gKuuB1fWySnUg2cFGOG", + "id": "pm_1OK0O9KuuB1fWySnYxg1USuQ", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701722822, + "created": 1701789501, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Mon, 04 Dec 2023 20:47:02 GMT + recorded_at: Tue, 05 Dec 2023 15:18:21 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJj2gKuuB1fWySnUg2cFGOG&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OK0O9KuuB1fWySnYxg1USuQ&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_gGtCYiWxbNeaJv","request_duration_ms":572}}' + - '{"last_request_metrics":{"request_id":"req_2wmS5fABuqN6wt","request_duration_ms":583}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:03 GMT + - Tue, 05 Dec 2023 15:18:22 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - bd145627-8d95-40ad-aa8d-05715feabb2f + - 82413363-4d46-48ca-b23c-a2f89b7fa445 Original-Request: - - req_u4pKVVS1PRCvVN + - req_sILOyo6TfjinMP Request-Id: - - req_u4pKVVS1PRCvVN + - req_sILOyo6TfjinMP Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2gKuuB1fWySn0oN3C56a", + "id": "pi_3OK0O9KuuB1fWySn2dzGWJDM", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2gKuuB1fWySn0oN3C56a_secret_PoHyuHdQsNXD5sr4e2AaPwqsO", + "client_secret": "pi_3OK0O9KuuB1fWySn2dzGWJDM_secret_iwQSzWjIVFSMUymOSFfcR2yXm", "confirmation_method": "automatic", - "created": 1701722822, + "created": 1701789501, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2gKuuB1fWySnUg2cFGOG", + "payment_method": "pm_1OK0O9KuuB1fWySnYxg1USuQ", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:03 GMT + recorded_at: Tue, 05 Dec 2023 15:18:21 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2gKuuB1fWySn0oN3C56a/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0O9KuuB1fWySn2dzGWJDM/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_u4pKVVS1PRCvVN","request_duration_ms":506}}' + - '{"last_request_metrics":{"request_id":"req_sILOyo6TfjinMP","request_duration_ms":650}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:03 GMT + - Tue, 05 Dec 2023 15:18:23 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - b9f75b70-dc38-4659-91a5-93bb7f1f081f + - d8f9a2a4-3514-4083-9bbc-2510ebe95077 Original-Request: - - req_hHAv52Rtio8Kar + - req_ryGKj05BBCSD8X Request-Id: - - req_hHAv52Rtio8Kar + - req_ryGKj05BBCSD8X Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2gKuuB1fWySn0oN3C56a", + "id": "pi_3OK0O9KuuB1fWySn2dzGWJDM", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2gKuuB1fWySn0oN3C56a_secret_PoHyuHdQsNXD5sr4e2AaPwqsO", + "client_secret": "pi_3OK0O9KuuB1fWySn2dzGWJDM_secret_iwQSzWjIVFSMUymOSFfcR2yXm", "confirmation_method": "automatic", - "created": 1701722822, + "created": 1701789501, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2gKuuB1fWySn0PgzKS1r", + "latest_charge": "ch_3OK0O9KuuB1fWySn2kmXf3Z1", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2gKuuB1fWySnUg2cFGOG", + "payment_method": "pm_1OK0O9KuuB1fWySnYxg1USuQ", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:03 GMT + recorded_at: Tue, 05 Dec 2023 15:18:23 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2gKuuB1fWySn0oN3C56a + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0O9KuuB1fWySn2dzGWJDM body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_hHAv52Rtio8Kar","request_duration_ms":838}}' + - '{"last_request_metrics":{"request_id":"req_ryGKj05BBCSD8X","request_duration_ms":1249}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:04 GMT + - Tue, 05 Dec 2023 15:18:24 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_zHez8FZF2OLOHh + - req_WmC2NruzVUF1qB Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2gKuuB1fWySn0oN3C56a", + "id": "pi_3OK0O9KuuB1fWySn2dzGWJDM", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2gKuuB1fWySn0oN3C56a_secret_PoHyuHdQsNXD5sr4e2AaPwqsO", + "client_secret": "pi_3OK0O9KuuB1fWySn2dzGWJDM_secret_iwQSzWjIVFSMUymOSFfcR2yXm", "confirmation_method": "automatic", - "created": 1701722822, + "created": 1701789501, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2gKuuB1fWySn0PgzKS1r", + "latest_charge": "ch_3OK0O9KuuB1fWySn2kmXf3Z1", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2gKuuB1fWySnUg2cFGOG", + "payment_method": "pm_1OK0O9KuuB1fWySnYxg1USuQ", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,5 +513,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:04 GMT + recorded_at: Tue, 05 Dec 2023 15:18:24 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/captures_the_payment.yml new file mode 100644 index 0000000000..8e21f99ef2 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/captures_the_payment.yml @@ -0,0 +1,775 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=36227206271667&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_gF5BV3665PJPDP","request_duration_ms":368}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:32 GMT + Content-Type: + - application/json + Content-Length: + - '936' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - d48744a5-5171-4a65-87a0-f708d6a36a5f + Original-Request: + - req_RrZ1sJtovOOBje + Request-Id: + - req_RrZ1sJtovOOBje + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OK0OKKuuB1fWySn6WzTbGV2", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "diners", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "gDlx6y9moRYkO83e", + "funding": "credit", + "generated_from": null, + "last4": "1667", + "networks": { + "available": [ + "diners" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": false + }, + "wallet": null + }, + "created": 1701789512, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 15:18:31 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OK0OKKuuB1fWySn6WzTbGV2&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_RrZ1sJtovOOBje","request_duration_ms":513}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:32 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 36c9609b-1c1d-4196-83ed-b06942b1990b + Original-Request: + - req_s2WqG1gJrDeKCm + Request-Id: + - req_s2WqG1gJrDeKCm + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OKKuuB1fWySn0TJin4D9", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OKKuuB1fWySn0TJin4D9_secret_ljmW3elp3sfCUMyAzATpJYIp5", + "confirmation_method": "automatic", + "created": 1701789512, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OKKuuB1fWySn6WzTbGV2", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:32 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OKKuuB1fWySn0TJin4D9/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_s2WqG1gJrDeKCm","request_duration_ms":614}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:33 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - b2fecd39-2e57-4906-8be0-c1ba7721e9c1 + Original-Request: + - req_8ypzoboT7DiogX + Request-Id: + - req_8ypzoboT7DiogX + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OKKuuB1fWySn0TJin4D9", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OKKuuB1fWySn0TJin4D9_secret_ljmW3elp3sfCUMyAzATpJYIp5", + "confirmation_method": "automatic", + "created": 1701789512, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0OKKuuB1fWySn0oj3Kykf", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OKKuuB1fWySn6WzTbGV2", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:33 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OKKuuB1fWySn0TJin4D9 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_8ypzoboT7DiogX","request_duration_ms":1047}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:34 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_XmZiX7jkQguWjO + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OKKuuB1fWySn0TJin4D9", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OKKuuB1fWySn0TJin4D9_secret_ljmW3elp3sfCUMyAzATpJYIp5", + "confirmation_method": "automatic", + "created": 1701789512, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0OKKuuB1fWySn0oj3Kykf", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OKKuuB1fWySn6WzTbGV2", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:33 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OKKuuB1fWySn0TJin4D9/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_XmZiX7jkQguWjO","request_duration_ms":408}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:35 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - f68fe172-f97a-452f-b7c9-b8ef61b69b4d + Original-Request: + - req_ccAEZHbsZ6WPUJ + Request-Id: + - req_ccAEZHbsZ6WPUJ + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OKKuuB1fWySn0TJin4D9", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OKKuuB1fWySn0TJin4D9_secret_ljmW3elp3sfCUMyAzATpJYIp5", + "confirmation_method": "automatic", + "created": 1701789512, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0OKKuuB1fWySn0oj3Kykf", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OKKuuB1fWySn6WzTbGV2", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:35 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OKKuuB1fWySn0TJin4D9 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_ccAEZHbsZ6WPUJ","request_duration_ms":1071}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:35 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_FsWpCIItxhZwAx + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OKKuuB1fWySn0TJin4D9", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OKKuuB1fWySn0TJin4D9_secret_ljmW3elp3sfCUMyAzATpJYIp5", + "confirmation_method": "automatic", + "created": 1701789512, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0OKKuuB1fWySn0oj3Kykf", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OKKuuB1fWySn6WzTbGV2", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:35 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml similarity index 87% rename from spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml index 7b874287a0..b3495c2241 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_zHez8FZF2OLOHh","request_duration_ms":388}}' + - '{"last_request_metrics":{"request_id":"req_WISMFz5TxsTsH2","request_duration_ms":347}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:05 GMT + - Tue, 05 Dec 2023 15:18:29 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - d515aec3-6187-45a7-a15d-204bd33f6d89 + - 6de8d9b8-4e18-4b06-8db0-4866f971af3d Original-Request: - - req_kubS80nZjHbZPs + - req_pMgRt6g1WYtnVF Request-Id: - - req_kubS80nZjHbZPs + - req_pMgRt6g1WYtnVF Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJj2jKuuB1fWySn3RgNmuah", + "id": "pm_1OK0OHKuuB1fWySnfdKrLSaO", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701722825, + "created": 1701789509, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Mon, 04 Dec 2023 20:47:05 GMT + recorded_at: Tue, 05 Dec 2023 15:18:29 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJj2jKuuB1fWySn3RgNmuah&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OK0OHKuuB1fWySnfdKrLSaO&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_kubS80nZjHbZPs","request_duration_ms":573}}' + - '{"last_request_metrics":{"request_id":"req_pMgRt6g1WYtnVF","request_duration_ms":460}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:05 GMT + - Tue, 05 Dec 2023 15:18:30 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 6817365c-51f0-4d4a-99ac-69e68171ad1e + - 960de879-0f49-4887-a35f-96a1ef5a0dde Original-Request: - - req_g3hnQzB5ZlXOsP + - req_tRlxa4A80syvcP Request-Id: - - req_g3hnQzB5ZlXOsP + - req_tRlxa4A80syvcP Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2jKuuB1fWySn2j9vH0uw", + "id": "pi_3OK0OHKuuB1fWySn1Gh3RVWD", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2jKuuB1fWySn2j9vH0uw_secret_I8oix67gX7JnJFsd4otPRGEB6", + "client_secret": "pi_3OK0OHKuuB1fWySn1Gh3RVWD_secret_027i8OfISkmpgjbIjkZTDcrS7", "confirmation_method": "automatic", - "created": 1701722825, + "created": 1701789509, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2jKuuB1fWySn3RgNmuah", + "payment_method": "pm_1OK0OHKuuB1fWySnfdKrLSaO", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:05 GMT + recorded_at: Tue, 05 Dec 2023 15:18:29 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2jKuuB1fWySn2j9vH0uw/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OHKuuB1fWySn1Gh3RVWD/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_g3hnQzB5ZlXOsP","request_duration_ms":502}}' + - '{"last_request_metrics":{"request_id":"req_tRlxa4A80syvcP","request_duration_ms":512}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:06 GMT + - Tue, 05 Dec 2023 15:18:31 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - d553557d-e7a8-4d4e-829c-a8dba40d18de + - 1c003b8f-8c3b-4faf-8125-f133cb4e1669 Original-Request: - - req_WL9p3GWQJc1rCi + - req_QaocmSTOevIwEa Request-Id: - - req_WL9p3GWQJc1rCi + - req_QaocmSTOevIwEa Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2jKuuB1fWySn2j9vH0uw", + "id": "pi_3OK0OHKuuB1fWySn1Gh3RVWD", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2jKuuB1fWySn2j9vH0uw_secret_I8oix67gX7JnJFsd4otPRGEB6", + "client_secret": "pi_3OK0OHKuuB1fWySn1Gh3RVWD_secret_027i8OfISkmpgjbIjkZTDcrS7", "confirmation_method": "automatic", - "created": 1701722825, + "created": 1701789509, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2jKuuB1fWySn2oDk10YR", + "latest_charge": "ch_3OK0OHKuuB1fWySn1LDXECIw", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2jKuuB1fWySn3RgNmuah", + "payment_method": "pm_1OK0OHKuuB1fWySnfdKrLSaO", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:07 GMT + recorded_at: Tue, 05 Dec 2023 15:18:30 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2jKuuB1fWySn2j9vH0uw + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OHKuuB1fWySn1Gh3RVWD body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_WL9p3GWQJc1rCi","request_duration_ms":1123}}' + - '{"last_request_metrics":{"request_id":"req_QaocmSTOevIwEa","request_duration_ms":962}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:07 GMT + - Tue, 05 Dec 2023 15:18:31 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_Huk2iMtr6cghVI + - req_gF5BV3665PJPDP Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2jKuuB1fWySn2j9vH0uw", + "id": "pi_3OK0OHKuuB1fWySn1Gh3RVWD", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2jKuuB1fWySn2j9vH0uw_secret_I8oix67gX7JnJFsd4otPRGEB6", + "client_secret": "pi_3OK0OHKuuB1fWySn1Gh3RVWD_secret_027i8OfISkmpgjbIjkZTDcrS7", "confirmation_method": "automatic", - "created": 1701722825, + "created": 1701789509, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2jKuuB1fWySn2oDk10YR", + "latest_charge": "ch_3OK0OHKuuB1fWySn1LDXECIw", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2jKuuB1fWySn3RgNmuah", + "payment_method": "pm_1OK0OHKuuB1fWySnfdKrLSaO", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,5 +513,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:07 GMT + recorded_at: Tue, 05 Dec 2023 15:18:31 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/captures_the_payment.yml new file mode 100644 index 0000000000..5454ad1597 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/captures_the_payment.yml @@ -0,0 +1,775 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6011111111111117&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_1hLpMPmHEGomFh","request_duration_ms":407}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:08 GMT + Content-Type: + - application/json + Content-Length: + - '939' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - e958287d-3f3b-4aea-b4aa-23506d886393 + Original-Request: + - req_INtOy9prrhZKbl + Request-Id: + - req_INtOy9prrhZKbl + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OK0NwKuuB1fWySnfUgFlKXB", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "discover", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "SJztPPlfyEUr9hdK", + "funding": "credit", + "generated_from": null, + "last4": "1117", + "networks": { + "available": [ + "discover" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701789488, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 15:18:08 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OK0NwKuuB1fWySnfUgFlKXB&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_INtOy9prrhZKbl","request_duration_ms":698}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:08 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 10001b20-617a-4f79-a704-de9ffc21985f + Original-Request: + - req_yYXtKZ4VDOonsV + Request-Id: + - req_yYXtKZ4VDOonsV + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NwKuuB1fWySn0fgo2maD", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NwKuuB1fWySn0fgo2maD_secret_pkX6XOmt6wkplCy8JMO28QVlZ", + "confirmation_method": "automatic", + "created": 1701789488, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NwKuuB1fWySnfUgFlKXB", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:08 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NwKuuB1fWySn0fgo2maD/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_yYXtKZ4VDOonsV","request_duration_ms":627}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:10 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - ac79c4ad-ea9f-4d6c-b7dc-26f89a83facc + Original-Request: + - req_e5q1D2vKSl0DnF + Request-Id: + - req_e5q1D2vKSl0DnF + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NwKuuB1fWySn0fgo2maD", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NwKuuB1fWySn0fgo2maD_secret_pkX6XOmt6wkplCy8JMO28QVlZ", + "confirmation_method": "automatic", + "created": 1701789488, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NwKuuB1fWySn0kCldUqy", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NwKuuB1fWySnfUgFlKXB", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:09 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NwKuuB1fWySn0fgo2maD + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_e5q1D2vKSl0DnF","request_duration_ms":1249}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:10 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_rXIL9kFKAQqZXW + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NwKuuB1fWySn0fgo2maD", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NwKuuB1fWySn0fgo2maD_secret_pkX6XOmt6wkplCy8JMO28QVlZ", + "confirmation_method": "automatic", + "created": 1701789488, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NwKuuB1fWySn0kCldUqy", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NwKuuB1fWySnfUgFlKXB", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:10 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NwKuuB1fWySn0fgo2maD/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_rXIL9kFKAQqZXW","request_duration_ms":414}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:11 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 93b2b280-7a0b-4df2-b26c-5dd7cd114136 + Original-Request: + - req_24U8Ir715ClZBs + Request-Id: + - req_24U8Ir715ClZBs + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NwKuuB1fWySn0fgo2maD", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NwKuuB1fWySn0fgo2maD_secret_pkX6XOmt6wkplCy8JMO28QVlZ", + "confirmation_method": "automatic", + "created": 1701789488, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NwKuuB1fWySn0kCldUqy", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NwKuuB1fWySnfUgFlKXB", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:11 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NwKuuB1fWySn0fgo2maD + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_24U8Ir715ClZBs","request_duration_ms":997}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:12 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_JrYczcmiuxsmqo + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NwKuuB1fWySn0fgo2maD", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NwKuuB1fWySn0fgo2maD_secret_pkX6XOmt6wkplCy8JMO28QVlZ", + "confirmation_method": "automatic", + "created": 1701789488, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NwKuuB1fWySn0kCldUqy", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NwKuuB1fWySnfUgFlKXB", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:11 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml similarity index 87% rename from spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml index 9863826796..ac4699095e 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_hIwz6YfndA8AcC","request_duration_ms":3}}' + - '{"last_request_metrics":{"request_id":"req_CpRbwgH4d5pN4d","request_duration_ms":1}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:56 GMT + - Tue, 05 Dec 2023 15:18:05 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 97a91438-d123-4854-a92b-aa720cd12084 + - 81d2d69c-8a49-4c1f-ac8b-da505d6a5703 Original-Request: - - req_TvJodmTvBRnmnJ + - req_RxgTHuCyiQnRk7 Request-Id: - - req_TvJodmTvBRnmnJ + - req_RxgTHuCyiQnRk7 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJj2aKuuB1fWySnMsW5jxOx", + "id": "pm_1OK0NsKuuB1fWySnu84NwBCO", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701722816, + "created": 1701789484, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Mon, 04 Dec 2023 20:46:56 GMT + recorded_at: Tue, 05 Dec 2023 15:18:04 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJj2aKuuB1fWySnMsW5jxOx&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OK0NsKuuB1fWySnu84NwBCO&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_TvJodmTvBRnmnJ","request_duration_ms":640}}' + - '{"last_request_metrics":{"request_id":"req_RxgTHuCyiQnRk7","request_duration_ms":958}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:56 GMT + - Tue, 05 Dec 2023 15:18:05 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - bd96c097-19d5-4780-9a3b-e64f79d99022 + - '00099559-508e-4f1e-8a4c-d5cd59156464' Original-Request: - - req_GfG1H0LGaxGRH5 + - req_WdkrWLU7ikaF70 Request-Id: - - req_GfG1H0LGaxGRH5 + - req_WdkrWLU7ikaF70 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2aKuuB1fWySn0vqbmdz5", + "id": "pi_3OK0NtKuuB1fWySn2Kfuyw7h", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2aKuuB1fWySn0vqbmdz5_secret_F83oJtyX1n1fgnE3qwMkM4Gzn", + "client_secret": "pi_3OK0NtKuuB1fWySn2Kfuyw7h_secret_IcrdkpBJDS4uarpm4zKW8pg1b", "confirmation_method": "automatic", - "created": 1701722816, + "created": 1701789485, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2aKuuB1fWySnMsW5jxOx", + "payment_method": "pm_1OK0NsKuuB1fWySnu84NwBCO", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:56 GMT + recorded_at: Tue, 05 Dec 2023 15:18:05 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2aKuuB1fWySn0vqbmdz5/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NtKuuB1fWySn2Kfuyw7h/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_GfG1H0LGaxGRH5","request_duration_ms":406}}' + - '{"last_request_metrics":{"request_id":"req_WdkrWLU7ikaF70","request_duration_ms":623}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:57 GMT + - Tue, 05 Dec 2023 15:18:06 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 8152a891-fbb6-411a-aa97-bcdcc1af2cba + - d5224c97-e4fb-4c78-a50d-4acce1ebc6ad Original-Request: - - req_4wIP4ww15nZzwx + - req_XnN991eTwOsoHl Request-Id: - - req_4wIP4ww15nZzwx + - req_XnN991eTwOsoHl Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2aKuuB1fWySn0vqbmdz5", + "id": "pi_3OK0NtKuuB1fWySn2Kfuyw7h", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2aKuuB1fWySn0vqbmdz5_secret_F83oJtyX1n1fgnE3qwMkM4Gzn", + "client_secret": "pi_3OK0NtKuuB1fWySn2Kfuyw7h_secret_IcrdkpBJDS4uarpm4zKW8pg1b", "confirmation_method": "automatic", - "created": 1701722816, + "created": 1701789485, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2aKuuB1fWySn0era0pHB", + "latest_charge": "ch_3OK0NtKuuB1fWySn2ufFrZM7", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2aKuuB1fWySnMsW5jxOx", + "payment_method": "pm_1OK0NsKuuB1fWySnu84NwBCO", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:57 GMT + recorded_at: Tue, 05 Dec 2023 15:18:06 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2aKuuB1fWySn0vqbmdz5 + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NtKuuB1fWySn2Kfuyw7h body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_4wIP4ww15nZzwx","request_duration_ms":1019}}' + - '{"last_request_metrics":{"request_id":"req_XnN991eTwOsoHl","request_duration_ms":1147}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:58 GMT + - Tue, 05 Dec 2023 15:18:07 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_G2bdZBkEP2NnQa + - req_1hLpMPmHEGomFh Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2aKuuB1fWySn0vqbmdz5", + "id": "pi_3OK0NtKuuB1fWySn2Kfuyw7h", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2aKuuB1fWySn0vqbmdz5_secret_F83oJtyX1n1fgnE3qwMkM4Gzn", + "client_secret": "pi_3OK0NtKuuB1fWySn2Kfuyw7h_secret_IcrdkpBJDS4uarpm4zKW8pg1b", "confirmation_method": "automatic", - "created": 1701722816, + "created": 1701789485, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2aKuuB1fWySn0era0pHB", + "latest_charge": "ch_3OK0NtKuuB1fWySn2ufFrZM7", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2aKuuB1fWySnMsW5jxOx", + "payment_method": "pm_1OK0NsKuuB1fWySnu84NwBCO", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,5 +513,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:58 GMT + recorded_at: Tue, 05 Dec 2023 15:18:07 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/captures_the_payment.yml new file mode 100644 index 0000000000..426d497ad3 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/captures_the_payment.yml @@ -0,0 +1,775 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6011981111111113&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_1ViTQrzG25an8r","request_duration_ms":343}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:16 GMT + Content-Type: + - application/json + Content-Length: + - '938' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - adfd1f8f-bf3a-42e0-941a-272c70a59898 + Original-Request: + - req_XOmgvSPLOaHPTD + Request-Id: + - req_XOmgvSPLOaHPTD + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OK0O4KuuB1fWySnKFzLZy7M", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "discover", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "Y3EGIoTEEuDsD8eJ", + "funding": "debit", + "generated_from": null, + "last4": "1113", + "networks": { + "available": [ + "discover" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701789496, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 15:18:16 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OK0O4KuuB1fWySnKFzLZy7M&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_XOmgvSPLOaHPTD","request_duration_ms":625}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:17 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 1319002a-695f-49d5-bcef-cc3e4f336306 + Original-Request: + - req_SF5blWQN8HY02X + Request-Id: + - req_SF5blWQN8HY02X + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0O4KuuB1fWySn0JWVs3Qx", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0O4KuuB1fWySn0JWVs3Qx_secret_aaKp4Wge3a97zkCW7XNUdV2At", + "confirmation_method": "automatic", + "created": 1701789496, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0O4KuuB1fWySnKFzLZy7M", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:16 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0O4KuuB1fWySn0JWVs3Qx/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_SF5blWQN8HY02X","request_duration_ms":624}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:18 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 158f7b7e-470f-4b25-a0a2-67eeec2a26a3 + Original-Request: + - req_FMRk10uH8NkKdm + Request-Id: + - req_FMRk10uH8NkKdm + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0O4KuuB1fWySn0JWVs3Qx", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0O4KuuB1fWySn0JWVs3Qx_secret_aaKp4Wge3a97zkCW7XNUdV2At", + "confirmation_method": "automatic", + "created": 1701789496, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0O4KuuB1fWySn0kpZFFlH", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0O4KuuB1fWySnKFzLZy7M", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:18 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0O4KuuB1fWySn0JWVs3Qx + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_FMRk10uH8NkKdm","request_duration_ms":1454}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:19 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_VUCGt5ByT8OUVS + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0O4KuuB1fWySn0JWVs3Qx", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0O4KuuB1fWySn0JWVs3Qx_secret_aaKp4Wge3a97zkCW7XNUdV2At", + "confirmation_method": "automatic", + "created": 1701789496, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0O4KuuB1fWySn0kpZFFlH", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0O4KuuB1fWySnKFzLZy7M", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:19 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0O4KuuB1fWySn0JWVs3Qx/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_VUCGt5ByT8OUVS","request_duration_ms":624}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:20 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - cfcb9cc1-92ce-4d7f-885b-0d13669c6190 + Original-Request: + - req_0wvjEfHuvcpIY5 + Request-Id: + - req_0wvjEfHuvcpIY5 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0O4KuuB1fWySn0JWVs3Qx", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0O4KuuB1fWySn0JWVs3Qx_secret_aaKp4Wge3a97zkCW7XNUdV2At", + "confirmation_method": "automatic", + "created": 1701789496, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0O4KuuB1fWySn0kpZFFlH", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0O4KuuB1fWySnKFzLZy7M", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:20 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0O4KuuB1fWySn0JWVs3Qx + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_0wvjEfHuvcpIY5","request_duration_ms":1252}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:21 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_fEQMyAwtwZBVEk + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0O4KuuB1fWySn0JWVs3Qx", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0O4KuuB1fWySn0JWVs3Qx_secret_aaKp4Wge3a97zkCW7XNUdV2At", + "confirmation_method": "automatic", + "created": 1701789496, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0O4KuuB1fWySn0kpZFFlH", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0O4KuuB1fWySnKFzLZy7M", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:20 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml similarity index 87% rename from spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml index ea0201092e..1a9b1cce41 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_G2bdZBkEP2NnQa","request_duration_ms":1}}' + - '{"last_request_metrics":{"request_id":"req_JrYczcmiuxsmqo","request_duration_ms":1}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:59 GMT + - Tue, 05 Dec 2023 15:18:13 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - e1d1530e-4459-452b-b58b-ffe28d7cac77 + - 8fd36173-4e3e-4b30-b5ab-b604e0ba195d Original-Request: - - req_TCaUGX811CvlXm + - req_SeX9YZbPRNCYsW Request-Id: - - req_TCaUGX811CvlXm + - req_SeX9YZbPRNCYsW Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJj2dKuuB1fWySnmSKlIi5g", + "id": "pm_1OK0O1KuuB1fWySnXhmZxs6L", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701722819, + "created": 1701789493, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Mon, 04 Dec 2023 20:46:59 GMT + recorded_at: Tue, 05 Dec 2023 15:18:13 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJj2dKuuB1fWySnmSKlIi5g&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OK0O1KuuB1fWySnXhmZxs6L&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_TCaUGX811CvlXm","request_duration_ms":657}}' + - '{"last_request_metrics":{"request_id":"req_SeX9YZbPRNCYsW","request_duration_ms":934}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:00 GMT + - Tue, 05 Dec 2023 15:18:14 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - be39911a-bb09-4a5b-b32f-8ece7bac6111 + - a2917253-5b6a-47e1-ab13-974ef7d12fd6 Original-Request: - - req_eRcSfNEf18DyC1 + - req_ReuFOaS57k9foi Request-Id: - - req_eRcSfNEf18DyC1 + - req_ReuFOaS57k9foi Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2dKuuB1fWySn02YhKqxe", + "id": "pi_3OK0O1KuuB1fWySn08yaTwHX", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2dKuuB1fWySn02YhKqxe_secret_ig8wlubruurAczOHfMVeFkgQq", + "client_secret": "pi_3OK0O1KuuB1fWySn08yaTwHX_secret_qM2JJSY2jN2nvwbQXGknf7w4Y", "confirmation_method": "automatic", - "created": 1701722819, + "created": 1701789493, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2dKuuB1fWySnmSKlIi5g", + "payment_method": "pm_1OK0O1KuuB1fWySnXhmZxs6L", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:00 GMT + recorded_at: Tue, 05 Dec 2023 15:18:13 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2dKuuB1fWySn02YhKqxe/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0O1KuuB1fWySn08yaTwHX/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_eRcSfNEf18DyC1","request_duration_ms":406}}' + - '{"last_request_metrics":{"request_id":"req_ReuFOaS57k9foi","request_duration_ms":624}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:01 GMT + - Tue, 05 Dec 2023 15:18:15 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - c9245e72-f78a-40a6-9f9c-382e49e709be + - 1d3ef5a0-c582-4e68-aae5-ea83ea4f51ed Original-Request: - - req_AVivtTDQPX0YJM + - req_0bOs0JxU4NQo4l Request-Id: - - req_AVivtTDQPX0YJM + - req_0bOs0JxU4NQo4l Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2dKuuB1fWySn02YhKqxe", + "id": "pi_3OK0O1KuuB1fWySn08yaTwHX", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2dKuuB1fWySn02YhKqxe_secret_ig8wlubruurAczOHfMVeFkgQq", + "client_secret": "pi_3OK0O1KuuB1fWySn08yaTwHX_secret_qM2JJSY2jN2nvwbQXGknf7w4Y", "confirmation_method": "automatic", - "created": 1701722819, + "created": 1701789493, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2dKuuB1fWySn0fscw9kw", + "latest_charge": "ch_3OK0O1KuuB1fWySn0vO4E9kM", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2dKuuB1fWySnmSKlIi5g", + "payment_method": "pm_1OK0O1KuuB1fWySnXhmZxs6L", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:01 GMT + recorded_at: Tue, 05 Dec 2023 15:18:14 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2dKuuB1fWySn02YhKqxe + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0O1KuuB1fWySn08yaTwHX body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_AVivtTDQPX0YJM","request_duration_ms":1038}}' + - '{"last_request_metrics":{"request_id":"req_0bOs0JxU4NQo4l","request_duration_ms":1146}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:01 GMT + - Tue, 05 Dec 2023 15:18:16 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_QyvzzQqGeKUY7C + - req_1ViTQrzG25an8r Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2dKuuB1fWySn02YhKqxe", + "id": "pi_3OK0O1KuuB1fWySn08yaTwHX", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2dKuuB1fWySn02YhKqxe_secret_ig8wlubruurAczOHfMVeFkgQq", + "client_secret": "pi_3OK0O1KuuB1fWySn08yaTwHX_secret_qM2JJSY2jN2nvwbQXGknf7w4Y", "confirmation_method": "automatic", - "created": 1701722819, + "created": 1701789493, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2dKuuB1fWySn0fscw9kw", + "latest_charge": "ch_3OK0O1KuuB1fWySn0vO4E9kM", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2dKuuB1fWySnmSKlIi5g", + "payment_method": "pm_1OK0O1KuuB1fWySnXhmZxs6L", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,5 +513,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:02 GMT + recorded_at: Tue, 05 Dec 2023 15:18:15 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/captures_the_payment.yml new file mode 100644 index 0000000000..55f4a37aa9 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/captures_the_payment.yml @@ -0,0 +1,775 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=3566002020360505&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_gWKJoDXU4mFNz0","request_duration_ms":629}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:47 GMT + Content-Type: + - application/json + Content-Length: + - '929' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 0d96667a-6f27-4ba2-aac5-2543ddb715d3 + Original-Request: + - req_8ksHnBQt6vz0QL + Request-Id: + - req_8ksHnBQt6vz0QL + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OK0OYKuuB1fWySnDcZS566I", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "jcb", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "JP", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "8f2gcynh7EdGyDKt", + "funding": "credit", + "generated_from": null, + "last4": "0505", + "networks": { + "available": [ + "jcb" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701789527, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 15:18:46 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OK0OYKuuB1fWySnDcZS566I&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_8ksHnBQt6vz0QL","request_duration_ms":489}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:47 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 62787329-17e8-4126-aed8-5f9ce9a469e2 + Original-Request: + - req_gxl5CWrM8r64aH + Request-Id: + - req_gxl5CWrM8r64aH + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OZKuuB1fWySn1p9EbBj3", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OZKuuB1fWySn1p9EbBj3_secret_ZzVWaxXn23nIQeyClWquzSu4U", + "confirmation_method": "automatic", + "created": 1701789527, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OYKuuB1fWySnDcZS566I", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:47 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OZKuuB1fWySn1p9EbBj3/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_gxl5CWrM8r64aH","request_duration_ms":618}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:48 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 43e3d555-d0c0-4113-943b-b4dbcbf1c605 + Original-Request: + - req_A9veKTIQeBmR3o + Request-Id: + - req_A9veKTIQeBmR3o + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OZKuuB1fWySn1p9EbBj3", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OZKuuB1fWySn1p9EbBj3_secret_ZzVWaxXn23nIQeyClWquzSu4U", + "confirmation_method": "automatic", + "created": 1701789527, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0OZKuuB1fWySn1tYQM5Uy", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OYKuuB1fWySnDcZS566I", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:48 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OZKuuB1fWySn1p9EbBj3 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_A9veKTIQeBmR3o","request_duration_ms":1145}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:49 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_o15lOfUrJ3SbHK + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OZKuuB1fWySn1p9EbBj3", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OZKuuB1fWySn1p9EbBj3_secret_ZzVWaxXn23nIQeyClWquzSu4U", + "confirmation_method": "automatic", + "created": 1701789527, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0OZKuuB1fWySn1tYQM5Uy", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OYKuuB1fWySnDcZS566I", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:48 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OZKuuB1fWySn1p9EbBj3/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_o15lOfUrJ3SbHK","request_duration_ms":515}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:50 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - c7811517-1974-4292-b53e-272a28cb2c49 + Original-Request: + - req_IZB77dpIlzssj1 + Request-Id: + - req_IZB77dpIlzssj1 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OZKuuB1fWySn1p9EbBj3", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OZKuuB1fWySn1p9EbBj3_secret_ZzVWaxXn23nIQeyClWquzSu4U", + "confirmation_method": "automatic", + "created": 1701789527, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0OZKuuB1fWySn1tYQM5Uy", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OYKuuB1fWySnDcZS566I", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:50 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OZKuuB1fWySn1p9EbBj3 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_IZB77dpIlzssj1","request_duration_ms":1147}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:50 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_ZuE1qwJzDm3cwU + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OZKuuB1fWySn1p9EbBj3", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OZKuuB1fWySn1p9EbBj3_secret_ZzVWaxXn23nIQeyClWquzSu4U", + "confirmation_method": "automatic", + "created": 1701789527, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0OZKuuB1fWySn1tYQM5Uy", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OYKuuB1fWySnDcZS566I", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:50 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml similarity index 87% rename from spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml index 52e7f6cc38..3364c2640a 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_MVdZ7didxp5zr8","request_duration_ms":320}}' + - '{"last_request_metrics":{"request_id":"req_T1R5tMpzPVq4Qh","request_duration_ms":449}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:11 GMT + - Tue, 05 Dec 2023 15:18:43 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 5f87fb65-57a8-432a-8da4-18f2cde41e89 + - 8e18635b-7ac9-4878-a929-d0a4f7124cb7 Original-Request: - - req_6zwMOQn7UEKz6h + - req_CZ2muIp4NCYZWj Request-Id: - - req_6zwMOQn7UEKz6h + - req_CZ2muIp4NCYZWj Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJj2pKuuB1fWySnutBfMJtf", + "id": "pm_1OK0OVKuuB1fWySnqnxaRpff", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701722831, + "created": 1701789523, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Mon, 04 Dec 2023 20:47:11 GMT + recorded_at: Tue, 05 Dec 2023 15:18:43 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJj2pKuuB1fWySnutBfMJtf&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OK0OVKuuB1fWySnqnxaRpff&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_6zwMOQn7UEKz6h","request_duration_ms":439}}' + - '{"last_request_metrics":{"request_id":"req_CZ2muIp4NCYZWj","request_duration_ms":591}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:11 GMT + - Tue, 05 Dec 2023 15:18:44 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - befe0b53-fd2c-4374-9e2f-fd55b9425863 + - 75c5d4b6-d824-497f-af46-932f90b399b6 Original-Request: - - req_3sMcsrq5wWRIMK + - req_p2qlhVgOWXbTeD Request-Id: - - req_3sMcsrq5wWRIMK + - req_p2qlhVgOWXbTeD Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2pKuuB1fWySn032muymS", + "id": "pi_3OK0OVKuuB1fWySn1rpy2BLJ", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2pKuuB1fWySn032muymS_secret_urMInk75ViprdTlBTqCTcMkAE", + "client_secret": "pi_3OK0OVKuuB1fWySn1rpy2BLJ_secret_ibgKpoPrSmdXMuZlvLkVsN6vL", "confirmation_method": "automatic", - "created": 1701722831, + "created": 1701789523, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2pKuuB1fWySnutBfMJtf", + "payment_method": "pm_1OK0OVKuuB1fWySnqnxaRpff", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:11 GMT + recorded_at: Tue, 05 Dec 2023 15:18:43 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2pKuuB1fWySn032muymS/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OVKuuB1fWySn1rpy2BLJ/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_3sMcsrq5wWRIMK","request_duration_ms":387}}' + - '{"last_request_metrics":{"request_id":"req_p2qlhVgOWXbTeD","request_duration_ms":540}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:12 GMT + - Tue, 05 Dec 2023 15:18:45 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 391b23c6-649f-4f9e-9e3a-b20348c518fb + - 42b80457-685f-4a5f-a424-04d022887e50 Original-Request: - - req_eBOcHkUNpiGMIR + - req_UOZ622CINVnqRu Request-Id: - - req_eBOcHkUNpiGMIR + - req_UOZ622CINVnqRu Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2pKuuB1fWySn032muymS", + "id": "pi_3OK0OVKuuB1fWySn1rpy2BLJ", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2pKuuB1fWySn032muymS_secret_urMInk75ViprdTlBTqCTcMkAE", + "client_secret": "pi_3OK0OVKuuB1fWySn1rpy2BLJ_secret_ibgKpoPrSmdXMuZlvLkVsN6vL", "confirmation_method": "automatic", - "created": 1701722831, + "created": 1701789523, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2pKuuB1fWySn0EIu3p5h", + "latest_charge": "ch_3OK0OVKuuB1fWySn1qR4epmU", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2pKuuB1fWySnutBfMJtf", + "payment_method": "pm_1OK0OVKuuB1fWySnqnxaRpff", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:12 GMT + recorded_at: Tue, 05 Dec 2023 15:18:44 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2pKuuB1fWySn032muymS + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OVKuuB1fWySn1rpy2BLJ body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_eBOcHkUNpiGMIR","request_duration_ms":968}}' + - '{"last_request_metrics":{"request_id":"req_UOZ622CINVnqRu","request_duration_ms":1187}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:13 GMT + - Tue, 05 Dec 2023 15:18:46 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_JTUbXkj4ct2Q35 + - req_gWKJoDXU4mFNz0 Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2pKuuB1fWySn032muymS", + "id": "pi_3OK0OVKuuB1fWySn1rpy2BLJ", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2pKuuB1fWySn032muymS_secret_urMInk75ViprdTlBTqCTcMkAE", + "client_secret": "pi_3OK0OVKuuB1fWySn1rpy2BLJ_secret_ibgKpoPrSmdXMuZlvLkVsN6vL", "confirmation_method": "automatic", - "created": 1701722831, + "created": 1701789523, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2pKuuB1fWySn0EIu3p5h", + "latest_charge": "ch_3OK0OVKuuB1fWySn1qR4epmU", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2pKuuB1fWySnutBfMJtf", + "payment_method": "pm_1OK0OVKuuB1fWySnqnxaRpff", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,5 +513,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:13 GMT + recorded_at: Tue, 05 Dec 2023 15:18:46 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/captures_the_payment.yml new file mode 100644 index 0000000000..b507690e2e --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/captures_the_payment.yml @@ -0,0 +1,775 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=5555555555554444&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_7s69DHSda08ycI","request_duration_ms":402}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:29 GMT + Content-Type: + - application/json + Content-Length: + - '943' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - e936d876-f59f-4b8f-881d-9376a974bf12 + Original-Request: + - req_pSI5lfG3YSLfln + Request-Id: + - req_pSI5lfG3YSLfln + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OK0NIKuuB1fWySnxSofvUbH", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "mastercard", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "BL35fEFVcTTS5wpE", + "funding": "credit", + "generated_from": null, + "last4": "4444", + "networks": { + "available": [ + "mastercard" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701789448, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 15:17:28 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OK0NIKuuB1fWySnxSofvUbH&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_pSI5lfG3YSLfln","request_duration_ms":656}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:29 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 99d028e2-21c4-4664-beb4-ec5a205677ce + Original-Request: + - req_B2Q68MwHagcae4 + Request-Id: + - req_B2Q68MwHagcae4 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NJKuuB1fWySn0yOAxhTY", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NJKuuB1fWySn0yOAxhTY_secret_ECLhXxp0gccY4VvBoaqx6aNkS", + "confirmation_method": "automatic", + "created": 1701789449, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NIKuuB1fWySnxSofvUbH", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:29 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NJKuuB1fWySn0yOAxhTY/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_B2Q68MwHagcae4","request_duration_ms":518}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:30 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 6e4108bb-e7db-4c00-af8f-f80fc698e5fc + Original-Request: + - req_P13zxbM4ya7DNW + Request-Id: + - req_P13zxbM4ya7DNW + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NJKuuB1fWySn0yOAxhTY", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NJKuuB1fWySn0yOAxhTY_secret_ECLhXxp0gccY4VvBoaqx6aNkS", + "confirmation_method": "automatic", + "created": 1701789449, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NJKuuB1fWySn0K8w9RVv", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NIKuuB1fWySnxSofvUbH", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:30 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NJKuuB1fWySn0yOAxhTY + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_P13zxbM4ya7DNW","request_duration_ms":1146}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:31 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_IotENUBPfMHIFa + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NJKuuB1fWySn0yOAxhTY", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NJKuuB1fWySn0yOAxhTY_secret_ECLhXxp0gccY4VvBoaqx6aNkS", + "confirmation_method": "automatic", + "created": 1701789449, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NJKuuB1fWySn0K8w9RVv", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NIKuuB1fWySnxSofvUbH", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:30 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NJKuuB1fWySn0yOAxhTY/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_IotENUBPfMHIFa","request_duration_ms":492}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:32 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 9da1179d-5e39-4840-ac4b-5877edbfae56 + Original-Request: + - req_NKb17rsAUUrWFd + Request-Id: + - req_NKb17rsAUUrWFd + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NJKuuB1fWySn0yOAxhTY", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NJKuuB1fWySn0yOAxhTY_secret_ECLhXxp0gccY4VvBoaqx6aNkS", + "confirmation_method": "automatic", + "created": 1701789449, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NJKuuB1fWySn0K8w9RVv", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NIKuuB1fWySnxSofvUbH", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:31 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NJKuuB1fWySn0yOAxhTY + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_NKb17rsAUUrWFd","request_duration_ms":1007}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:32 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_1AZ5pg0ZxxvUXj + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NJKuuB1fWySn0yOAxhTY", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NJKuuB1fWySn0yOAxhTY_secret_ECLhXxp0gccY4VvBoaqx6aNkS", + "confirmation_method": "automatic", + "created": 1701789449, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NJKuuB1fWySn0K8w9RVv", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NIKuuB1fWySnxSofvUbH", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:32 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml similarity index 87% rename from spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml index d54d6e34a7..52c2a1f563 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_HnAxMcQcRahsXX","request_duration_ms":285}}' + - '{"last_request_metrics":{"request_id":"req_O23HuS6lzDg04Z","request_duration_ms":381}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:41 GMT + - Tue, 05 Dec 2023 15:17:25 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 742e850f-0e97-4c28-98eb-1be24e28fd17 + - 39506b3d-fe78-4c0e-a4f5-446e7f8ce06d Original-Request: - - req_PS8S5e8CVLUnQM + - req_uEiAVH8XHnnUYN Request-Id: - - req_PS8S5e8CVLUnQM + - req_uEiAVH8XHnnUYN Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJj2LKuuB1fWySnFsyUXxaq", + "id": "pm_1OK0NFKuuB1fWySnIfH6ZcIU", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701722801, + "created": 1701789445, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Mon, 04 Dec 2023 20:46:41 GMT + recorded_at: Tue, 05 Dec 2023 15:17:25 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJj2LKuuB1fWySnFsyUXxaq&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OK0NFKuuB1fWySnIfH6ZcIU&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_PS8S5e8CVLUnQM","request_duration_ms":479}}' + - '{"last_request_metrics":{"request_id":"req_uEiAVH8XHnnUYN","request_duration_ms":519}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:42 GMT + - Tue, 05 Dec 2023 15:17:26 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 60de5bc5-76f5-4833-8f62-bec39fce49fe + - e89508e8-a2ad-4bdd-861a-ec0463674b5b Original-Request: - - req_LhpOxMoRbsDdJU + - req_JXqcVF88p8Lkam Request-Id: - - req_LhpOxMoRbsDdJU + - req_JXqcVF88p8Lkam Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2MKuuB1fWySn0UdRnVgN", + "id": "pi_3OK0NGKuuB1fWySn1KLKQD2Q", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2MKuuB1fWySn0UdRnVgN_secret_xveHs2ahlaVGHZJmvlogniDqv", + "client_secret": "pi_3OK0NGKuuB1fWySn1KLKQD2Q_secret_09pSimGd3ynYnIIgQo14xsLZZ", "confirmation_method": "automatic", - "created": 1701722802, + "created": 1701789446, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2LKuuB1fWySnFsyUXxaq", + "payment_method": "pm_1OK0NFKuuB1fWySnIfH6ZcIU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:42 GMT + recorded_at: Tue, 05 Dec 2023 15:17:25 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2MKuuB1fWySn0UdRnVgN/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NGKuuB1fWySn1KLKQD2Q/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_LhpOxMoRbsDdJU","request_duration_ms":479}}' + - '{"last_request_metrics":{"request_id":"req_JXqcVF88p8Lkam","request_duration_ms":517}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:43 GMT + - Tue, 05 Dec 2023 15:17:27 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 6376df60-5807-46f2-8060-08d89b1ada71 + - 321e490c-be3a-48ae-a3db-80ef969f82bc Original-Request: - - req_eTWb5ne5MYQ4Wh + - req_ouZWhhpPikhlxR Request-Id: - - req_eTWb5ne5MYQ4Wh + - req_ouZWhhpPikhlxR Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2MKuuB1fWySn0UdRnVgN", + "id": "pi_3OK0NGKuuB1fWySn1KLKQD2Q", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2MKuuB1fWySn0UdRnVgN_secret_xveHs2ahlaVGHZJmvlogniDqv", + "client_secret": "pi_3OK0NGKuuB1fWySn1KLKQD2Q_secret_09pSimGd3ynYnIIgQo14xsLZZ", "confirmation_method": "automatic", - "created": 1701722802, + "created": 1701789446, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2MKuuB1fWySn0jCaTNJG", + "latest_charge": "ch_3OK0NGKuuB1fWySn17HRxW0P", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2LKuuB1fWySnFsyUXxaq", + "payment_method": "pm_1OK0NFKuuB1fWySnIfH6ZcIU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:43 GMT + recorded_at: Tue, 05 Dec 2023 15:17:27 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2MKuuB1fWySn0UdRnVgN + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NGKuuB1fWySn1KLKQD2Q body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_eTWb5ne5MYQ4Wh","request_duration_ms":918}}' + - '{"last_request_metrics":{"request_id":"req_ouZWhhpPikhlxR","request_duration_ms":1145}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:43 GMT + - Tue, 05 Dec 2023 15:17:28 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_xWkEtUOYFxOqa1 + - req_7s69DHSda08ycI Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2MKuuB1fWySn0UdRnVgN", + "id": "pi_3OK0NGKuuB1fWySn1KLKQD2Q", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2MKuuB1fWySn0UdRnVgN_secret_xveHs2ahlaVGHZJmvlogniDqv", + "client_secret": "pi_3OK0NGKuuB1fWySn1KLKQD2Q_secret_09pSimGd3ynYnIIgQo14xsLZZ", "confirmation_method": "automatic", - "created": 1701722802, + "created": 1701789446, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2MKuuB1fWySn0jCaTNJG", + "latest_charge": "ch_3OK0NGKuuB1fWySn17HRxW0P", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2LKuuB1fWySnFsyUXxaq", + "payment_method": "pm_1OK0NFKuuB1fWySnIfH6ZcIU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,5 +513,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:43 GMT + recorded_at: Tue, 05 Dec 2023 15:17:28 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/captures_the_payment.yml new file mode 100644 index 0000000000..54e96b821e --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/captures_the_payment.yml @@ -0,0 +1,775 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=2223003122003222&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_xAroRCvY2jpYW3","request_duration_ms":508}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:36 GMT + Content-Type: + - application/json + Content-Length: + - '943' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - a1b49965-d453-4cf2-8dc1-41539d8d7ec2 + Original-Request: + - req_1CiS0by8DcbkGT + Request-Id: + - req_1CiS0by8DcbkGT + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OK0NQKuuB1fWySnE41Drfql", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "mastercard", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "0gTPwvyIV7E6CAld", + "funding": "credit", + "generated_from": null, + "last4": "3222", + "networks": { + "available": [ + "mastercard" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701789456, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 15:17:36 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OK0NQKuuB1fWySnE41Drfql&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_1CiS0by8DcbkGT","request_duration_ms":584}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:37 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 3d5951a2-a287-4779-bef5-5b878037a0d1 + Original-Request: + - req_BAIO9vWEEwUKBK + Request-Id: + - req_BAIO9vWEEwUKBK + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NRKuuB1fWySn1jKScTzc", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NRKuuB1fWySn1jKScTzc_secret_6VbvQty6C4VWQK9HhjhogFi7T", + "confirmation_method": "automatic", + "created": 1701789457, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NQKuuB1fWySnE41Drfql", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:37 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NRKuuB1fWySn1jKScTzc/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_BAIO9vWEEwUKBK","request_duration_ms":494}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:38 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 55c5d61b-e359-4ebe-be56-58ff33a170fe + Original-Request: + - req_tgYhAz22bjQzE8 + Request-Id: + - req_tgYhAz22bjQzE8 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NRKuuB1fWySn1jKScTzc", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NRKuuB1fWySn1jKScTzc_secret_6VbvQty6C4VWQK9HhjhogFi7T", + "confirmation_method": "automatic", + "created": 1701789457, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NRKuuB1fWySn1AcczQgg", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NQKuuB1fWySnE41Drfql", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:38 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NRKuuB1fWySn1jKScTzc + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_tgYhAz22bjQzE8","request_duration_ms":1067}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:38 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_lCmMUYzK9Paq13 + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NRKuuB1fWySn1jKScTzc", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NRKuuB1fWySn1jKScTzc_secret_6VbvQty6C4VWQK9HhjhogFi7T", + "confirmation_method": "automatic", + "created": 1701789457, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NRKuuB1fWySn1AcczQgg", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NQKuuB1fWySnE41Drfql", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:38 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NRKuuB1fWySn1jKScTzc/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_lCmMUYzK9Paq13","request_duration_ms":518}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:40 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - f12c870a-4e73-43ba-9cae-c0aa7d877cda + Original-Request: + - req_5B3ucu048VY5x9 + Request-Id: + - req_5B3ucu048VY5x9 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NRKuuB1fWySn1jKScTzc", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NRKuuB1fWySn1jKScTzc_secret_6VbvQty6C4VWQK9HhjhogFi7T", + "confirmation_method": "automatic", + "created": 1701789457, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NRKuuB1fWySn1AcczQgg", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NQKuuB1fWySnE41Drfql", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:39 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NRKuuB1fWySn1jKScTzc + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_5B3ucu048VY5x9","request_duration_ms":1041}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:40 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_VoAQDloqULYjq3 + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NRKuuB1fWySn1jKScTzc", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NRKuuB1fWySn1jKScTzc_secret_6VbvQty6C4VWQK9HhjhogFi7T", + "confirmation_method": "automatic", + "created": 1701789457, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NRKuuB1fWySn1AcczQgg", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NQKuuB1fWySnE41Drfql", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:40 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml similarity index 87% rename from spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml index d6f1fc3e9e..c8576c3f5f 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_xWkEtUOYFxOqa1","request_duration_ms":311}}' + - '{"last_request_metrics":{"request_id":"req_1AZ5pg0ZxxvUXj","request_duration_ms":477}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:44 GMT + - Tue, 05 Dec 2023 15:17:33 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 98e53dae-967b-480c-b766-1f2f36396c4d + - e5f194a7-fc4f-487b-9250-3cd62c0c359b Original-Request: - - req_LKTIJjqn9Cxpsz + - req_vArEV82NuAlgfm Request-Id: - - req_LKTIJjqn9Cxpsz + - req_vArEV82NuAlgfm Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJj2OKuuB1fWySnIpkWmNA9", + "id": "pm_1OK0NNKuuB1fWySnEjpRN60q", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701722804, + "created": 1701789453, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Mon, 04 Dec 2023 20:46:44 GMT + recorded_at: Tue, 05 Dec 2023 15:17:33 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJj2OKuuB1fWySnIpkWmNA9&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OK0NNKuuB1fWySnEjpRN60q&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_LKTIJjqn9Cxpsz","request_duration_ms":465}}' + - '{"last_request_metrics":{"request_id":"req_vArEV82NuAlgfm","request_duration_ms":715}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:44 GMT + - Tue, 05 Dec 2023 15:17:34 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - f897f2ed-e834-4033-836f-40547076e6ed + - f17f71f6-0f56-4365-87a2-eac2f03af34a Original-Request: - - req_aRs681Z8r2LLrX + - req_lCjfcknJWFUXj8 Request-Id: - - req_aRs681Z8r2LLrX + - req_lCjfcknJWFUXj8 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2OKuuB1fWySn0P3Hmijt", + "id": "pi_3OK0NNKuuB1fWySn1tdL2KbH", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2OKuuB1fWySn0P3Hmijt_secret_eWu0u1Dru6MVb2v6mQG9hoTO5", + "client_secret": "pi_3OK0NNKuuB1fWySn1tdL2KbH_secret_LNwG4PKemeXE7TC0yUhNrGQbw", "confirmation_method": "automatic", - "created": 1701722804, + "created": 1701789453, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2OKuuB1fWySnIpkWmNA9", + "payment_method": "pm_1OK0NNKuuB1fWySnEjpRN60q", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:44 GMT + recorded_at: Tue, 05 Dec 2023 15:17:33 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2OKuuB1fWySn0P3Hmijt/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NNKuuB1fWySn1tdL2KbH/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_aRs681Z8r2LLrX","request_duration_ms":373}}' + - '{"last_request_metrics":{"request_id":"req_lCjfcknJWFUXj8","request_duration_ms":833}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:45 GMT + - Tue, 05 Dec 2023 15:17:35 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 0523c130-9590-4e59-bdf9-a0509e4a24eb + - 27c3dd75-5e78-4e97-8913-5bfb552ddf89 Original-Request: - - req_Bi16cFfudXGu6g + - req_RD5gui9J3qKOXO Request-Id: - - req_Bi16cFfudXGu6g + - req_RD5gui9J3qKOXO Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2OKuuB1fWySn0P3Hmijt", + "id": "pi_3OK0NNKuuB1fWySn1tdL2KbH", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2OKuuB1fWySn0P3Hmijt_secret_eWu0u1Dru6MVb2v6mQG9hoTO5", + "client_secret": "pi_3OK0NNKuuB1fWySn1tdL2KbH_secret_LNwG4PKemeXE7TC0yUhNrGQbw", "confirmation_method": "automatic", - "created": 1701722804, + "created": 1701789453, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2OKuuB1fWySn0307tJHk", + "latest_charge": "ch_3OK0NNKuuB1fWySn1aQQfbXI", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2OKuuB1fWySnIpkWmNA9", + "payment_method": "pm_1OK0NNKuuB1fWySnEjpRN60q", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:45 GMT + recorded_at: Tue, 05 Dec 2023 15:17:35 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2OKuuB1fWySn0P3Hmijt + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NNKuuB1fWySn1tdL2KbH body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Bi16cFfudXGu6g","request_duration_ms":1051}}' + - '{"last_request_metrics":{"request_id":"req_RD5gui9J3qKOXO","request_duration_ms":1026}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:46 GMT + - Tue, 05 Dec 2023 15:17:36 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_IwpZjxRgPqGyw7 + - req_xAroRCvY2jpYW3 Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2OKuuB1fWySn0P3Hmijt", + "id": "pi_3OK0NNKuuB1fWySn1tdL2KbH", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2OKuuB1fWySn0P3Hmijt_secret_eWu0u1Dru6MVb2v6mQG9hoTO5", + "client_secret": "pi_3OK0NNKuuB1fWySn1tdL2KbH_secret_LNwG4PKemeXE7TC0yUhNrGQbw", "confirmation_method": "automatic", - "created": 1701722804, + "created": 1701789453, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2OKuuB1fWySn0307tJHk", + "latest_charge": "ch_3OK0NNKuuB1fWySn1aQQfbXI", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2OKuuB1fWySnIpkWmNA9", + "payment_method": "pm_1OK0NNKuuB1fWySnEjpRN60q", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,5 +513,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:46 GMT + recorded_at: Tue, 05 Dec 2023 15:17:35 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/captures_the_payment.yml new file mode 100644 index 0000000000..7da2820520 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/captures_the_payment.yml @@ -0,0 +1,775 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=5200828282828210&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_F60f0SjgTkVXLo","request_duration_ms":461}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:44 GMT + Content-Type: + - application/json + Content-Length: + - '942' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 406677db-8f40-4bf2-a28b-5d783ed2951e + Original-Request: + - req_IStqxHWUkPjwUt + Request-Id: + - req_IStqxHWUkPjwUt + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OK0NXKuuB1fWySn9tXKT30h", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "mastercard", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "DpQ8VoC0Z3P9xrbi", + "funding": "debit", + "generated_from": null, + "last4": "8210", + "networks": { + "available": [ + "mastercard" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701789464, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 15:17:44 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OK0NXKuuB1fWySn9tXKT30h&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_IStqxHWUkPjwUt","request_duration_ms":715}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:44 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 26d52ccd-9603-4316-97fa-5e5ec3fa6504 + Original-Request: + - req_oSwtx1GWT4f4Uq + Request-Id: + - req_oSwtx1GWT4f4Uq + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NYKuuB1fWySn0kDNEepU", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NYKuuB1fWySn0kDNEepU_secret_famZc9G6d9w1Ijg94vrMJQi8m", + "confirmation_method": "automatic", + "created": 1701789464, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NXKuuB1fWySn9tXKT30h", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:44 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NYKuuB1fWySn0kDNEepU/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_oSwtx1GWT4f4Uq","request_duration_ms":518}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:45 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - f2d05068-3dca-402d-84f9-c646a63e2cfc + Original-Request: + - req_zYWdSE5T4bbBEI + Request-Id: + - req_zYWdSE5T4bbBEI + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NYKuuB1fWySn0kDNEepU", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NYKuuB1fWySn0kDNEepU_secret_famZc9G6d9w1Ijg94vrMJQi8m", + "confirmation_method": "automatic", + "created": 1701789464, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NYKuuB1fWySn0Ffn14ck", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NXKuuB1fWySn9tXKT30h", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:45 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NYKuuB1fWySn0kDNEepU + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_zYWdSE5T4bbBEI","request_duration_ms":957}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:46 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_trh84hNaPj6eRl + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NYKuuB1fWySn0kDNEepU", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NYKuuB1fWySn0kDNEepU_secret_famZc9G6d9w1Ijg94vrMJQi8m", + "confirmation_method": "automatic", + "created": 1701789464, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NYKuuB1fWySn0Ffn14ck", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NXKuuB1fWySn9tXKT30h", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:46 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NYKuuB1fWySn0kDNEepU/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_trh84hNaPj6eRl","request_duration_ms":498}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:47 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - df1e33ae-32e3-4097-a17e-1abbe999623a + Original-Request: + - req_WhEhT6MeluUdDi + Request-Id: + - req_WhEhT6MeluUdDi + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NYKuuB1fWySn0kDNEepU", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NYKuuB1fWySn0kDNEepU_secret_famZc9G6d9w1Ijg94vrMJQi8m", + "confirmation_method": "automatic", + "created": 1701789464, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NYKuuB1fWySn0Ffn14ck", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NXKuuB1fWySn9tXKT30h", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:47 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NYKuuB1fWySn0kDNEepU + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_WhEhT6MeluUdDi","request_duration_ms":1146}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:47 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_N6tQgEm1E8fGfe + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NYKuuB1fWySn0kDNEepU", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NYKuuB1fWySn0kDNEepU_secret_famZc9G6d9w1Ijg94vrMJQi8m", + "confirmation_method": "automatic", + "created": 1701789464, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NYKuuB1fWySn0Ffn14ck", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NXKuuB1fWySn9tXKT30h", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:47 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml similarity index 87% rename from spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml index d5df9e448b..bbfc1ad9e5 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_IwpZjxRgPqGyw7","request_duration_ms":366}}' + - '{"last_request_metrics":{"request_id":"req_VoAQDloqULYjq3","request_duration_ms":518}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:46 GMT + - Tue, 05 Dec 2023 15:17:41 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 10b41ff6-8948-4282-9089-8f232145bb69 + - 6f5439a9-2522-4ce1-b72e-f9a4fb85fc3b Original-Request: - - req_QoqigMNp4jhg4F + - req_OtJ9tQfVBq6Kh2 Request-Id: - - req_QoqigMNp4jhg4F + - req_OtJ9tQfVBq6Kh2 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJj2QKuuB1fWySnrtGemn7e", + "id": "pm_1OK0NUKuuB1fWySn3jHZslK0", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701722806, + "created": 1701789461, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Mon, 04 Dec 2023 20:46:47 GMT + recorded_at: Tue, 05 Dec 2023 15:17:40 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJj2QKuuB1fWySnrtGemn7e&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OK0NUKuuB1fWySn3jHZslK0&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_QoqigMNp4jhg4F","request_duration_ms":420}}' + - '{"last_request_metrics":{"request_id":"req_OtJ9tQfVBq6Kh2","request_duration_ms":653}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:47 GMT + - Tue, 05 Dec 2023 15:17:41 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 88b825ed-9ac3-4adf-92ef-8966200db8ef + - acb6df4f-d7a6-4185-8894-d26b41272517 Original-Request: - - req_H1Gzo1f9e1a1ye + - req_Rd9urFFXu3X7dO Request-Id: - - req_H1Gzo1f9e1a1ye + - req_Rd9urFFXu3X7dO Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2RKuuB1fWySn0Xm1D2v6", + "id": "pi_3OK0NVKuuB1fWySn0tfMQy1E", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2RKuuB1fWySn0Xm1D2v6_secret_k4lWXYcHxLzJQDt6suSRFqmPy", + "client_secret": "pi_3OK0NVKuuB1fWySn0tfMQy1E_secret_V3qErUXTPstOCuOcC2tU93MAV", "confirmation_method": "automatic", - "created": 1701722807, + "created": 1701789461, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2QKuuB1fWySnrtGemn7e", + "payment_method": "pm_1OK0NUKuuB1fWySn3jHZslK0", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:47 GMT + recorded_at: Tue, 05 Dec 2023 15:17:41 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2RKuuB1fWySn0Xm1D2v6/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NVKuuB1fWySn0tfMQy1E/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_H1Gzo1f9e1a1ye","request_duration_ms":553}}' + - '{"last_request_metrics":{"request_id":"req_Rd9urFFXu3X7dO","request_duration_ms":475}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:48 GMT + - Tue, 05 Dec 2023 15:17:42 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 34b24887-57b9-4ae9-9c0f-b850f0bbbfcd + - d41ddb17-0d58-4998-8f8b-6c9d77c7233e Original-Request: - - req_XmYf53Nbvp56lo + - req_Quj9nGoQsIEpHh Request-Id: - - req_XmYf53Nbvp56lo + - req_Quj9nGoQsIEpHh Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2RKuuB1fWySn0Xm1D2v6", + "id": "pi_3OK0NVKuuB1fWySn0tfMQy1E", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2RKuuB1fWySn0Xm1D2v6_secret_k4lWXYcHxLzJQDt6suSRFqmPy", + "client_secret": "pi_3OK0NVKuuB1fWySn0tfMQy1E_secret_V3qErUXTPstOCuOcC2tU93MAV", "confirmation_method": "automatic", - "created": 1701722807, + "created": 1701789461, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2RKuuB1fWySn0OyfmQWp", + "latest_charge": "ch_3OK0NVKuuB1fWySn0WkdG4Gs", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2QKuuB1fWySnrtGemn7e", + "payment_method": "pm_1OK0NUKuuB1fWySn3jHZslK0", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:48 GMT + recorded_at: Tue, 05 Dec 2023 15:17:42 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2RKuuB1fWySn0Xm1D2v6 + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NVKuuB1fWySn0tfMQy1E body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_XmYf53Nbvp56lo","request_duration_ms":1018}}' + - '{"last_request_metrics":{"request_id":"req_Quj9nGoQsIEpHh","request_duration_ms":1146}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:49 GMT + - Tue, 05 Dec 2023 15:17:43 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_tXVz4ODdWNVfB9 + - req_F60f0SjgTkVXLo Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2RKuuB1fWySn0Xm1D2v6", + "id": "pi_3OK0NVKuuB1fWySn0tfMQy1E", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2RKuuB1fWySn0Xm1D2v6_secret_k4lWXYcHxLzJQDt6suSRFqmPy", + "client_secret": "pi_3OK0NVKuuB1fWySn0tfMQy1E_secret_V3qErUXTPstOCuOcC2tU93MAV", "confirmation_method": "automatic", - "created": 1701722807, + "created": 1701789461, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2RKuuB1fWySn0OyfmQWp", + "latest_charge": "ch_3OK0NVKuuB1fWySn0WkdG4Gs", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2QKuuB1fWySnrtGemn7e", + "payment_method": "pm_1OK0NUKuuB1fWySn3jHZslK0", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,5 +513,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:49 GMT + recorded_at: Tue, 05 Dec 2023 15:17:43 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/captures_the_payment.yml new file mode 100644 index 0000000000..1f50d1e009 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/captures_the_payment.yml @@ -0,0 +1,775 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=5105105105105100&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_DBhgYBoHBETSJI","request_duration_ms":534}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:51 GMT + Content-Type: + - application/json + Content-Length: + - '944' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - be49f5c3-c50a-4db8-9ed3-9a2c1095dddb + Original-Request: + - req_BpVDTpRROz9iuB + Request-Id: + - req_BpVDTpRROz9iuB + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OK0NfKuuB1fWySnoWSl16FX", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "mastercard", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "B9ykFJ6imaeWU8aO", + "funding": "prepaid", + "generated_from": null, + "last4": "5100", + "networks": { + "available": [ + "mastercard" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701789471, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 15:17:51 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OK0NfKuuB1fWySnoWSl16FX&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_BpVDTpRROz9iuB","request_duration_ms":511}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:52 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - ddfb249e-ba30-4a16-b218-28b9b1acabac + Original-Request: + - req_2HmEALswVFSEgo + Request-Id: + - req_2HmEALswVFSEgo + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NgKuuB1fWySn1yGeaAnl", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NgKuuB1fWySn1yGeaAnl_secret_Hhp1W4e33DPc6Idyg8U1qwpZr", + "confirmation_method": "automatic", + "created": 1701789472, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NfKuuB1fWySnoWSl16FX", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:51 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NgKuuB1fWySn1yGeaAnl/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_2HmEALswVFSEgo","request_duration_ms":500}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:53 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 1677ca1c-bb6d-4434-a2ad-e544e38271f9 + Original-Request: + - req_zqTE28CGMsh7sW + Request-Id: + - req_zqTE28CGMsh7sW + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NgKuuB1fWySn1yGeaAnl", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NgKuuB1fWySn1yGeaAnl_secret_Hhp1W4e33DPc6Idyg8U1qwpZr", + "confirmation_method": "automatic", + "created": 1701789472, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NgKuuB1fWySn1ueh1Kwa", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NfKuuB1fWySnoWSl16FX", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:53 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NgKuuB1fWySn1yGeaAnl + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_zqTE28CGMsh7sW","request_duration_ms":1149}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:53 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_8XJzHbJshJgVwA + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NgKuuB1fWySn1yGeaAnl", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NgKuuB1fWySn1yGeaAnl_secret_Hhp1W4e33DPc6Idyg8U1qwpZr", + "confirmation_method": "automatic", + "created": 1701789472, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NgKuuB1fWySn1ueh1Kwa", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NfKuuB1fWySnoWSl16FX", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:53 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NgKuuB1fWySn1yGeaAnl/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_8XJzHbJshJgVwA","request_duration_ms":412}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:55 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 340b6ad0-f920-4287-9ca7-07140813d84f + Original-Request: + - req_cmEicOz7ESiYfJ + Request-Id: + - req_cmEicOz7ESiYfJ + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NgKuuB1fWySn1yGeaAnl", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NgKuuB1fWySn1yGeaAnl_secret_Hhp1W4e33DPc6Idyg8U1qwpZr", + "confirmation_method": "automatic", + "created": 1701789472, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NgKuuB1fWySn1ueh1Kwa", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NfKuuB1fWySnoWSl16FX", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:54 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NgKuuB1fWySn1yGeaAnl + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_cmEicOz7ESiYfJ","request_duration_ms":1149}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:55 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_aill0MXqVb2gur + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NgKuuB1fWySn1yGeaAnl", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NgKuuB1fWySn1yGeaAnl_secret_Hhp1W4e33DPc6Idyg8U1qwpZr", + "confirmation_method": "automatic", + "created": 1701789472, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NgKuuB1fWySn1ueh1Kwa", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NfKuuB1fWySnoWSl16FX", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:55 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml similarity index 87% rename from spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml index 406398d187..ac6715a45c 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_tXVz4ODdWNVfB9","request_duration_ms":287}}' + - '{"last_request_metrics":{"request_id":"req_N6tQgEm1E8fGfe","request_duration_ms":520}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:49 GMT + - Tue, 05 Dec 2023 15:17:48 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 286f75b0-5fa2-478f-8477-7120c3856b5f + - 76052257-c34f-4fc3-b117-0afc278bee7b Original-Request: - - req_LloNStq1tCGrjf + - req_hix7PK9Zzy9g4L Request-Id: - - req_LloNStq1tCGrjf + - req_hix7PK9Zzy9g4L Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJj2TKuuB1fWySnMp68Qsrd", + "id": "pm_1OK0NcKuuB1fWySnAjHXboxb", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701722809, + "created": 1701789468, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Mon, 04 Dec 2023 20:46:49 GMT + recorded_at: Tue, 05 Dec 2023 15:17:48 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJj2TKuuB1fWySnMp68Qsrd&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OK0NcKuuB1fWySnAjHXboxb&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_LloNStq1tCGrjf","request_duration_ms":464}}' + - '{"last_request_metrics":{"request_id":"req_hix7PK9Zzy9g4L","request_duration_ms":698}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:50 GMT + - Tue, 05 Dec 2023 15:17:49 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 8c26f5a6-c934-4e0d-ac47-c8f7f0f0070b + - 9936f0c5-e736-4a4c-8879-ad0232bad386 Original-Request: - - req_sPWIqISyePb0LG + - req_1ntV8cC7LCbXxS Request-Id: - - req_sPWIqISyePb0LG + - req_1ntV8cC7LCbXxS Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2TKuuB1fWySn1EeH0Lho", + "id": "pi_3OK0NdKuuB1fWySn1VJhrWPK", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2TKuuB1fWySn1EeH0Lho_secret_b2uIapt8ScB7TneUngzF8ujiq", + "client_secret": "pi_3OK0NdKuuB1fWySn1VJhrWPK_secret_XOOVJ1E38rhFTZpLJMPC1czz2", "confirmation_method": "automatic", - "created": 1701722809, + "created": 1701789469, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2TKuuB1fWySnMp68Qsrd", + "payment_method": "pm_1OK0NcKuuB1fWySnAjHXboxb", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:50 GMT + recorded_at: Tue, 05 Dec 2023 15:17:48 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2TKuuB1fWySn1EeH0Lho/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NdKuuB1fWySn1VJhrWPK/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_sPWIqISyePb0LG","request_duration_ms":506}}' + - '{"last_request_metrics":{"request_id":"req_1ntV8cC7LCbXxS","request_duration_ms":500}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:51 GMT + - Tue, 05 Dec 2023 15:17:50 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 62b3cce9-e2b4-41dd-8f26-533b0a16c0e5 + - 1e145cff-e685-4fe6-aea7-1a1a3049fb79 Original-Request: - - req_Snmp0E5ne6Y5qS + - req_KyB5JVspgGqCUF Request-Id: - - req_Snmp0E5ne6Y5qS + - req_KyB5JVspgGqCUF Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2TKuuB1fWySn1EeH0Lho", + "id": "pi_3OK0NdKuuB1fWySn1VJhrWPK", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2TKuuB1fWySn1EeH0Lho_secret_b2uIapt8ScB7TneUngzF8ujiq", + "client_secret": "pi_3OK0NdKuuB1fWySn1VJhrWPK_secret_XOOVJ1E38rhFTZpLJMPC1czz2", "confirmation_method": "automatic", - "created": 1701722809, + "created": 1701789469, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2TKuuB1fWySn1tNNirHo", + "latest_charge": "ch_3OK0NdKuuB1fWySn14dEedyj", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2TKuuB1fWySnMp68Qsrd", + "payment_method": "pm_1OK0NcKuuB1fWySnAjHXboxb", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:51 GMT + recorded_at: Tue, 05 Dec 2023 15:17:50 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2TKuuB1fWySn1EeH0Lho + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NdKuuB1fWySn1VJhrWPK body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Snmp0E5ne6Y5qS","request_duration_ms":920}}' + - '{"last_request_metrics":{"request_id":"req_KyB5JVspgGqCUF","request_duration_ms":1162}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:52 GMT + - Tue, 05 Dec 2023 15:17:51 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_2nR9W2ZCRoU7Zt + - req_DBhgYBoHBETSJI Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2TKuuB1fWySn1EeH0Lho", + "id": "pi_3OK0NdKuuB1fWySn1VJhrWPK", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2TKuuB1fWySn1EeH0Lho_secret_b2uIapt8ScB7TneUngzF8ujiq", + "client_secret": "pi_3OK0NdKuuB1fWySn1VJhrWPK_secret_XOOVJ1E38rhFTZpLJMPC1czz2", "confirmation_method": "automatic", - "created": 1701722809, + "created": 1701789469, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2TKuuB1fWySn1tNNirHo", + "latest_charge": "ch_3OK0NdKuuB1fWySn14dEedyj", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2TKuuB1fWySnMp68Qsrd", + "payment_method": "pm_1OK0NcKuuB1fWySnAjHXboxb", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,5 +513,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:52 GMT + recorded_at: Tue, 05 Dec 2023 15:17:50 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/captures_the_payment.yml new file mode 100644 index 0000000000..b172643335 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/captures_the_payment.yml @@ -0,0 +1,775 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6200000000000005&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_VDRgkPf2FBfebe","request_duration_ms":510}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:54 GMT + Content-Type: + - application/json + Content-Length: + - '939' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - '097e2ea9-cb9f-4d21-92db-ec3636fe6028' + Original-Request: + - req_r5G0ar3oolAlr3 + Request-Id: + - req_r5G0ar3oolAlr3 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OK0OgKuuB1fWySndE4QLhcf", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "unionpay", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "CN", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "Aq45rzUxvT6SiF1W", + "funding": "credit", + "generated_from": null, + "last4": "0005", + "networks": { + "available": [ + "unionpay" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701789534, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 15:18:54 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OK0OgKuuB1fWySndE4QLhcf&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_r5G0ar3oolAlr3","request_duration_ms":698}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:55 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 6a9e3b3a-b837-411b-8b04-45b70df9c394 + Original-Request: + - req_sHRwqKxjRHO7F8 + Request-Id: + - req_sHRwqKxjRHO7F8 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OgKuuB1fWySn2ctItjtf", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OgKuuB1fWySn2ctItjtf_secret_dPzJ6CdD6ym8KU7elt1grEjCX", + "confirmation_method": "automatic", + "created": 1701789534, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OgKuuB1fWySndE4QLhcf", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:54 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OgKuuB1fWySn2ctItjtf/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_sHRwqKxjRHO7F8","request_duration_ms":727}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:56 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 3718bc28-db6e-4764-9e95-3dc575cd968e + Original-Request: + - req_P54IGcpVNpPJSr + Request-Id: + - req_P54IGcpVNpPJSr + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OgKuuB1fWySn2ctItjtf", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OgKuuB1fWySn2ctItjtf_secret_dPzJ6CdD6ym8KU7elt1grEjCX", + "confirmation_method": "automatic", + "created": 1701789534, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0OgKuuB1fWySn2rP3lagy", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OgKuuB1fWySndE4QLhcf", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:56 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OgKuuB1fWySn2ctItjtf + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_P54IGcpVNpPJSr","request_duration_ms":1129}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:56 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_UITNkgej12gmYd + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OgKuuB1fWySn2ctItjtf", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OgKuuB1fWySn2ctItjtf_secret_dPzJ6CdD6ym8KU7elt1grEjCX", + "confirmation_method": "automatic", + "created": 1701789534, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0OgKuuB1fWySn2rP3lagy", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OgKuuB1fWySndE4QLhcf", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:56 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OgKuuB1fWySn2ctItjtf/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_UITNkgej12gmYd","request_duration_ms":432}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:58 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - '0229161d-dc66-4a6d-a29d-3655878b6232' + Original-Request: + - req_QFS7N7FC7z3Uab + Request-Id: + - req_QFS7N7FC7z3Uab + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OgKuuB1fWySn2ctItjtf", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OgKuuB1fWySn2ctItjtf_secret_dPzJ6CdD6ym8KU7elt1grEjCX", + "confirmation_method": "automatic", + "created": 1701789534, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0OgKuuB1fWySn2rP3lagy", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OgKuuB1fWySndE4QLhcf", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:57 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OgKuuB1fWySn2ctItjtf + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_QFS7N7FC7z3Uab","request_duration_ms":1263}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:18:58 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_YilKaEGPGZwhMS + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OgKuuB1fWySn2ctItjtf", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OgKuuB1fWySn2ctItjtf_secret_dPzJ6CdD6ym8KU7elt1grEjCX", + "confirmation_method": "automatic", + "created": 1701789534, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0OgKuuB1fWySn2rP3lagy", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OgKuuB1fWySndE4QLhcf", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:18:58 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml similarity index 87% rename from spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml index 1c327c235e..90006be8a4 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_JTUbXkj4ct2Q35","request_duration_ms":347}}' + - '{"last_request_metrics":{"request_id":"req_ZuE1qwJzDm3cwU","request_duration_ms":378}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:13 GMT + - Tue, 05 Dec 2023 15:18:51 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - febb326b-4f98-4ac3-97cf-0a5384200d10 + - 7f960af1-3d82-4fcf-80ac-16cee68e7688 Original-Request: - - req_SMrgpuiweD3PjK + - req_d8ZiiACtQ06Rbo Request-Id: - - req_SMrgpuiweD3PjK + - req_d8ZiiACtQ06Rbo Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJj2rKuuB1fWySnGZIjSslY", + "id": "pm_1OK0OdKuuB1fWySnp3GL2sQq", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701722833, + "created": 1701789531, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Mon, 04 Dec 2023 20:47:13 GMT + recorded_at: Tue, 05 Dec 2023 15:18:51 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJj2rKuuB1fWySnGZIjSslY&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OK0OdKuuB1fWySnp3GL2sQq&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_SMrgpuiweD3PjK","request_duration_ms":474}}' + - '{"last_request_metrics":{"request_id":"req_d8ZiiACtQ06Rbo","request_duration_ms":471}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:14 GMT + - Tue, 05 Dec 2023 15:18:51 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - af32b398-dca6-41f8-96cf-dd1a842ae181 + - ab05b392-8c4e-4135-8e07-78e27a5b5c97 Original-Request: - - req_P2y0c7rJMee8rU + - req_zBMGBk4ALHJ53k Request-Id: - - req_P2y0c7rJMee8rU + - req_zBMGBk4ALHJ53k Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2sKuuB1fWySn2jiI7zQt", + "id": "pi_3OK0OdKuuB1fWySn0jRLoF0O", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2sKuuB1fWySn2jiI7zQt_secret_v5lIhNs2q5QUuIwTN0TtMQZWj", + "client_secret": "pi_3OK0OdKuuB1fWySn0jRLoF0O_secret_XgzEEP58gQQRJTdZFScMUngKz", "confirmation_method": "automatic", - "created": 1701722834, + "created": 1701789531, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2rKuuB1fWySnGZIjSslY", + "payment_method": "pm_1OK0OdKuuB1fWySnp3GL2sQq", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:14 GMT + recorded_at: Tue, 05 Dec 2023 15:18:51 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2sKuuB1fWySn2jiI7zQt/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OdKuuB1fWySn0jRLoF0O/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_P2y0c7rJMee8rU","request_duration_ms":405}}' + - '{"last_request_metrics":{"request_id":"req_zBMGBk4ALHJ53k","request_duration_ms":429}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:15 GMT + - Tue, 05 Dec 2023 15:18:52 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - f1d3336d-acfb-419b-9ca8-f12dc71763cb + - 8591c014-5c0a-40e0-b568-a85f84808cd4 Original-Request: - - req_8DgrZVPPhj7fnm + - req_KJ5m1JKnvKuW7X Request-Id: - - req_8DgrZVPPhj7fnm + - req_KJ5m1JKnvKuW7X Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2sKuuB1fWySn2jiI7zQt", + "id": "pi_3OK0OdKuuB1fWySn0jRLoF0O", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2sKuuB1fWySn2jiI7zQt_secret_v5lIhNs2q5QUuIwTN0TtMQZWj", + "client_secret": "pi_3OK0OdKuuB1fWySn0jRLoF0O_secret_XgzEEP58gQQRJTdZFScMUngKz", "confirmation_method": "automatic", - "created": 1701722834, + "created": 1701789531, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2sKuuB1fWySn2ng1XGkr", + "latest_charge": "ch_3OK0OdKuuB1fWySn0FO8hMSz", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2rKuuB1fWySnGZIjSslY", + "payment_method": "pm_1OK0OdKuuB1fWySnp3GL2sQq", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:15 GMT + recorded_at: Tue, 05 Dec 2023 15:18:52 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2sKuuB1fWySn2jiI7zQt + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OdKuuB1fWySn0jRLoF0O body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_8DgrZVPPhj7fnm","request_duration_ms":1021}}' + - '{"last_request_metrics":{"request_id":"req_KJ5m1JKnvKuW7X","request_duration_ms":1042}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:15 GMT + - Tue, 05 Dec 2023 15:18:53 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_4wmy4SEdLRcDG9 + - req_VDRgkPf2FBfebe Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2sKuuB1fWySn2jiI7zQt", + "id": "pi_3OK0OdKuuB1fWySn0jRLoF0O", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2sKuuB1fWySn2jiI7zQt_secret_v5lIhNs2q5QUuIwTN0TtMQZWj", + "client_secret": "pi_3OK0OdKuuB1fWySn0jRLoF0O_secret_XgzEEP58gQQRJTdZFScMUngKz", "confirmation_method": "automatic", - "created": 1701722834, + "created": 1701789531, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2sKuuB1fWySn2ng1XGkr", + "latest_charge": "ch_3OK0OdKuuB1fWySn0FO8hMSz", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2rKuuB1fWySnGZIjSslY", + "payment_method": "pm_1OK0OdKuuB1fWySnp3GL2sQq", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,5 +513,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:16 GMT + recorded_at: Tue, 05 Dec 2023 15:18:53 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/captures_the_payment.yml new file mode 100644 index 0000000000..081c8d3f51 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/captures_the_payment.yml @@ -0,0 +1,775 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6205500000000000004&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_ZBWC0ReWn01SQD","request_duration_ms":470}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:19:11 GMT + Content-Type: + - application/json + Content-Length: + - '938' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - ece5f5ca-94ae-485f-b50f-cb8adabdf8df + Original-Request: + - req_Wo2qnoErMuGcJk + Request-Id: + - req_Wo2qnoErMuGcJk + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OK0OxKuuB1fWySnzESkHW85", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "unionpay", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "F9o1vzLUnyEJBPXi", + "funding": "debit", + "generated_from": null, + "last4": "0004", + "networks": { + "available": [ + "unionpay" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701789551, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 15:19:11 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OK0OxKuuB1fWySnzESkHW85&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_Wo2qnoErMuGcJk","request_duration_ms":1426}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:19:12 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 3315bd46-3d67-465e-ab03-503feec78d86 + Original-Request: + - req_KNDdQAdBM86x54 + Request-Id: + - req_KNDdQAdBM86x54 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OyKuuB1fWySn0R6JrFXQ", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OyKuuB1fWySn0R6JrFXQ_secret_HrcT6rjw8dm8YPLHpOwKACXDS", + "confirmation_method": "automatic", + "created": 1701789552, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OxKuuB1fWySnzESkHW85", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:19:13 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OyKuuB1fWySn0R6JrFXQ/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_KNDdQAdBM86x54","request_duration_ms":506}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:19:14 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - af79f075-1e7e-43b6-aaac-34ec571ae48a + Original-Request: + - req_IQzO3S0a5cIp1l + Request-Id: + - req_IQzO3S0a5cIp1l + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OyKuuB1fWySn0R6JrFXQ", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OyKuuB1fWySn0R6JrFXQ_secret_HrcT6rjw8dm8YPLHpOwKACXDS", + "confirmation_method": "automatic", + "created": 1701789552, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0OyKuuB1fWySn0DK45tX5", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OxKuuB1fWySnzESkHW85", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:19:14 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OyKuuB1fWySn0R6JrFXQ + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_IQzO3S0a5cIp1l","request_duration_ms":1108}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:19:14 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_KmR6LU2UUpi5j4 + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OyKuuB1fWySn0R6JrFXQ", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OyKuuB1fWySn0R6JrFXQ_secret_HrcT6rjw8dm8YPLHpOwKACXDS", + "confirmation_method": "automatic", + "created": 1701789552, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0OyKuuB1fWySn0DK45tX5", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OxKuuB1fWySnzESkHW85", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:19:14 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OyKuuB1fWySn0R6JrFXQ/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_KmR6LU2UUpi5j4","request_duration_ms":555}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:19:15 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - a44878b0-2de2-4bac-b3d5-7e1750d36aae + Original-Request: + - req_U33tub2kFefrZV + Request-Id: + - req_U33tub2kFefrZV + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OyKuuB1fWySn0R6JrFXQ", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OyKuuB1fWySn0R6JrFXQ_secret_HrcT6rjw8dm8YPLHpOwKACXDS", + "confirmation_method": "automatic", + "created": 1701789552, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0OyKuuB1fWySn0DK45tX5", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OxKuuB1fWySnzESkHW85", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:19:15 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OyKuuB1fWySn0R6JrFXQ + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_U33tub2kFefrZV","request_duration_ms":1196}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:19:16 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_job7iKTfQQRxAj + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OyKuuB1fWySn0R6JrFXQ", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OyKuuB1fWySn0R6JrFXQ_secret_HrcT6rjw8dm8YPLHpOwKACXDS", + "confirmation_method": "automatic", + "created": 1701789552, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0OyKuuB1fWySn0DK45tX5", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OxKuuB1fWySnzESkHW85", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:19:16 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml similarity index 87% rename from spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml index df5475a744..2dcc7c5887 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_9ro64kilrFj4To","request_duration_ms":403}}' + - '{"last_request_metrics":{"request_id":"req_xKCeFNu7e5BfpF","request_duration_ms":626}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:19 GMT + - Tue, 05 Dec 2023 15:19:07 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - '08a2b487-4548-44e6-a162-957e6a867957' + - be9e256b-0f4d-454b-8623-fc780032e7df Original-Request: - - req_oeD0kQklE96e0a + - req_WUH9xgO9YiyVO0 Request-Id: - - req_oeD0kQklE96e0a + - req_WUH9xgO9YiyVO0 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJj2wKuuB1fWySnW5e0E3Pm", + "id": "pm_1OK0OtKuuB1fWySnjgEiVnHP", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701722838, + "created": 1701789547, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Mon, 04 Dec 2023 20:47:19 GMT + recorded_at: Tue, 05 Dec 2023 15:19:07 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJj2wKuuB1fWySnW5e0E3Pm&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OK0OtKuuB1fWySnjgEiVnHP&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_oeD0kQklE96e0a","request_duration_ms":565}}' + - '{"last_request_metrics":{"request_id":"req_WUH9xgO9YiyVO0","request_duration_ms":771}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:19 GMT + - Tue, 05 Dec 2023 15:19:08 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 7015bf78-4049-4048-bef7-aa4d1d1301ae + - 67bced54-f962-4e02-8228-4a75039e431c Original-Request: - - req_iYmEFfw4ajYKgU + - req_JBW5GoKQBMNf85 Request-Id: - - req_iYmEFfw4ajYKgU + - req_JBW5GoKQBMNf85 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2xKuuB1fWySn2nhpzbdQ", + "id": "pi_3OK0OuKuuB1fWySn019xq8Gn", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2xKuuB1fWySn2nhpzbdQ_secret_HUnUvPOu030pxIzeGPTZpl1EQ", + "client_secret": "pi_3OK0OuKuuB1fWySn019xq8Gn_secret_ig38E6cBdFNumh1qsnN6nz1ms", "confirmation_method": "automatic", - "created": 1701722839, + "created": 1701789548, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2wKuuB1fWySnW5e0E3Pm", + "payment_method": "pm_1OK0OtKuuB1fWySnjgEiVnHP", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:19 GMT + recorded_at: Tue, 05 Dec 2023 15:19:08 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2xKuuB1fWySn2nhpzbdQ/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OuKuuB1fWySn019xq8Gn/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_iYmEFfw4ajYKgU","request_duration_ms":507}}' + - '{"last_request_metrics":{"request_id":"req_JBW5GoKQBMNf85","request_duration_ms":724}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:20 GMT + - Tue, 05 Dec 2023 15:19:09 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - c79031cb-7c54-401c-88da-6da291f6d850 + - e1171110-f120-4eb6-9bc4-eea959e5ff2c Original-Request: - - req_A10i0krkHnlJ88 + - req_312xR4RbraiN7K Request-Id: - - req_A10i0krkHnlJ88 + - req_312xR4RbraiN7K Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2xKuuB1fWySn2nhpzbdQ", + "id": "pi_3OK0OuKuuB1fWySn019xq8Gn", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2xKuuB1fWySn2nhpzbdQ_secret_HUnUvPOu030pxIzeGPTZpl1EQ", + "client_secret": "pi_3OK0OuKuuB1fWySn019xq8Gn_secret_ig38E6cBdFNumh1qsnN6nz1ms", "confirmation_method": "automatic", - "created": 1701722839, + "created": 1701789548, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2xKuuB1fWySn2LEd86vF", + "latest_charge": "ch_3OK0OuKuuB1fWySn0Xaro0pW", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2wKuuB1fWySnW5e0E3Pm", + "payment_method": "pm_1OK0OtKuuB1fWySnjgEiVnHP", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:20 GMT + recorded_at: Tue, 05 Dec 2023 15:19:09 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2xKuuB1fWySn2nhpzbdQ + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OuKuuB1fWySn019xq8Gn body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_A10i0krkHnlJ88","request_duration_ms":918}}' + - '{"last_request_metrics":{"request_id":"req_312xR4RbraiN7K","request_duration_ms":1148}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:21 GMT + - Tue, 05 Dec 2023 15:19:10 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_9pkmm8GBwHLk9r + - req_ZBWC0ReWn01SQD Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2xKuuB1fWySn2nhpzbdQ", + "id": "pi_3OK0OuKuuB1fWySn019xq8Gn", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2xKuuB1fWySn2nhpzbdQ_secret_HUnUvPOu030pxIzeGPTZpl1EQ", + "client_secret": "pi_3OK0OuKuuB1fWySn019xq8Gn_secret_ig38E6cBdFNumh1qsnN6nz1ms", "confirmation_method": "automatic", - "created": 1701722839, + "created": 1701789548, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2xKuuB1fWySn2LEd86vF", + "latest_charge": "ch_3OK0OuKuuB1fWySn0Xaro0pW", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2wKuuB1fWySnW5e0E3Pm", + "payment_method": "pm_1OK0OtKuuB1fWySnjgEiVnHP", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,5 +513,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:21 GMT + recorded_at: Tue, 05 Dec 2023 15:19:10 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/captures_the_payment.yml new file mode 100644 index 0000000000..7cd924ef63 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/captures_the_payment.yml @@ -0,0 +1,775 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=6200000000000047&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_Y5NxTpKbH4Fc7E","request_duration_ms":474}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:19:02 GMT + Content-Type: + - application/json + Content-Length: + - '938' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 2cd56fed-2848-496a-93c7-2c5036c3536a + Original-Request: + - req_70aKrc8cE9PJxb + Request-Id: + - req_70aKrc8cE9PJxb + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OK0OoKuuB1fWySnWTaF1Bpw", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "unionpay", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "CN", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "Bk3yMwVTBMfdXTtb", + "funding": "debit", + "generated_from": null, + "last4": "0047", + "networks": { + "available": [ + "unionpay" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701789542, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 15:19:02 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OK0OoKuuB1fWySnWTaF1Bpw&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_70aKrc8cE9PJxb","request_duration_ms":567}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:19:03 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 598c36d2-0ccb-4fd7-be00-15c171402d72 + Original-Request: + - req_AybcFGK5cPU57A + Request-Id: + - req_AybcFGK5cPU57A + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OpKuuB1fWySn1Kuri4H6", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OpKuuB1fWySn1Kuri4H6_secret_OV3xnSkYVvrNI8FQiwUOgHH6K", + "confirmation_method": "automatic", + "created": 1701789543, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OoKuuB1fWySnWTaF1Bpw", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:19:02 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OpKuuB1fWySn1Kuri4H6/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_AybcFGK5cPU57A","request_duration_ms":518}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:19:04 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 7f4ad8a9-023f-4a7c-8ca6-fb7d4579b175 + Original-Request: + - req_L8ggX8i1brrIwq + Request-Id: + - req_L8ggX8i1brrIwq + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OpKuuB1fWySn1Kuri4H6", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OpKuuB1fWySn1Kuri4H6_secret_OV3xnSkYVvrNI8FQiwUOgHH6K", + "confirmation_method": "automatic", + "created": 1701789543, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0OpKuuB1fWySn1c1UAlQZ", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OoKuuB1fWySnWTaF1Bpw", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:19:04 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OpKuuB1fWySn1Kuri4H6 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_L8ggX8i1brrIwq","request_duration_ms":1042}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:19:04 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_sMody1UzlHOhWs + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OpKuuB1fWySn1Kuri4H6", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OpKuuB1fWySn1Kuri4H6_secret_OV3xnSkYVvrNI8FQiwUOgHH6K", + "confirmation_method": "automatic", + "created": 1701789543, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0OpKuuB1fWySn1c1UAlQZ", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OoKuuB1fWySnWTaF1Bpw", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:19:04 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OpKuuB1fWySn1Kuri4H6/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_sMody1UzlHOhWs","request_duration_ms":624}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:19:06 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 1cc5051b-4a89-4baa-b6d5-91e3975bc6de + Original-Request: + - req_gscNQzOu5P7I1P + Request-Id: + - req_gscNQzOu5P7I1P + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OpKuuB1fWySn1Kuri4H6", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OpKuuB1fWySn1Kuri4H6_secret_OV3xnSkYVvrNI8FQiwUOgHH6K", + "confirmation_method": "automatic", + "created": 1701789543, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0OpKuuB1fWySn1c1UAlQZ", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OoKuuB1fWySnWTaF1Bpw", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:19:06 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OpKuuB1fWySn1Kuri4H6 + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_gscNQzOu5P7I1P","request_duration_ms":1459}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:19:06 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_xKCeFNu7e5BfpF + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0OpKuuB1fWySn1Kuri4H6", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0OpKuuB1fWySn1Kuri4H6_secret_OV3xnSkYVvrNI8FQiwUOgHH6K", + "confirmation_method": "automatic", + "created": 1701789543, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0OpKuuB1fWySn1c1UAlQZ", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0OoKuuB1fWySnWTaF1Bpw", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:19:06 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/returns_payment_intent_id_and_does_not_raise.yml similarity index 87% rename from spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/returns_payment_intent_id_and_does_not_raise.yml index 2d0541a428..ccffd38741 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_4wmy4SEdLRcDG9","request_duration_ms":319}}' + - '{"last_request_metrics":{"request_id":"req_YilKaEGPGZwhMS","request_duration_ms":611}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:16 GMT + - Tue, 05 Dec 2023 15:18:59 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 1a0f14fc-6530-4f87-8dd0-283f0829ac69 + - 978b2222-f9be-4384-8238-d478213b1239 Original-Request: - - req_R4ueM1WTdswzyr + - req_6ky0im1v5qE61M Request-Id: - - req_R4ueM1WTdswzyr + - req_6ky0im1v5qE61M Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJj2uKuuB1fWySnYb5hWcxP", + "id": "pm_1OK0OlKuuB1fWySn6TbPAXxn", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701722836, + "created": 1701789539, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Mon, 04 Dec 2023 20:47:16 GMT + recorded_at: Tue, 05 Dec 2023 15:18:59 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJj2uKuuB1fWySnYb5hWcxP&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OK0OlKuuB1fWySn6TbPAXxn&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_R4ueM1WTdswzyr","request_duration_ms":466}}' + - '{"last_request_metrics":{"request_id":"req_6ky0im1v5qE61M","request_duration_ms":602}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:16 GMT + - Tue, 05 Dec 2023 15:18:59 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 2f149d5f-b2ec-4302-be4b-2cec74eeb49c + - 30443fae-24cb-482b-8c8c-b727cb2533d1 Original-Request: - - req_cFYrdTYjbOaMJJ + - req_QrXtBC60EVCmy2 Request-Id: - - req_cFYrdTYjbOaMJJ + - req_QrXtBC60EVCmy2 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2uKuuB1fWySn0KauXt6G", + "id": "pi_3OK0OlKuuB1fWySn0P4BxbMr", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2uKuuB1fWySn0KauXt6G_secret_5yyPwcQiU0pljz3MMA9NZH6BZ", + "client_secret": "pi_3OK0OlKuuB1fWySn0P4BxbMr_secret_0tQmjyFe3HggGsQyCB9W0ecOt", "confirmation_method": "automatic", - "created": 1701722836, + "created": 1701789539, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2uKuuB1fWySnYb5hWcxP", + "payment_method": "pm_1OK0OlKuuB1fWySn6TbPAXxn", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:16 GMT + recorded_at: Tue, 05 Dec 2023 15:18:59 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2uKuuB1fWySn0KauXt6G/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OlKuuB1fWySn0P4BxbMr/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_cFYrdTYjbOaMJJ","request_duration_ms":372}}' + - '{"last_request_metrics":{"request_id":"req_QrXtBC60EVCmy2","request_duration_ms":572}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:17 GMT + - Tue, 05 Dec 2023 15:19:01 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 00f734fc-6c93-4836-a2f4-a7493b28e51a + - cf93bac8-fc86-4597-a5e4-7ed08f0e7c0f Original-Request: - - req_m1pPuXKwTySqbI + - req_cpaKljHHUAGqXX Request-Id: - - req_m1pPuXKwTySqbI + - req_cpaKljHHUAGqXX Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2uKuuB1fWySn0KauXt6G", + "id": "pi_3OK0OlKuuB1fWySn0P4BxbMr", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2uKuuB1fWySn0KauXt6G_secret_5yyPwcQiU0pljz3MMA9NZH6BZ", + "client_secret": "pi_3OK0OlKuuB1fWySn0P4BxbMr_secret_0tQmjyFe3HggGsQyCB9W0ecOt", "confirmation_method": "automatic", - "created": 1701722836, + "created": 1701789539, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2uKuuB1fWySn0IC5kWI1", + "latest_charge": "ch_3OK0OlKuuB1fWySn02iFSj4l", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2uKuuB1fWySnYb5hWcxP", + "payment_method": "pm_1OK0OlKuuB1fWySn6TbPAXxn", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:17 GMT + recorded_at: Tue, 05 Dec 2023 15:19:00 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2uKuuB1fWySn0KauXt6G + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OlKuuB1fWySn0P4BxbMr body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_m1pPuXKwTySqbI","request_duration_ms":897}}' + - '{"last_request_metrics":{"request_id":"req_cpaKljHHUAGqXX","request_duration_ms":1292}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:47:18 GMT + - Tue, 05 Dec 2023 15:19:02 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_9ro64kilrFj4To + - req_Y5NxTpKbH4Fc7E Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2uKuuB1fWySn0KauXt6G", + "id": "pi_3OK0OlKuuB1fWySn0P4BxbMr", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2uKuuB1fWySn0KauXt6G_secret_5yyPwcQiU0pljz3MMA9NZH6BZ", + "client_secret": "pi_3OK0OlKuuB1fWySn0P4BxbMr_secret_0tQmjyFe3HggGsQyCB9W0ecOt", "confirmation_method": "automatic", - "created": 1701722836, + "created": 1701789539, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2uKuuB1fWySn0IC5kWI1", + "latest_charge": "ch_3OK0OlKuuB1fWySn02iFSj4l", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2uKuuB1fWySnYb5hWcxP", + "payment_method": "pm_1OK0OlKuuB1fWySn6TbPAXxn", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,5 +513,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:47:18 GMT + recorded_at: Tue, 05 Dec 2023 15:19:01 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/captures_the_payment.yml new file mode 100644 index 0000000000..88b3e0ca20 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/captures_the_payment.yml @@ -0,0 +1,775 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4242424242424242&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_aiF3Gd8YvpypCq","request_duration_ms":441}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:14 GMT + Content-Type: + - application/json + Content-Length: + - '931' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 15b53166-e52b-4a82-bac7-56277fd9ff49 + Original-Request: + - req_PBn7JT6pkOAztU + Request-Id: + - req_PBn7JT6pkOAztU + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OK0N3KuuB1fWySnrASsqWla", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "6E6tgVjx6U65iHFV", + "funding": "credit", + "generated_from": null, + "last4": "4242", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701789433, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 15:17:13 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OK0N3KuuB1fWySnrASsqWla&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_PBn7JT6pkOAztU","request_duration_ms":559}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:14 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 370042d5-b3b2-4915-9e72-3e8cd90e8ae9 + Original-Request: + - req_u94SpUT2S9mo8i + Request-Id: + - req_u94SpUT2S9mo8i + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0N4KuuB1fWySn2cJnusju", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0N4KuuB1fWySn2cJnusju_secret_wgoyzyvA28ep1rYEiNO7QMa4H", + "confirmation_method": "automatic", + "created": 1701789434, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0N3KuuB1fWySnrASsqWla", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:14 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0N4KuuB1fWySn2cJnusju/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_u94SpUT2S9mo8i","request_duration_ms":537}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:15 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - e42bf25e-660e-4de4-8d33-51a6e349a844 + Original-Request: + - req_3MEHavjY1GaTSh + Request-Id: + - req_3MEHavjY1GaTSh + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0N4KuuB1fWySn2cJnusju", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0N4KuuB1fWySn2cJnusju_secret_wgoyzyvA28ep1rYEiNO7QMa4H", + "confirmation_method": "automatic", + "created": 1701789434, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0N4KuuB1fWySn2uAGQfXD", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0N3KuuB1fWySnrASsqWla", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:15 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0N4KuuB1fWySn2cJnusju + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_3MEHavjY1GaTSh","request_duration_ms":1041}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:16 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_3nAEjoUkk8p7pL + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0N4KuuB1fWySn2cJnusju", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0N4KuuB1fWySn2cJnusju_secret_wgoyzyvA28ep1rYEiNO7QMa4H", + "confirmation_method": "automatic", + "created": 1701789434, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0N4KuuB1fWySn2uAGQfXD", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0N3KuuB1fWySnrASsqWla", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:15 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0N4KuuB1fWySn2cJnusju/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_3nAEjoUkk8p7pL","request_duration_ms":516}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:17 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - f5376f8a-a0d7-43c1-b31b-7c1b7c129d76 + Original-Request: + - req_4NW74nvyP7315A + Request-Id: + - req_4NW74nvyP7315A + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0N4KuuB1fWySn2cJnusju", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0N4KuuB1fWySn2cJnusju_secret_wgoyzyvA28ep1rYEiNO7QMa4H", + "confirmation_method": "automatic", + "created": 1701789434, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0N4KuuB1fWySn2uAGQfXD", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0N3KuuB1fWySnrASsqWla", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:16 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0N4KuuB1fWySn2cJnusju + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_4NW74nvyP7315A","request_duration_ms":1146}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:17 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_vO8qrn7fP8cCF0 + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0N4KuuB1fWySn2cJnusju", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0N4KuuB1fWySn2cJnusju_secret_wgoyzyvA28ep1rYEiNO7QMa4H", + "confirmation_method": "automatic", + "created": 1701789434, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0N4KuuB1fWySn2uAGQfXD", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0N3KuuB1fWySnrASsqWla", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:17 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml similarity index 86% rename from spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml index 1453a28933..c4178f5c00 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml @@ -13,8 +13,6 @@ http_interactions: - Bearer Content-Type: - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_TFYWjB2c88GTQp","request_duration_ms":294}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +32,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:36 GMT + - Tue, 05 Dec 2023 15:17:09 GMT Content-Type: - application/json Content-Length: @@ -59,11 +57,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 48870c95-5148-491c-bb94-f00fb95e2080 + - 8024fec1-4e37-4443-b9d5-60fd5dede380 Original-Request: - - req_LmifJNlcjscRvV + - req_u5fQT0UWabeKzG Request-Id: - - req_LmifJNlcjscRvV + - req_u5fQT0UWabeKzG Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +76,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJj2FKuuB1fWySnnFGOYQha", + "id": "pm_1OK0MzKuuB1fWySnA8bo8ueR", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +116,19 @@ http_interactions: }, "wallet": null }, - "created": 1701722796, + "created": 1701789429, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Mon, 04 Dec 2023 20:46:36 GMT + recorded_at: Tue, 05 Dec 2023 15:17:09 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJj2FKuuB1fWySnnFGOYQha&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OK0MzKuuB1fWySnA8bo8ueR&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +137,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_LmifJNlcjscRvV","request_duration_ms":435}}' + - '{"last_request_metrics":{"request_id":"req_u5fQT0UWabeKzG","request_duration_ms":1776}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +157,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:36 GMT + - Tue, 05 Dec 2023 15:17:10 GMT Content-Type: - application/json Content-Length: @@ -184,11 +182,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 614c220d-872d-4f48-9b10-b3a629b66ad5 + - d54433cd-6e3a-43dc-8e9e-3213bb6e18a2 Original-Request: - - req_cy8clAZTdpUZCE + - req_Y5oEH60D4yi40a Request-Id: - - req_cy8clAZTdpUZCE + - req_Y5oEH60D4yi40a Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +201,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2GKuuB1fWySn0L6zUWZM", + "id": "pi_3OK0N0KuuB1fWySn0y6d7Alg", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +215,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2GKuuB1fWySn0L6zUWZM_secret_fdjyu0ZZeB6KQOYK9fM97c7iU", + "client_secret": "pi_3OK0N0KuuB1fWySn0y6d7Alg_secret_ifL68RNgHXIPXNWBlHNuzixnA", "confirmation_method": "automatic", - "created": 1701722796, + "created": 1701789430, "currency": "eur", "customer": null, "description": null, @@ -230,7 +228,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2FKuuB1fWySnnFGOYQha", + "payment_method": "pm_1OK0MzKuuB1fWySnA8bo8ueR", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +253,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:36 GMT + recorded_at: Tue, 05 Dec 2023 15:17:10 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2GKuuB1fWySn0L6zUWZM/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0N0KuuB1fWySn0y6d7Alg/confirm body: encoding: US-ASCII string: '' @@ -270,7 +268,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_cy8clAZTdpUZCE","request_duration_ms":434}}' + - '{"last_request_metrics":{"request_id":"req_Y5oEH60D4yi40a","request_duration_ms":1144}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +288,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:37 GMT + - Tue, 05 Dec 2023 15:17:12 GMT Content-Type: - application/json Content-Length: @@ -316,11 +314,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 4cd9daeb-7772-4fef-a833-a78897a52515 + - c2405253-b731-4a6d-a5ff-5d856039ceb1 Original-Request: - - req_b5W8XofC0cCYcU + - req_z9trADZXt0Lqsv Request-Id: - - req_b5W8XofC0cCYcU + - req_z9trADZXt0Lqsv Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +333,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2GKuuB1fWySn0L6zUWZM", + "id": "pi_3OK0N0KuuB1fWySn0y6d7Alg", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +347,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2GKuuB1fWySn0L6zUWZM_secret_fdjyu0ZZeB6KQOYK9fM97c7iU", + "client_secret": "pi_3OK0N0KuuB1fWySn0y6d7Alg_secret_ifL68RNgHXIPXNWBlHNuzixnA", "confirmation_method": "automatic", - "created": 1701722796, + "created": 1701789430, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2GKuuB1fWySn0rJjslie", + "latest_charge": "ch_3OK0N0KuuB1fWySn0SMOKDN4", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2FKuuB1fWySnnFGOYQha", + "payment_method": "pm_1OK0MzKuuB1fWySnA8bo8ueR", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +385,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:37 GMT + recorded_at: Tue, 05 Dec 2023 15:17:11 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2GKuuB1fWySn0L6zUWZM + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0N0KuuB1fWySn0y6d7Alg body: encoding: US-ASCII string: '' @@ -402,7 +400,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_b5W8XofC0cCYcU","request_duration_ms":1123}}' + - '{"last_request_metrics":{"request_id":"req_z9trADZXt0Lqsv","request_duration_ms":1289}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +420,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:38 GMT + - Tue, 05 Dec 2023 15:17:13 GMT Content-Type: - application/json Content-Length: @@ -448,7 +446,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_L7OYD5kmaQIMPk + - req_aiF3Gd8YvpypCq Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +459,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2GKuuB1fWySn0L6zUWZM", + "id": "pi_3OK0N0KuuB1fWySn0y6d7Alg", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +473,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2GKuuB1fWySn0L6zUWZM_secret_fdjyu0ZZeB6KQOYK9fM97c7iU", + "client_secret": "pi_3OK0N0KuuB1fWySn0y6d7Alg_secret_ifL68RNgHXIPXNWBlHNuzixnA", "confirmation_method": "automatic", - "created": 1701722796, + "created": 1701789430, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2GKuuB1fWySn0rJjslie", + "latest_charge": "ch_3OK0N0KuuB1fWySn0SMOKDN4", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2FKuuB1fWySnnFGOYQha", + "payment_method": "pm_1OK0MzKuuB1fWySnA8bo8ueR", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,5 +511,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:38 GMT + recorded_at: Tue, 05 Dec 2023 15:17:13 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/captures_the_payment.yml new file mode 100644 index 0000000000..4460c71aec --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/captures_the_payment.yml @@ -0,0 +1,775 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000056655665556&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_ZkA8ZCo5ERur3x","request_duration_ms":470}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:21 GMT + Content-Type: + - application/json + Content-Length: + - '930' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 53f0dbb7-cf2b-4632-b86d-e491577997be + Original-Request: + - req_qV9EPQMhcSmWxE + Request-Id: + - req_qV9EPQMhcSmWxE + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OK0NBKuuB1fWySnBanhATQe", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "QOaaYMtlTSm6xJM8", + "funding": "debit", + "generated_from": null, + "last4": "5556", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701789441, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 15:17:21 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents + body: + encoding: UTF-8 + string: amount=100¤cy=eur&payment_method=pm_1OK0NBKuuB1fWySnBanhATQe&payment_method_types[0]=card&capture_method=manual + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_qV9EPQMhcSmWxE","request_duration_ms":447}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:21 GMT + Content-Type: + - application/json + Content-Length: + - '1343' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - d21aabbf-bf33-4ba3-abb4-fa143b176415 + Original-Request: + - req_jBZ6ydbq6wreHr + Request-Id: + - req_jBZ6ydbq6wreHr + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NBKuuB1fWySn1zyIRfxn", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NBKuuB1fWySn1zyIRfxn_secret_hagOhIL5t6uTWbqTGDP54Re6y", + "confirmation_method": "automatic", + "created": 1701789441, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": null, + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NBKuuB1fWySnBanhATQe", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_confirmation", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:21 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NBKuuB1fWySn1zyIRfxn/confirm + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_jBZ6ydbq6wreHr","request_duration_ms":437}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:22 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fconfirm; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - ad3af5ac-ed74-4499-a6db-bf1f8d1d239a + Original-Request: + - req_b94QpThTVNsaDV + Request-Id: + - req_b94QpThTVNsaDV + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NBKuuB1fWySn1zyIRfxn", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NBKuuB1fWySn1zyIRfxn_secret_hagOhIL5t6uTWbqTGDP54Re6y", + "confirmation_method": "automatic", + "created": 1701789441, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NBKuuB1fWySn10gtgFyF", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NBKuuB1fWySnBanhATQe", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:22 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NBKuuB1fWySn1zyIRfxn + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_b94QpThTVNsaDV","request_duration_ms":1264}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:23 GMT + Content-Type: + - application/json + Content-Length: + - '1365' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_zeHjSf80djIfrj + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NBKuuB1fWySn1zyIRfxn", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 100, + "amount_details": { + "tip": {} + }, + "amount_received": 0, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NBKuuB1fWySn1zyIRfxn_secret_hagOhIL5t6uTWbqTGDP54Re6y", + "confirmation_method": "automatic", + "created": 1701789441, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NBKuuB1fWySn10gtgFyF", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NBKuuB1fWySnBanhATQe", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "requires_capture", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:23 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NBKuuB1fWySn1zyIRfxn/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_zeHjSf80djIfrj","request_duration_ms":414}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:24 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 620f16e3-ed28-4cbf-bef5-c5667c033b57 + Original-Request: + - req_iX8wsFJSraVlJj + Request-Id: + - req_iX8wsFJSraVlJj + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NBKuuB1fWySn1zyIRfxn", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NBKuuB1fWySn1zyIRfxn_secret_hagOhIL5t6uTWbqTGDP54Re6y", + "confirmation_method": "automatic", + "created": 1701789441, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NBKuuB1fWySn10gtgFyF", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NBKuuB1fWySnBanhATQe", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:24 GMT +- request: + method: get + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NBKuuB1fWySn1zyIRfxn + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_iX8wsFJSraVlJj","request_duration_ms":1356}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 15:17:25 GMT + Content-Type: + - application/json + Content-Length: + - '1358' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Request-Id: + - req_O23HuS6lzDg04Z + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pi_3OK0NBKuuB1fWySn1zyIRfxn", + "object": "payment_intent", + "amount": 100, + "amount_capturable": 0, + "amount_details": { + "tip": {} + }, + "amount_received": 100, + "application": null, + "application_fee_amount": null, + "automatic_payment_methods": null, + "canceled_at": null, + "cancellation_reason": null, + "capture_method": "manual", + "client_secret": "pi_3OK0NBKuuB1fWySn1zyIRfxn_secret_hagOhIL5t6uTWbqTGDP54Re6y", + "confirmation_method": "automatic", + "created": 1701789441, + "currency": "eur", + "customer": null, + "description": null, + "invoice": null, + "last_payment_error": null, + "latest_charge": "ch_3OK0NBKuuB1fWySn10gtgFyF", + "livemode": false, + "metadata": {}, + "next_action": null, + "on_behalf_of": null, + "payment_method": "pm_1OK0NBKuuB1fWySnBanhATQe", + "payment_method_configuration_details": null, + "payment_method_options": { + "card": { + "installments": null, + "mandate_options": null, + "network": null, + "request_three_d_secure": "automatic" + } + }, + "payment_method_types": [ + "card" + ], + "processing": null, + "receipt_email": null, + "review": null, + "setup_future_usage": null, + "shipping": null, + "source": null, + "statement_descriptor": null, + "statement_descriptor_suffix": null, + "status": "succeeded", + "transfer_data": null, + "transfer_group": null + } + recorded_at: Tue, 05 Dec 2023 15:17:24 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml similarity index 87% rename from spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml rename to spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml index 56435803e7..c01cf49f63 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_L7OYD5kmaQIMPk","request_duration_ms":312}}' + - '{"last_request_metrics":{"request_id":"req_vO8qrn7fP8cCF0","request_duration_ms":623}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:39 GMT + - Tue, 05 Dec 2023 15:17:18 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - baa8c920-ca3f-4a1f-add7-cd61de2aa73b + - b729b00d-3874-4a9a-a167-ad80c62bdd3d Original-Request: - - req_JXfsPHDK3CXUC6 + - req_e0u7KZqngYBuvc Request-Id: - - req_JXfsPHDK3CXUC6 + - req_e0u7KZqngYBuvc Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJj2IKuuB1fWySnSIE4gDTL", + "id": "pm_1OK0N8KuuB1fWySnwRv0nkLw", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701722798, + "created": 1701789438, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Mon, 04 Dec 2023 20:46:39 GMT + recorded_at: Tue, 05 Dec 2023 15:17:18 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJj2IKuuB1fWySnSIE4gDTL&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OK0N8KuuB1fWySnwRv0nkLw&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_JXfsPHDK3CXUC6","request_duration_ms":471}}' + - '{"last_request_metrics":{"request_id":"req_e0u7KZqngYBuvc","request_duration_ms":523}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:39 GMT + - Tue, 05 Dec 2023 15:17:19 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - e3350400-79eb-4616-ab1a-a899512c9266 + - 616d6aaf-0b18-4229-b7f0-e88e71c1f3e6 Original-Request: - - req_dkFhtRG9mp9N15 + - req_g7ga8UxzPmDZTK Request-Id: - - req_dkFhtRG9mp9N15 + - req_g7ga8UxzPmDZTK Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2JKuuB1fWySn2RlGpZxw", + "id": "pi_3OK0N8KuuB1fWySn237dksa3", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2JKuuB1fWySn2RlGpZxw_secret_fDCAcBHWT3Fama20zwPFFJ9AA", + "client_secret": "pi_3OK0N8KuuB1fWySn237dksa3_secret_0hY6fVElhza0Ii17uz9M4BkVH", "confirmation_method": "automatic", - "created": 1701722799, + "created": 1701789438, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2IKuuB1fWySnSIE4gDTL", + "payment_method": "pm_1OK0N8KuuB1fWySnwRv0nkLw", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:39 GMT + recorded_at: Tue, 05 Dec 2023 15:17:18 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2JKuuB1fWySn2RlGpZxw/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0N8KuuB1fWySn237dksa3/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_dkFhtRG9mp9N15","request_duration_ms":411}}' + - '{"last_request_metrics":{"request_id":"req_g7ga8UxzPmDZTK","request_duration_ms":570}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:40 GMT + - Tue, 05 Dec 2023 15:17:20 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - a78d843f-e267-41fd-838e-34b22d48c66e + - 4e1c8b16-a750-40b8-b661-6f25e66819b1 Original-Request: - - req_aBXrqitnoYPiRa + - req_P0I7UxOILotUnA Request-Id: - - req_aBXrqitnoYPiRa + - req_P0I7UxOILotUnA Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2JKuuB1fWySn2RlGpZxw", + "id": "pi_3OK0N8KuuB1fWySn237dksa3", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2JKuuB1fWySn2RlGpZxw_secret_fDCAcBHWT3Fama20zwPFFJ9AA", + "client_secret": "pi_3OK0N8KuuB1fWySn237dksa3_secret_0hY6fVElhza0Ii17uz9M4BkVH", "confirmation_method": "automatic", - "created": 1701722799, + "created": 1701789438, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2JKuuB1fWySn23b1nTwA", + "latest_charge": "ch_3OK0N8KuuB1fWySn250dE2fd", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2IKuuB1fWySnSIE4gDTL", + "payment_method": "pm_1OK0N8KuuB1fWySnwRv0nkLw", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:40 GMT + recorded_at: Tue, 05 Dec 2023 15:17:19 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OJj2JKuuB1fWySn2RlGpZxw + uri: https://api.stripe.com/v1/payment_intents/pi_3OK0N8KuuB1fWySn237dksa3 body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_aBXrqitnoYPiRa","request_duration_ms":1014}}' + - '{"last_request_metrics":{"request_id":"req_P0I7UxOILotUnA","request_duration_ms":1055}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Mon, 04 Dec 2023 20:46:41 GMT + - Tue, 05 Dec 2023 15:17:20 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_HnAxMcQcRahsXX + - req_ZkA8ZCo5ERur3x Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJj2JKuuB1fWySn2RlGpZxw", + "id": "pi_3OK0N8KuuB1fWySn237dksa3", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJj2JKuuB1fWySn2RlGpZxw_secret_fDCAcBHWT3Fama20zwPFFJ9AA", + "client_secret": "pi_3OK0N8KuuB1fWySn237dksa3_secret_0hY6fVElhza0Ii17uz9M4BkVH", "confirmation_method": "automatic", - "created": 1701722799, + "created": 1701789438, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OJj2JKuuB1fWySn23b1nTwA", + "latest_charge": "ch_3OK0N8KuuB1fWySn250dE2fd", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJj2IKuuB1fWySnSIE4gDTL", + "payment_method": "pm_1OK0N8KuuB1fWySnwRv0nkLw", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,5 +513,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 04 Dec 2023 20:46:41 GMT + recorded_at: Tue, 05 Dec 2023 15:17:20 GMT recorded_with: VCR 6.2.0 diff --git a/spec/lib/stripe/payment_intent_validator_spec.rb b/spec/lib/stripe/payment_intent_validator_spec.rb index c9ed83ada3..b37a5527f7 100644 --- a/spec/lib/stripe/payment_intent_validator_spec.rb +++ b/spec/lib/stripe/payment_intent_validator_spec.rb @@ -60,11 +60,22 @@ describe Stripe::PaymentIntentValidator do expect(result).to eq payment_intent_response_body }.to_not raise_error Stripe::StripeError end + + it "captures the payment" do + expect(Stripe::PaymentIntent.retrieve( + payment_intent.id + ).status).to eq("requires_capture") + + Stripe::PaymentIntent.capture(payment_intent.id) + + expect(Stripe::PaymentIntent.retrieve( + payment_intent.id + ).status).to eq("succeeded") + end end end - context "valid credit cards are correctly handled" do - it_behaves_like "payments intents", "Authenticate unless set up", 4_000_002_500_003_155 + context "valid non-3D credit cards are correctly handled" do it_behaves_like "payments intents", "Visa", 4_242_424_242_424_242 it_behaves_like "payments intents", "Visa (debit)", 4_000_056_655_665_556 it_behaves_like "payments intents", "Mastercard", 5_555_555_555_554_444 From 3802447bfe06c05c92e482658d6274a64dd2f2c6 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Thu, 7 Dec 2023 18:25:57 +0000 Subject: [PATCH 3/3] Removes credit card mock, pointing to real Stripe object Re-records cassettes after source change --- .../captures_the_payment.yml | 215 ++++++++++++++++++ ...t_intent_last_payment_error_as_message.yml | 92 ++++---- .../captures_the_payment.yml | 215 ++++++++++++++++++ ...t_intent_last_payment_error_as_message.yml | 92 ++++---- .../captures_the_payment.yml | 213 +++++++++++++++++ ...t_intent_last_payment_error_as_message.yml | 92 ++++---- .../captures_the_payment.yml | 215 ++++++++++++++++++ ...t_intent_last_payment_error_as_message.yml | 92 ++++---- .../captures_the_payment.yml | 215 ++++++++++++++++++ ...t_intent_last_payment_error_as_message.yml | 92 ++++---- .../captures_the_payment.yml | 215 ++++++++++++++++++ ...t_intent_last_payment_error_as_message.yml | 92 ++++---- .../captures_the_payment.yml | 215 ++++++++++++++++++ ...t_intent_last_payment_error_as_message.yml | 92 ++++---- .../captures_the_payment.yml | 215 ++++++++++++++++++ ...t_intent_last_payment_error_as_message.yml | 92 ++++---- .../captures_the_payment.yml | 126 +++++----- ...s_payment_intent_id_and_does_not_raise.yml | 188 +++------------ .../captures_the_payment.yml | 126 +++++----- ...s_payment_intent_id_and_does_not_raise.yml | 188 +++------------ .../from_Diners_Club/captures_the_payment.yml | 126 +++++----- ...s_payment_intent_id_and_does_not_raise.yml | 188 +++------------ .../captures_the_payment.yml | 126 +++++----- ...s_payment_intent_id_and_does_not_raise.yml | 188 +++------------ .../from_Discover/captures_the_payment.yml | 126 +++++----- ...s_payment_intent_id_and_does_not_raise.yml | 188 +++------------ .../captures_the_payment.yml | 126 +++++----- ...s_payment_intent_id_and_does_not_raise.yml | 188 +++------------ .../from_JCB/captures_the_payment.yml | 126 +++++----- ...s_payment_intent_id_and_does_not_raise.yml | 188 +++------------ .../from_Mastercard/captures_the_payment.yml | 126 +++++----- ...s_payment_intent_id_and_does_not_raise.yml | 188 +++------------ .../captures_the_payment.yml | 126 +++++----- ...s_payment_intent_id_and_does_not_raise.yml | 188 +++------------ .../captures_the_payment.yml | 126 +++++----- ...s_payment_intent_id_and_does_not_raise.yml | 188 +++------------ .../captures_the_payment.yml | 126 +++++----- ...s_payment_intent_id_and_does_not_raise.yml | 188 +++------------ .../from_UnionPay/captures_the_payment.yml | 126 +++++----- ...s_payment_intent_id_and_does_not_raise.yml | 188 +++------------ .../captures_the_payment.yml | 126 +++++----- ...s_payment_intent_id_and_does_not_raise.yml | 188 +++------------ .../captures_the_payment.yml | 126 +++++----- ...s_payment_intent_id_and_does_not_raise.yml | 188 +++------------ .../from_Visa/captures_the_payment.yml | 126 +++++----- ...s_payment_intent_id_and_does_not_raise.yml | 186 +++------------ .../from_Visa_debit_/captures_the_payment.yml | 126 +++++----- ...s_payment_intent_id_and_does_not_raise.yml | 188 +++------------ .../stripe/payment_intent_validator_spec.rb | 4 +- 49 files changed, 3591 insertions(+), 3889 deletions(-) create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Exceeding_velocity_limit_decline/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Expired_card_decline/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Generic_decline/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Incorrect_CVC_decline/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Insufficient_funds_decline/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Lost_card_decline/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Processing_error_decline/captures_the_payment.yml create mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Stolen_card_decline/captures_the_payment.yml diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Exceeding_velocity_limit_decline/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Exceeding_velocity_limit_decline/captures_the_payment.yml new file mode 100644 index 0000000000..2d7f8363c2 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Exceeding_velocity_limit_decline/captures_the_payment.yml @@ -0,0 +1,215 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000000000006975&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_HN2bV70M1gVOpL","request_duration_ms":593}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 12:40:48 GMT + Content-Type: + - application/json + Content-Length: + - '931' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 87dd26fc-c3ea-4821-8d28-7717dd8dd10d + Original-Request: + - req_HT0fDVCQVPLYvs + Request-Id: + - req_HT0fDVCQVPLYvs + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJxvfKuuB1fWySnDzSF1su6", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "WoxwxVPUPcg0EjXW", + "funding": "credit", + "generated_from": null, + "last4": "6975", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701780048, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 12:40:48 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/payment_intent.id/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_HT0fDVCQVPLYvs","request_duration_ms":594}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 404 + message: Not Found + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 12:40:48 GMT + Content-Type: + - application/json + Content-Length: + - '342' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 5bdcd456-bb6f-4728-bea2-ff3a25c4f703 + Original-Request: + - req_NxcSrSSuXLMemB + Request-Id: + - req_NxcSrSSuXLMemB + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: | + { + "error": { + "code": "resource_missing", + "doc_url": "https://stripe.com/docs/error-codes/resource-missing", + "message": "No such payment_intent: 'payment_intent.id'", + "param": "intent", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_NxcSrSSuXLMemB?t=1701780048", + "type": "invalid_request_error" + } + } + recorded_at: Tue, 05 Dec 2023 12:40:48 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Exceeding_velocity_limit_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Exceeding_velocity_limit_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml index 7c3c2c1f93..e1cdb824ed 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Exceeding_velocity_limit_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Exceeding_velocity_limit_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -14,14 +14,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_D5ptSBHj23IjUE","request_duration_ms":408}}' + - '{"last_request_metrics":{"request_id":"req_Vihel6UGT7nLhb","request_duration_ms":518}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:54 GMT + - Thu, 07 Dec 2023 18:29:33 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 759821e8-8859-4b39-b85a-70771a71b950 + - 3d289763-2fdb-41c5-bc6f-8d3c42206307 Original-Request: - - req_l2zKCNooZyf2th + - req_ZzlzNlUqSEjw0m Request-Id: - - req_l2zKCNooZyf2th + - req_ZzlzNlUqSEjw0m Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJPWsKuuB1fWySnVwO5eWL5", + "id": "pm_1OKmKHKuuB1fWySngoXt39A8", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701647814, + "created": 1701973773, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Sun, 03 Dec 2023 23:56:54 GMT + recorded_at: Thu, 07 Dec 2023 18:29:33 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJPWsKuuB1fWySnVwO5eWL5&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmKHKuuB1fWySngoXt39A8&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,14 +139,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_l2zKCNooZyf2th","request_duration_ms":498}}' + - '{"last_request_metrics":{"request_id":"req_ZzlzNlUqSEjw0m","request_duration_ms":491}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:55 GMT + - Thu, 07 Dec 2023 18:29:33 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - fc40bcc2-459f-4393-9535-2f06d242c34f + - 42b52906-7278-4710-9760-eb37d781a6ef Original-Request: - - req_0rzygoslpXi9qk + - req_VKyyvoNL9tr3YX Request-Id: - - req_0rzygoslpXi9qk + - req_VKyyvoNL9tr3YX Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJPWtKuuB1fWySn221ckSMT", + "id": "pi_3OKmKHKuuB1fWySn05ajIIb6", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJPWtKuuB1fWySn221ckSMT_secret_9bvyw60lulsujNmdfcgcalrrv", + "client_secret": "pi_3OKmKHKuuB1fWySn05ajIIb6_secret_EqDGo6BuJoD96VwJabcjWX5Oi", "confirmation_method": "automatic", - "created": 1701647815, + "created": 1701973773, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJPWsKuuB1fWySnVwO5eWL5", + "payment_method": "pm_1OKmKHKuuB1fWySngoXt39A8", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Sun, 03 Dec 2023 23:56:55 GMT + recorded_at: Thu, 07 Dec 2023 18:29:34 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJPWtKuuB1fWySn221ckSMT/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmKHKuuB1fWySn05ajIIb6/confirm body: encoding: US-ASCII string: '' @@ -270,14 +270,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_0rzygoslpXi9qk","request_duration_ms":510}}' + - '{"last_request_metrics":{"request_id":"req_VKyyvoNL9tr3YX","request_duration_ms":414}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:56 GMT + - Thu, 07 Dec 2023 18:29:35 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 5a553b05-552f-4f61-a928-87c6698ae7db + - e344a637-d7d5-4970-9060-77bfc8f6ad52 Original-Request: - - req_xZctRZh3XbCjGO + - req_IueMGbIxsCHLXq Request-Id: - - req_xZctRZh3XbCjGO + - req_IueMGbIxsCHLXq Stripe-Should-Retry: - 'false' Stripe-Version: @@ -336,13 +336,13 @@ http_interactions: string: | { "error": { - "charge": "ch_3OJPWtKuuB1fWySn2QgmILjv", + "charge": "ch_3OKmKHKuuB1fWySn0Zni6lIk", "code": "card_declined", "decline_code": "card_velocity_exceeded", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined for making repeated attempts too frequently or exceeding its amount limit.", "payment_intent": { - "id": "pi_3OJPWtKuuB1fWySn221ckSMT", + "id": "pi_3OKmKHKuuB1fWySn05ajIIb6", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -357,21 +357,21 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJPWtKuuB1fWySn221ckSMT_secret_9bvyw60lulsujNmdfcgcalrrv", + "client_secret": "pi_3OKmKHKuuB1fWySn05ajIIb6_secret_EqDGo6BuJoD96VwJabcjWX5Oi", "confirmation_method": "automatic", - "created": 1701647815, + "created": 1701973773, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": { - "charge": "ch_3OJPWtKuuB1fWySn2QgmILjv", + "charge": "ch_3OKmKHKuuB1fWySn0Zni6lIk", "code": "card_declined", "decline_code": "card_velocity_exceeded", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined for making repeated attempts too frequently or exceeding its amount limit.", "payment_method": { - "id": "pm_1OJPWsKuuB1fWySnVwO5eWL5", + "id": "pm_1OKmKHKuuB1fWySngoXt39A8", "object": "payment_method", "billing_details": { "address": { @@ -411,7 +411,7 @@ http_interactions: }, "wallet": null }, - "created": 1701647814, + "created": 1701973773, "customer": null, "livemode": false, "metadata": { @@ -420,7 +420,7 @@ http_interactions: }, "type": "card_error" }, - "latest_charge": "ch_3OJPWtKuuB1fWySn2QgmILjv", + "latest_charge": "ch_3OKmKHKuuB1fWySn0Zni6lIk", "livemode": false, "metadata": { }, @@ -452,7 +452,7 @@ http_interactions: "transfer_group": null }, "payment_method": { - "id": "pm_1OJPWsKuuB1fWySnVwO5eWL5", + "id": "pm_1OKmKHKuuB1fWySngoXt39A8", "object": "payment_method", "billing_details": { "address": { @@ -492,16 +492,16 @@ http_interactions: }, "wallet": null }, - "created": 1701647814, + "created": 1701973773, "customer": null, "livemode": false, "metadata": { }, "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_xZctRZh3XbCjGO?t=1701647815", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_IueMGbIxsCHLXq?t=1701973774", "type": "card_error" } } - recorded_at: Sun, 03 Dec 2023 23:56:56 GMT + recorded_at: Thu, 07 Dec 2023 18:29:35 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Expired_card_decline/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Expired_card_decline/captures_the_payment.yml new file mode 100644 index 0000000000..b4d5f768a8 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Expired_card_decline/captures_the_payment.yml @@ -0,0 +1,215 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000000000000069&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_OITsgm0ufJ3r7v","request_duration_ms":436}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 12:40:45 GMT + Content-Type: + - application/json + Content-Length: + - '931' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - e439579c-df38-48ee-9526-b449001e9561 + Original-Request: + - req_L1wxUG2ScHFHCu + Request-Id: + - req_L1wxUG2ScHFHCu + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJxvcKuuB1fWySnOPEXWfHM", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "qpQikrTL7IyNA2rE", + "funding": "credit", + "generated_from": null, + "last4": "0069", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701780045, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 12:40:45 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/payment_intent.id/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_L1wxUG2ScHFHCu","request_duration_ms":492}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 404 + message: Not Found + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 12:40:45 GMT + Content-Type: + - application/json + Content-Length: + - '342' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - ceab10c9-f8a9-4995-a600-1291c630dac4 + Original-Request: + - req_Mjo8XKi9hIX5FT + Request-Id: + - req_Mjo8XKi9hIX5FT + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: | + { + "error": { + "code": "resource_missing", + "doc_url": "https://stripe.com/docs/error-codes/resource-missing", + "message": "No such payment_intent: 'payment_intent.id'", + "param": "intent", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_Mjo8XKi9hIX5FT?t=1701780045", + "type": "invalid_request_error" + } + } + recorded_at: Tue, 05 Dec 2023 12:40:45 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Expired_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Expired_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml index d2ffd45fbf..ba1af0f7e7 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Expired_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Expired_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -14,14 +14,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_HHLwPDme4T8e5a","request_duration_ms":508}}' + - '{"last_request_metrics":{"request_id":"req_rKvwlh3lQupFaR","request_duration_ms":623}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:48 GMT + - Thu, 07 Dec 2023 18:29:27 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 0073c743-14b8-42fe-ac66-ae2123debeac + - e087be7b-f4ba-43b4-91e0-7e44fd308081 Original-Request: - - req_eGrCNHCK1BRVF5 + - req_6bwOuq8EC4FbSL Request-Id: - - req_eGrCNHCK1BRVF5 + - req_6bwOuq8EC4FbSL Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJPWmKuuB1fWySn9ULltFdF", + "id": "pm_1OKmKBKuuB1fWySnmFehfnKn", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701647808, + "created": 1701973767, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Sun, 03 Dec 2023 23:56:49 GMT + recorded_at: Thu, 07 Dec 2023 18:29:27 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJPWmKuuB1fWySn9ULltFdF&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmKBKuuB1fWySnmFehfnKn&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,14 +139,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_eGrCNHCK1BRVF5","request_duration_ms":501}}' + - '{"last_request_metrics":{"request_id":"req_6bwOuq8EC4FbSL","request_duration_ms":445}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:49 GMT + - Thu, 07 Dec 2023 18:29:27 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 7b6176b7-f745-4e59-b31d-9405ca740208 + - cefd851c-b607-45e1-8e03-e780902a71e5 Original-Request: - - req_XP5lZ4B7xbSO70 + - req_hgcZm0ulCQ6RwH Request-Id: - - req_XP5lZ4B7xbSO70 + - req_hgcZm0ulCQ6RwH Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJPWnKuuB1fWySn28qr8gJg", + "id": "pi_3OKmKBKuuB1fWySn0FJeKKvv", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJPWnKuuB1fWySn28qr8gJg_secret_aB02g7vByFUhXmSQel4L9ZDqh", + "client_secret": "pi_3OKmKBKuuB1fWySn0FJeKKvv_secret_LmHL0WXzFWe0av2JnU04eMQlr", "confirmation_method": "automatic", - "created": 1701647809, + "created": 1701973767, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJPWmKuuB1fWySn9ULltFdF", + "payment_method": "pm_1OKmKBKuuB1fWySnmFehfnKn", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Sun, 03 Dec 2023 23:56:49 GMT + recorded_at: Thu, 07 Dec 2023 18:29:27 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJPWnKuuB1fWySn28qr8gJg/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmKBKuuB1fWySn0FJeKKvv/confirm body: encoding: US-ASCII string: '' @@ -270,14 +270,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_XP5lZ4B7xbSO70","request_duration_ms":508}}' + - '{"last_request_metrics":{"request_id":"req_hgcZm0ulCQ6RwH","request_duration_ms":394}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:50 GMT + - Thu, 07 Dec 2023 18:29:28 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 5ca06732-4e65-465e-9e09-003e7fe918f5 + - eed7456a-eb6e-4145-bf56-7de107026d0e Original-Request: - - req_xOOV8TewpisAeY + - req_3KLgLHTST3cbvq Request-Id: - - req_xOOV8TewpisAeY + - req_3KLgLHTST3cbvq Stripe-Should-Retry: - 'false' Stripe-Version: @@ -336,13 +336,13 @@ http_interactions: string: | { "error": { - "charge": "ch_3OJPWnKuuB1fWySn2wrWuncf", + "charge": "ch_3OKmKBKuuB1fWySn0pIk3CUX", "code": "expired_card", "doc_url": "https://stripe.com/docs/error-codes/expired-card", "message": "Your card has expired.", "param": "exp_month", "payment_intent": { - "id": "pi_3OJPWnKuuB1fWySn28qr8gJg", + "id": "pi_3OKmKBKuuB1fWySn0FJeKKvv", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -357,21 +357,21 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJPWnKuuB1fWySn28qr8gJg_secret_aB02g7vByFUhXmSQel4L9ZDqh", + "client_secret": "pi_3OKmKBKuuB1fWySn0FJeKKvv_secret_LmHL0WXzFWe0av2JnU04eMQlr", "confirmation_method": "automatic", - "created": 1701647809, + "created": 1701973767, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": { - "charge": "ch_3OJPWnKuuB1fWySn2wrWuncf", + "charge": "ch_3OKmKBKuuB1fWySn0pIk3CUX", "code": "expired_card", "doc_url": "https://stripe.com/docs/error-codes/expired-card", "message": "Your card has expired.", "param": "exp_month", "payment_method": { - "id": "pm_1OJPWmKuuB1fWySn9ULltFdF", + "id": "pm_1OKmKBKuuB1fWySnmFehfnKn", "object": "payment_method", "billing_details": { "address": { @@ -411,7 +411,7 @@ http_interactions: }, "wallet": null }, - "created": 1701647808, + "created": 1701973767, "customer": null, "livemode": false, "metadata": { @@ -420,7 +420,7 @@ http_interactions: }, "type": "card_error" }, - "latest_charge": "ch_3OJPWnKuuB1fWySn2wrWuncf", + "latest_charge": "ch_3OKmKBKuuB1fWySn0pIk3CUX", "livemode": false, "metadata": { }, @@ -452,7 +452,7 @@ http_interactions: "transfer_group": null }, "payment_method": { - "id": "pm_1OJPWmKuuB1fWySn9ULltFdF", + "id": "pm_1OKmKBKuuB1fWySnmFehfnKn", "object": "payment_method", "billing_details": { "address": { @@ -492,16 +492,16 @@ http_interactions: }, "wallet": null }, - "created": 1701647808, + "created": 1701973767, "customer": null, "livemode": false, "metadata": { }, "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_xOOV8TewpisAeY?t=1701647809", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_3KLgLHTST3cbvq?t=1701973767", "type": "card_error" } } - recorded_at: Sun, 03 Dec 2023 23:56:50 GMT + recorded_at: Thu, 07 Dec 2023 18:29:28 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Generic_decline/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Generic_decline/captures_the_payment.yml new file mode 100644 index 0000000000..dab6421ab1 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Generic_decline/captures_the_payment.yml @@ -0,0 +1,213 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000000000000002&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 12:40:41 GMT + Content-Type: + - application/json + Content-Length: + - '931' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 18e731ac-77e0-4a5f-944d-62c1356f84b2 + Original-Request: + - req_IGDhPb0FpOw9S9 + Request-Id: + - req_IGDhPb0FpOw9S9 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJxvZKuuB1fWySnAxHQzHMU", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "IKC2ubfpSLuZKsVs", + "funding": "credit", + "generated_from": null, + "last4": "0002", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701780041, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 12:40:41 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/payment_intent.id/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_IGDhPb0FpOw9S9","request_duration_ms":925}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 404 + message: Not Found + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 12:40:41 GMT + Content-Type: + - application/json + Content-Length: + - '342' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 21912630-4227-4c88-a12d-42acd17566b6 + Original-Request: + - req_65Iap7JNbiJHKx + Request-Id: + - req_65Iap7JNbiJHKx + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: | + { + "error": { + "code": "resource_missing", + "doc_url": "https://stripe.com/docs/error-codes/resource-missing", + "message": "No such payment_intent: 'payment_intent.id'", + "param": "intent", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_65Iap7JNbiJHKx?t=1701780041", + "type": "invalid_request_error" + } + } + recorded_at: Tue, 05 Dec 2023 12:40:41 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Generic_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Generic_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml index 7bce25457a..32b21a1b5b 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Generic_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Generic_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -14,14 +14,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_icnFZXbIUY8Jy4","request_duration_ms":404}}' + - '{"last_request_metrics":{"request_id":"req_lwQRHFtJffzrsQ","request_duration_ms":391}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:40 GMT + - Thu, 07 Dec 2023 18:29:18 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - a427cec7-6af5-4c46-8206-b1f13808b3db + - 669efd40-7f1b-47f6-83dd-fb79390a9d48 Original-Request: - - req_24dumky1SqM65d + - req_sMaXqJaA6gftRm Request-Id: - - req_24dumky1SqM65d + - req_sMaXqJaA6gftRm Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJPWeKuuB1fWySnuUuHd6sG", + "id": "pm_1OKmK2KuuB1fWySnMxyq4XDT", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701647800, + "created": 1701973758, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Sun, 03 Dec 2023 23:56:41 GMT + recorded_at: Thu, 07 Dec 2023 18:29:18 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJPWeKuuB1fWySnuUuHd6sG&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmK2KuuB1fWySnMxyq4XDT&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,14 +139,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_24dumky1SqM65d","request_duration_ms":443}}' + - '{"last_request_metrics":{"request_id":"req_sMaXqJaA6gftRm","request_duration_ms":486}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:41 GMT + - Thu, 07 Dec 2023 18:29:19 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - e844f2be-8ace-428c-99b5-585076567522 + - 69971d39-53eb-4925-b9ef-2e51c7b5d216 Original-Request: - - req_X1NZeaz9hVS7Nb + - req_Edc2GpFOTEcEn6 Request-Id: - - req_X1NZeaz9hVS7Nb + - req_Edc2GpFOTEcEn6 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJPWfKuuB1fWySn0A53Bdfm", + "id": "pi_3OKmK2KuuB1fWySn2QCPpACr", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJPWfKuuB1fWySn0A53Bdfm_secret_vWHSbJEkeqimHi5honsNHxS9s", + "client_secret": "pi_3OKmK2KuuB1fWySn2QCPpACr_secret_ZdjR06SfLSttDB3Px49KgUoQT", "confirmation_method": "automatic", - "created": 1701647801, + "created": 1701973758, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJPWeKuuB1fWySnuUuHd6sG", + "payment_method": "pm_1OKmK2KuuB1fWySnMxyq4XDT", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Sun, 03 Dec 2023 23:56:41 GMT + recorded_at: Thu, 07 Dec 2023 18:29:19 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJPWfKuuB1fWySn0A53Bdfm/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmK2KuuB1fWySn2QCPpACr/confirm body: encoding: US-ASCII string: '' @@ -270,14 +270,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_X1NZeaz9hVS7Nb","request_duration_ms":459}}' + - '{"last_request_metrics":{"request_id":"req_Edc2GpFOTEcEn6","request_duration_ms":415}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:42 GMT + - Thu, 07 Dec 2023 18:29:20 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 61d971c4-c392-4648-8e0e-e9548bdfe468 + - dff1392e-3bdb-4d11-b761-0a232142a10a Original-Request: - - req_ED3cDOhUtvpFNQ + - req_ZGyvH69YvR5Hsx Request-Id: - - req_ED3cDOhUtvpFNQ + - req_ZGyvH69YvR5Hsx Stripe-Should-Retry: - 'false' Stripe-Version: @@ -336,13 +336,13 @@ http_interactions: string: | { "error": { - "charge": "ch_3OJPWfKuuB1fWySn0DbK8mhB", + "charge": "ch_3OKmK2KuuB1fWySn21v5pxgY", "code": "card_declined", "decline_code": "generic_decline", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", "payment_intent": { - "id": "pi_3OJPWfKuuB1fWySn0A53Bdfm", + "id": "pi_3OKmK2KuuB1fWySn2QCPpACr", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -357,21 +357,21 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJPWfKuuB1fWySn0A53Bdfm_secret_vWHSbJEkeqimHi5honsNHxS9s", + "client_secret": "pi_3OKmK2KuuB1fWySn2QCPpACr_secret_ZdjR06SfLSttDB3Px49KgUoQT", "confirmation_method": "automatic", - "created": 1701647801, + "created": 1701973758, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": { - "charge": "ch_3OJPWfKuuB1fWySn0DbK8mhB", + "charge": "ch_3OKmK2KuuB1fWySn21v5pxgY", "code": "card_declined", "decline_code": "generic_decline", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", "payment_method": { - "id": "pm_1OJPWeKuuB1fWySnuUuHd6sG", + "id": "pm_1OKmK2KuuB1fWySnMxyq4XDT", "object": "payment_method", "billing_details": { "address": { @@ -411,7 +411,7 @@ http_interactions: }, "wallet": null }, - "created": 1701647800, + "created": 1701973758, "customer": null, "livemode": false, "metadata": { @@ -420,7 +420,7 @@ http_interactions: }, "type": "card_error" }, - "latest_charge": "ch_3OJPWfKuuB1fWySn0DbK8mhB", + "latest_charge": "ch_3OKmK2KuuB1fWySn21v5pxgY", "livemode": false, "metadata": { }, @@ -452,7 +452,7 @@ http_interactions: "transfer_group": null }, "payment_method": { - "id": "pm_1OJPWeKuuB1fWySnuUuHd6sG", + "id": "pm_1OKmK2KuuB1fWySnMxyq4XDT", "object": "payment_method", "billing_details": { "address": { @@ -492,16 +492,16 @@ http_interactions: }, "wallet": null }, - "created": 1701647800, + "created": 1701973758, "customer": null, "livemode": false, "metadata": { }, "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_ED3cDOhUtvpFNQ?t=1701647801", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_ZGyvH69YvR5Hsx?t=1701973759", "type": "card_error" } } - recorded_at: Sun, 03 Dec 2023 23:56:42 GMT + recorded_at: Thu, 07 Dec 2023 18:29:20 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Incorrect_CVC_decline/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Incorrect_CVC_decline/captures_the_payment.yml new file mode 100644 index 0000000000..eef68f5cc7 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Incorrect_CVC_decline/captures_the_payment.yml @@ -0,0 +1,215 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000000000000127&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_L1wxUG2ScHFHCu","request_duration_ms":492}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 12:40:46 GMT + Content-Type: + - application/json + Content-Length: + - '931' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - bac88e08-813f-4785-8c39-2e321cb977a7 + Original-Request: + - req_hp8pnKT4QFgYut + Request-Id: + - req_hp8pnKT4QFgYut + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJxvdKuuB1fWySn9j52EYkX", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "eWmxEL5j3bNdPnK5", + "funding": "credit", + "generated_from": null, + "last4": "0127", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701780045, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 12:40:46 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/payment_intent.id/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_hp8pnKT4QFgYut","request_duration_ms":591}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 404 + message: Not Found + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 12:40:46 GMT + Content-Type: + - application/json + Content-Length: + - '342' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 9363a1ff-08dd-4808-b4e3-445d633c3c44 + Original-Request: + - req_rhbueRscgytCUR + Request-Id: + - req_rhbueRscgytCUR + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: | + { + "error": { + "code": "resource_missing", + "doc_url": "https://stripe.com/docs/error-codes/resource-missing", + "message": "No such payment_intent: 'payment_intent.id'", + "param": "intent", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_rhbueRscgytCUR?t=1701780046", + "type": "invalid_request_error" + } + } + recorded_at: Tue, 05 Dec 2023 12:40:46 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Incorrect_CVC_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Incorrect_CVC_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml index 669b36648b..f0b6f1e890 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Incorrect_CVC_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Incorrect_CVC_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -14,14 +14,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_XP5lZ4B7xbSO70","request_duration_ms":508}}' + - '{"last_request_metrics":{"request_id":"req_hgcZm0ulCQ6RwH","request_duration_ms":394}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:51 GMT + - Thu, 07 Dec 2023 18:29:29 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 426f2ff0-7405-4198-82ea-08f07c00d3cc + - 01c95690-f11f-4e1a-9876-94e03264a02f Original-Request: - - req_KxNkKxV4U80Ipq + - req_BAyu0Il0dJhzuJ Request-Id: - - req_KxNkKxV4U80Ipq + - req_BAyu0Il0dJhzuJ Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJPWoKuuB1fWySncv0r9OTQ", + "id": "pm_1OKmKDKuuB1fWySn5FtoPPKd", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701647811, + "created": 1701973769, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Sun, 03 Dec 2023 23:56:51 GMT + recorded_at: Thu, 07 Dec 2023 18:29:29 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJPWoKuuB1fWySncv0r9OTQ&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmKDKuuB1fWySn5FtoPPKd&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,14 +139,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_KxNkKxV4U80Ipq","request_duration_ms":478}}' + - '{"last_request_metrics":{"request_id":"req_BAyu0Il0dJhzuJ","request_duration_ms":488}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:51 GMT + - Thu, 07 Dec 2023 18:29:29 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - ae7b43f2-5fdf-4ccb-b9a1-97fd6c7fa309 + - 189c1773-31f9-470f-8359-facb2390e692 Original-Request: - - req_E0hGITkzcwFnV4 + - req_4pZQ1jZwaHgmZN Request-Id: - - req_E0hGITkzcwFnV4 + - req_4pZQ1jZwaHgmZN Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJPWpKuuB1fWySn1V997EV3", + "id": "pi_3OKmKDKuuB1fWySn2Slcof3c", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJPWpKuuB1fWySn1V997EV3_secret_cKVEGknbpsn0bowp24n5avXMM", + "client_secret": "pi_3OKmKDKuuB1fWySn2Slcof3c_secret_NcYU6gN9Yxni8lyu3frZ7PdCT", "confirmation_method": "automatic", - "created": 1701647811, + "created": 1701973769, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJPWoKuuB1fWySncv0r9OTQ", + "payment_method": "pm_1OKmKDKuuB1fWySn5FtoPPKd", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Sun, 03 Dec 2023 23:56:51 GMT + recorded_at: Thu, 07 Dec 2023 18:29:29 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJPWpKuuB1fWySn1V997EV3/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmKDKuuB1fWySn2Slcof3c/confirm body: encoding: US-ASCII string: '' @@ -270,14 +270,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_E0hGITkzcwFnV4","request_duration_ms":405}}' + - '{"last_request_metrics":{"request_id":"req_4pZQ1jZwaHgmZN","request_duration_ms":518}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:52 GMT + - Thu, 07 Dec 2023 18:29:30 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 9c7c140c-3715-4f37-bff8-6bc63dabc6e7 + - 6d9cd943-5fb8-4670-9dea-49c4fa06b51d Original-Request: - - req_b63XBr7naFwld2 + - req_difXV7OkpyOP6N Request-Id: - - req_b63XBr7naFwld2 + - req_difXV7OkpyOP6N Stripe-Should-Retry: - 'false' Stripe-Version: @@ -336,13 +336,13 @@ http_interactions: string: | { "error": { - "charge": "ch_3OJPWpKuuB1fWySn1tzregij", + "charge": "ch_3OKmKDKuuB1fWySn2ZJrBTr1", "code": "incorrect_cvc", "doc_url": "https://stripe.com/docs/error-codes/incorrect-cvc", "message": "Your card's security code is incorrect.", "param": "cvc", "payment_intent": { - "id": "pi_3OJPWpKuuB1fWySn1V997EV3", + "id": "pi_3OKmKDKuuB1fWySn2Slcof3c", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -357,21 +357,21 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJPWpKuuB1fWySn1V997EV3_secret_cKVEGknbpsn0bowp24n5avXMM", + "client_secret": "pi_3OKmKDKuuB1fWySn2Slcof3c_secret_NcYU6gN9Yxni8lyu3frZ7PdCT", "confirmation_method": "automatic", - "created": 1701647811, + "created": 1701973769, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": { - "charge": "ch_3OJPWpKuuB1fWySn1tzregij", + "charge": "ch_3OKmKDKuuB1fWySn2ZJrBTr1", "code": "incorrect_cvc", "doc_url": "https://stripe.com/docs/error-codes/incorrect-cvc", "message": "Your card's security code is incorrect.", "param": "cvc", "payment_method": { - "id": "pm_1OJPWoKuuB1fWySncv0r9OTQ", + "id": "pm_1OKmKDKuuB1fWySn5FtoPPKd", "object": "payment_method", "billing_details": { "address": { @@ -411,7 +411,7 @@ http_interactions: }, "wallet": null }, - "created": 1701647811, + "created": 1701973769, "customer": null, "livemode": false, "metadata": { @@ -420,7 +420,7 @@ http_interactions: }, "type": "card_error" }, - "latest_charge": "ch_3OJPWpKuuB1fWySn1tzregij", + "latest_charge": "ch_3OKmKDKuuB1fWySn2ZJrBTr1", "livemode": false, "metadata": { }, @@ -452,7 +452,7 @@ http_interactions: "transfer_group": null }, "payment_method": { - "id": "pm_1OJPWoKuuB1fWySncv0r9OTQ", + "id": "pm_1OKmKDKuuB1fWySn5FtoPPKd", "object": "payment_method", "billing_details": { "address": { @@ -492,16 +492,16 @@ http_interactions: }, "wallet": null }, - "created": 1701647811, + "created": 1701973769, "customer": null, "livemode": false, "metadata": { }, "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_b63XBr7naFwld2?t=1701647811", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_difXV7OkpyOP6N?t=1701973770", "type": "card_error" } } - recorded_at: Sun, 03 Dec 2023 23:56:52 GMT + recorded_at: Thu, 07 Dec 2023 18:29:31 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Insufficient_funds_decline/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Insufficient_funds_decline/captures_the_payment.yml new file mode 100644 index 0000000000..0e2057aa79 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Insufficient_funds_decline/captures_the_payment.yml @@ -0,0 +1,215 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000000000009995&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_IGDhPb0FpOw9S9","request_duration_ms":925}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 12:40:42 GMT + Content-Type: + - application/json + Content-Length: + - '931' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - def3dfc8-5768-411d-bbc8-7ac8888f0b0c + Original-Request: + - req_lu9IxZvD2xwcNw + Request-Id: + - req_lu9IxZvD2xwcNw + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJxvaKuuB1fWySnhv0gWbrz", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "O0I0muUGQBJy3p73", + "funding": "credit", + "generated_from": null, + "last4": "9995", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701780042, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 12:40:42 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/payment_intent.id/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_lu9IxZvD2xwcNw","request_duration_ms":593}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 404 + message: Not Found + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 12:40:42 GMT + Content-Type: + - application/json + Content-Length: + - '342' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 5e12138a-7393-46e3-8fea-338cbcf20eb0 + Original-Request: + - req_isqZsa3hc8YX3z + Request-Id: + - req_isqZsa3hc8YX3z + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: | + { + "error": { + "code": "resource_missing", + "doc_url": "https://stripe.com/docs/error-codes/resource-missing", + "message": "No such payment_intent: 'payment_intent.id'", + "param": "intent", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_isqZsa3hc8YX3z?t=1701780042", + "type": "invalid_request_error" + } + } + recorded_at: Tue, 05 Dec 2023 12:40:43 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Insufficient_funds_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Insufficient_funds_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml index 74a315a43f..fa71c7ff20 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Insufficient_funds_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Insufficient_funds_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -14,14 +14,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_X1NZeaz9hVS7Nb","request_duration_ms":459}}' + - '{"last_request_metrics":{"request_id":"req_Edc2GpFOTEcEn6","request_duration_ms":415}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:42 GMT + - Thu, 07 Dec 2023 18:29:20 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - fbb7b09f-7a30-471f-b04b-342181d45513 + - bbe78f23-b009-4927-9653-a198ee2c41be Original-Request: - - req_AwBK2psHCIDTcT + - req_z4kmo45ZsMvF8u Request-Id: - - req_AwBK2psHCIDTcT + - req_z4kmo45ZsMvF8u Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJPWgKuuB1fWySnB2gKX2wK", + "id": "pm_1OKmK4KuuB1fWySnOpCrxsDi", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701647802, + "created": 1701973760, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Sun, 03 Dec 2023 23:56:43 GMT + recorded_at: Thu, 07 Dec 2023 18:29:20 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJPWgKuuB1fWySnB2gKX2wK&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmK4KuuB1fWySnOpCrxsDi&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,14 +139,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_AwBK2psHCIDTcT","request_duration_ms":499}}' + - '{"last_request_metrics":{"request_id":"req_z4kmo45ZsMvF8u","request_duration_ms":503}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:43 GMT + - Thu, 07 Dec 2023 18:29:21 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 61cbfa78-eeaa-40da-9c0e-5b0c9eafbe4f + - c588f80b-5ef6-4c84-a217-587ec4870282 Original-Request: - - req_fWWgVAg2XZk58v + - req_x0u3ksydIMA7dS Request-Id: - - req_fWWgVAg2XZk58v + - req_x0u3ksydIMA7dS Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJPWhKuuB1fWySn0DyDJcpY", + "id": "pi_3OKmK5KuuB1fWySn0B2Cnu5b", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJPWhKuuB1fWySn0DyDJcpY_secret_4qxjRsmGHMZ8Uv9LbIcuWWqFb", + "client_secret": "pi_3OKmK5KuuB1fWySn0B2Cnu5b_secret_7Rom2mxj0iJtfnWWk8qD5F32L", "confirmation_method": "automatic", - "created": 1701647803, + "created": 1701973761, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJPWgKuuB1fWySnB2gKX2wK", + "payment_method": "pm_1OKmK4KuuB1fWySnOpCrxsDi", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Sun, 03 Dec 2023 23:56:43 GMT + recorded_at: Thu, 07 Dec 2023 18:29:21 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJPWhKuuB1fWySn0DyDJcpY/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmK5KuuB1fWySn0B2Cnu5b/confirm body: encoding: US-ASCII string: '' @@ -270,14 +270,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_fWWgVAg2XZk58v","request_duration_ms":508}}' + - '{"last_request_metrics":{"request_id":"req_x0u3ksydIMA7dS","request_duration_ms":416}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:44 GMT + - Thu, 07 Dec 2023 18:29:22 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - e2b49f02-fa7c-4745-a9e8-6dc19d3ad1be + - 87f25cb7-1177-48c0-9b34-092d730303b2 Original-Request: - - req_BbOwq5uFABNaEy + - req_E9zUkqHUpch4Qj Request-Id: - - req_BbOwq5uFABNaEy + - req_E9zUkqHUpch4Qj Stripe-Should-Retry: - 'false' Stripe-Version: @@ -336,13 +336,13 @@ http_interactions: string: | { "error": { - "charge": "ch_3OJPWhKuuB1fWySn0nMfC9IB", + "charge": "ch_3OKmK5KuuB1fWySn00gTnjjf", "code": "card_declined", "decline_code": "insufficient_funds", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card has insufficient funds.", "payment_intent": { - "id": "pi_3OJPWhKuuB1fWySn0DyDJcpY", + "id": "pi_3OKmK5KuuB1fWySn0B2Cnu5b", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -357,21 +357,21 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJPWhKuuB1fWySn0DyDJcpY_secret_4qxjRsmGHMZ8Uv9LbIcuWWqFb", + "client_secret": "pi_3OKmK5KuuB1fWySn0B2Cnu5b_secret_7Rom2mxj0iJtfnWWk8qD5F32L", "confirmation_method": "automatic", - "created": 1701647803, + "created": 1701973761, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": { - "charge": "ch_3OJPWhKuuB1fWySn0nMfC9IB", + "charge": "ch_3OKmK5KuuB1fWySn00gTnjjf", "code": "card_declined", "decline_code": "insufficient_funds", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card has insufficient funds.", "payment_method": { - "id": "pm_1OJPWgKuuB1fWySnB2gKX2wK", + "id": "pm_1OKmK4KuuB1fWySnOpCrxsDi", "object": "payment_method", "billing_details": { "address": { @@ -411,7 +411,7 @@ http_interactions: }, "wallet": null }, - "created": 1701647802, + "created": 1701973760, "customer": null, "livemode": false, "metadata": { @@ -420,7 +420,7 @@ http_interactions: }, "type": "card_error" }, - "latest_charge": "ch_3OJPWhKuuB1fWySn0nMfC9IB", + "latest_charge": "ch_3OKmK5KuuB1fWySn00gTnjjf", "livemode": false, "metadata": { }, @@ -452,7 +452,7 @@ http_interactions: "transfer_group": null }, "payment_method": { - "id": "pm_1OJPWgKuuB1fWySnB2gKX2wK", + "id": "pm_1OKmK4KuuB1fWySnOpCrxsDi", "object": "payment_method", "billing_details": { "address": { @@ -492,16 +492,16 @@ http_interactions: }, "wallet": null }, - "created": 1701647802, + "created": 1701973760, "customer": null, "livemode": false, "metadata": { }, "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_BbOwq5uFABNaEy?t=1701647803", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_E9zUkqHUpch4Qj?t=1701973761", "type": "card_error" } } - recorded_at: Sun, 03 Dec 2023 23:56:44 GMT + recorded_at: Thu, 07 Dec 2023 18:29:22 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Lost_card_decline/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Lost_card_decline/captures_the_payment.yml new file mode 100644 index 0000000000..0fcc4c0974 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Lost_card_decline/captures_the_payment.yml @@ -0,0 +1,215 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000000000009987&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_lu9IxZvD2xwcNw","request_duration_ms":593}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 12:40:43 GMT + Content-Type: + - application/json + Content-Length: + - '931' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 042b4260-79ca-4029-9dd6-3b7288074f20 + Original-Request: + - req_5WMYfjplNUrxJ0 + Request-Id: + - req_5WMYfjplNUrxJ0 + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJxvbKuuB1fWySnBP8k9Z0l", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "hMDekBwrnWL1oLxe", + "funding": "credit", + "generated_from": null, + "last4": "9987", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701780043, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 12:40:43 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/payment_intent.id/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_5WMYfjplNUrxJ0","request_duration_ms":495}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 404 + message: Not Found + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 12:40:43 GMT + Content-Type: + - application/json + Content-Length: + - '342' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 0035a247-dd1f-40b0-8956-a3b7b9dd4372 + Original-Request: + - req_jS5w3BRQKzWg2L + Request-Id: + - req_jS5w3BRQKzWg2L + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: | + { + "error": { + "code": "resource_missing", + "doc_url": "https://stripe.com/docs/error-codes/resource-missing", + "message": "No such payment_intent: 'payment_intent.id'", + "param": "intent", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_jS5w3BRQKzWg2L?t=1701780043", + "type": "invalid_request_error" + } + } + recorded_at: Tue, 05 Dec 2023 12:40:43 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Lost_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Lost_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml index 245017910c..87527e7351 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Lost_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Lost_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -14,14 +14,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_fWWgVAg2XZk58v","request_duration_ms":508}}' + - '{"last_request_metrics":{"request_id":"req_x0u3ksydIMA7dS","request_duration_ms":416}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:44 GMT + - Thu, 07 Dec 2023 18:29:22 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 3d0e34d1-0d23-4416-b718-6b019b539792 + - a9d8d6da-619c-489a-93d3-2a04f51b0c0e Original-Request: - - req_lzKqd5Wp0tAgzD + - req_UQHsuBraWOh7A9 Request-Id: - - req_lzKqd5Wp0tAgzD + - req_UQHsuBraWOh7A9 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJPWiKuuB1fWySnlD5zueaP", + "id": "pm_1OKmK6KuuB1fWySnHXSHAdVZ", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701647804, + "created": 1701973762, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Sun, 03 Dec 2023 23:56:45 GMT + recorded_at: Thu, 07 Dec 2023 18:29:22 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJPWiKuuB1fWySnlD5zueaP&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmK6KuuB1fWySnHXSHAdVZ&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,14 +139,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_lzKqd5Wp0tAgzD","request_duration_ms":502}}' + - '{"last_request_metrics":{"request_id":"req_UQHsuBraWOh7A9","request_duration_ms":490}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:45 GMT + - Thu, 07 Dec 2023 18:29:23 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 479bace4-4814-44cf-89c1-70e9e3d8b2b3 + - 31528306-f1cb-429f-afb5-891bbaff61f5 Original-Request: - - req_Xin0QLkjWsO6xs + - req_yUdUaiTwyvQZFc Request-Id: - - req_Xin0QLkjWsO6xs + - req_yUdUaiTwyvQZFc Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJPWjKuuB1fWySn1wC7ojD9", + "id": "pi_3OKmK7KuuB1fWySn2NsWOtN1", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJPWjKuuB1fWySn1wC7ojD9_secret_upou0iFRqslQbItb3lhC3dF5W", + "client_secret": "pi_3OKmK7KuuB1fWySn2NsWOtN1_secret_tJtddiPCCDox3ZwBB3uxaUgSn", "confirmation_method": "automatic", - "created": 1701647805, + "created": 1701973763, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJPWiKuuB1fWySnlD5zueaP", + "payment_method": "pm_1OKmK6KuuB1fWySnHXSHAdVZ", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Sun, 03 Dec 2023 23:56:45 GMT + recorded_at: Thu, 07 Dec 2023 18:29:23 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJPWjKuuB1fWySn1wC7ojD9/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmK7KuuB1fWySn2NsWOtN1/confirm body: encoding: US-ASCII string: '' @@ -270,14 +270,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Xin0QLkjWsO6xs","request_duration_ms":508}}' + - '{"last_request_metrics":{"request_id":"req_yUdUaiTwyvQZFc","request_duration_ms":517}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:46 GMT + - Thu, 07 Dec 2023 18:29:24 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 5fc94e97-c13c-4bab-a5b6-27322a9ae4d1 + - 77e8b899-dd18-4f5c-a3df-17c667da2f8e Original-Request: - - req_vGk79GKbs2i5E9 + - req_v0nNrdX6LTijGV Request-Id: - - req_vGk79GKbs2i5E9 + - req_v0nNrdX6LTijGV Stripe-Should-Retry: - 'false' Stripe-Version: @@ -336,13 +336,13 @@ http_interactions: string: | { "error": { - "charge": "ch_3OJPWjKuuB1fWySn1SZZ0Q41", + "charge": "ch_3OKmK7KuuB1fWySn2JGX5kDG", "code": "card_declined", "decline_code": "lost_card", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", "payment_intent": { - "id": "pi_3OJPWjKuuB1fWySn1wC7ojD9", + "id": "pi_3OKmK7KuuB1fWySn2NsWOtN1", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -357,21 +357,21 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJPWjKuuB1fWySn1wC7ojD9_secret_upou0iFRqslQbItb3lhC3dF5W", + "client_secret": "pi_3OKmK7KuuB1fWySn2NsWOtN1_secret_tJtddiPCCDox3ZwBB3uxaUgSn", "confirmation_method": "automatic", - "created": 1701647805, + "created": 1701973763, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": { - "charge": "ch_3OJPWjKuuB1fWySn1SZZ0Q41", + "charge": "ch_3OKmK7KuuB1fWySn2JGX5kDG", "code": "card_declined", "decline_code": "lost_card", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", "payment_method": { - "id": "pm_1OJPWiKuuB1fWySnlD5zueaP", + "id": "pm_1OKmK6KuuB1fWySnHXSHAdVZ", "object": "payment_method", "billing_details": { "address": { @@ -411,7 +411,7 @@ http_interactions: }, "wallet": null }, - "created": 1701647804, + "created": 1701973762, "customer": null, "livemode": false, "metadata": { @@ -420,7 +420,7 @@ http_interactions: }, "type": "card_error" }, - "latest_charge": "ch_3OJPWjKuuB1fWySn1SZZ0Q41", + "latest_charge": "ch_3OKmK7KuuB1fWySn2JGX5kDG", "livemode": false, "metadata": { }, @@ -452,7 +452,7 @@ http_interactions: "transfer_group": null }, "payment_method": { - "id": "pm_1OJPWiKuuB1fWySnlD5zueaP", + "id": "pm_1OKmK6KuuB1fWySnHXSHAdVZ", "object": "payment_method", "billing_details": { "address": { @@ -492,16 +492,16 @@ http_interactions: }, "wallet": null }, - "created": 1701647804, + "created": 1701973762, "customer": null, "livemode": false, "metadata": { }, "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_vGk79GKbs2i5E9?t=1701647805", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_v0nNrdX6LTijGV?t=1701973763", "type": "card_error" } } - recorded_at: Sun, 03 Dec 2023 23:56:46 GMT + recorded_at: Thu, 07 Dec 2023 18:29:24 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Processing_error_decline/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Processing_error_decline/captures_the_payment.yml new file mode 100644 index 0000000000..57511559ec --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Processing_error_decline/captures_the_payment.yml @@ -0,0 +1,215 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000000000000119&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_hp8pnKT4QFgYut","request_duration_ms":591}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 12:40:47 GMT + Content-Type: + - application/json + Content-Length: + - '931' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - e1853a52-775e-4507-af77-c3a2fe6544e4 + Original-Request: + - req_HN2bV70M1gVOpL + Request-Id: + - req_HN2bV70M1gVOpL + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJxveKuuB1fWySn5Fe6GNFo", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "9HWWxe4EyniQy61z", + "funding": "credit", + "generated_from": null, + "last4": "0119", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701780047, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 12:40:47 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/payment_intent.id/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_HN2bV70M1gVOpL","request_duration_ms":593}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 404 + message: Not Found + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 12:40:47 GMT + Content-Type: + - application/json + Content-Length: + - '342' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 3122df3d-e476-4d31-b08e-6ef72ee8fa16 + Original-Request: + - req_RSNQKKwBzZyBuT + Request-Id: + - req_RSNQKKwBzZyBuT + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: | + { + "error": { + "code": "resource_missing", + "doc_url": "https://stripe.com/docs/error-codes/resource-missing", + "message": "No such payment_intent: 'payment_intent.id'", + "param": "intent", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_RSNQKKwBzZyBuT?t=1701780047", + "type": "invalid_request_error" + } + } + recorded_at: Tue, 05 Dec 2023 12:40:47 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Processing_error_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Processing_error_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml index 3fe13f3707..f26b85e204 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Processing_error_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Processing_error_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -14,14 +14,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_E0hGITkzcwFnV4","request_duration_ms":405}}' + - '{"last_request_metrics":{"request_id":"req_4pZQ1jZwaHgmZN","request_duration_ms":518}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:53 GMT + - Thu, 07 Dec 2023 18:29:31 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 68a35a03-943c-4000-8f10-3c1ae418add8 + - 5dfda20c-4f84-4bed-beda-c886a9dc67fc Original-Request: - - req_KINDdOrlJDMpyn + - req_3IEMQjweLQkzxH Request-Id: - - req_KINDdOrlJDMpyn + - req_3IEMQjweLQkzxH Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJPWqKuuB1fWySnK6hwOzS0", + "id": "pm_1OKmKFKuuB1fWySnS8jCZmUu", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701647812, + "created": 1701973771, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Sun, 03 Dec 2023 23:56:53 GMT + recorded_at: Thu, 07 Dec 2023 18:29:31 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJPWqKuuB1fWySnK6hwOzS0&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmKFKuuB1fWySnS8jCZmUu&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,14 +139,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_KINDdOrlJDMpyn","request_duration_ms":478}}' + - '{"last_request_metrics":{"request_id":"req_3IEMQjweLQkzxH","request_duration_ms":492}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:53 GMT + - Thu, 07 Dec 2023 18:29:32 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - b07ecd9e-1dfa-4268-bd9d-200406c4a415 + - 454ae177-e6cc-43e7-8497-62147f8b3f6d Original-Request: - - req_D5ptSBHj23IjUE + - req_Vihel6UGT7nLhb Request-Id: - - req_D5ptSBHj23IjUE + - req_Vihel6UGT7nLhb Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJPWrKuuB1fWySn0UpMWk65", + "id": "pi_3OKmKFKuuB1fWySn0dhzlWxo", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJPWrKuuB1fWySn0UpMWk65_secret_IcYlIeNZUK3Kus0a5haL8zeHg", + "client_secret": "pi_3OKmKFKuuB1fWySn0dhzlWxo_secret_YJ7r36K8NEZRb0Cxx2z87SsiR", "confirmation_method": "automatic", - "created": 1701647813, + "created": 1701973771, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJPWqKuuB1fWySnK6hwOzS0", + "payment_method": "pm_1OKmKFKuuB1fWySnS8jCZmUu", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Sun, 03 Dec 2023 23:56:53 GMT + recorded_at: Thu, 07 Dec 2023 18:29:32 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJPWrKuuB1fWySn0UpMWk65/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmKFKuuB1fWySn0dhzlWxo/confirm body: encoding: US-ASCII string: '' @@ -270,14 +270,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_D5ptSBHj23IjUE","request_duration_ms":408}}' + - '{"last_request_metrics":{"request_id":"req_Vihel6UGT7nLhb","request_duration_ms":518}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:54 GMT + - Thu, 07 Dec 2023 18:29:33 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - d63884cc-27d6-4c85-ba98-0b10e55bc795 + - d796786e-27a8-4e96-843f-dc55252c4a0e Original-Request: - - req_bB3bAySTJJWh7k + - req_7ecs3axsMXPiUR Request-Id: - - req_bB3bAySTJJWh7k + - req_7ecs3axsMXPiUR Stripe-Should-Retry: - 'false' Stripe-Version: @@ -336,12 +336,12 @@ http_interactions: string: | { "error": { - "charge": "ch_3OJPWrKuuB1fWySn0ELr018N", + "charge": "ch_3OKmKFKuuB1fWySn0f07ar2K", "code": "processing_error", "doc_url": "https://stripe.com/docs/error-codes/processing-error", "message": "An error occurred while processing your card. Try again in a little bit.", "payment_intent": { - "id": "pi_3OJPWrKuuB1fWySn0UpMWk65", + "id": "pi_3OKmKFKuuB1fWySn0dhzlWxo", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -356,20 +356,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJPWrKuuB1fWySn0UpMWk65_secret_IcYlIeNZUK3Kus0a5haL8zeHg", + "client_secret": "pi_3OKmKFKuuB1fWySn0dhzlWxo_secret_YJ7r36K8NEZRb0Cxx2z87SsiR", "confirmation_method": "automatic", - "created": 1701647813, + "created": 1701973771, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": { - "charge": "ch_3OJPWrKuuB1fWySn0ELr018N", + "charge": "ch_3OKmKFKuuB1fWySn0f07ar2K", "code": "processing_error", "doc_url": "https://stripe.com/docs/error-codes/processing-error", "message": "An error occurred while processing your card. Try again in a little bit.", "payment_method": { - "id": "pm_1OJPWqKuuB1fWySnK6hwOzS0", + "id": "pm_1OKmKFKuuB1fWySnS8jCZmUu", "object": "payment_method", "billing_details": { "address": { @@ -409,7 +409,7 @@ http_interactions: }, "wallet": null }, - "created": 1701647812, + "created": 1701973771, "customer": null, "livemode": false, "metadata": { @@ -418,7 +418,7 @@ http_interactions: }, "type": "card_error" }, - "latest_charge": "ch_3OJPWrKuuB1fWySn0ELr018N", + "latest_charge": "ch_3OKmKFKuuB1fWySn0f07ar2K", "livemode": false, "metadata": { }, @@ -450,7 +450,7 @@ http_interactions: "transfer_group": null }, "payment_method": { - "id": "pm_1OJPWqKuuB1fWySnK6hwOzS0", + "id": "pm_1OKmKFKuuB1fWySnS8jCZmUu", "object": "payment_method", "billing_details": { "address": { @@ -490,16 +490,16 @@ http_interactions: }, "wallet": null }, - "created": 1701647812, + "created": 1701973771, "customer": null, "livemode": false, "metadata": { }, "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_bB3bAySTJJWh7k?t=1701647813", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_7ecs3axsMXPiUR?t=1701973772", "type": "card_error" } } - recorded_at: Sun, 03 Dec 2023 23:56:54 GMT + recorded_at: Thu, 07 Dec 2023 18:29:33 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Stolen_card_decline/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Stolen_card_decline/captures_the_payment.yml new file mode 100644 index 0000000000..5537e39e78 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Stolen_card_decline/captures_the_payment.yml @@ -0,0 +1,215 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.stripe.com/v1/payment_methods + body: + encoding: UTF-8 + string: type=card&card[number]=4000000000009979&card[exp_month]=12&card[exp_year]=2024&card[cvc]=314 + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_5WMYfjplNUrxJ0","request_duration_ms":495}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 12:40:44 GMT + Content-Type: + - application/json + Content-Length: + - '931' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_methods; block-all-mixed-content; + default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Idempotency-Key: + - 5b412c9e-577a-4dfa-a839-dc186db70883 + Original-Request: + - req_OITsgm0ufJ3r7v + Request-Id: + - req_OITsgm0ufJ3r7v + Stripe-Should-Retry: + - 'false' + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: |- + { + "id": "pm_1OJxvcKuuB1fWySnWVSw2cky", + "object": "payment_method", + "billing_details": { + "address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "email": null, + "name": null, + "phone": null + }, + "card": { + "brand": "visa", + "checks": { + "address_line1_check": null, + "address_postal_code_check": null, + "cvc_check": "unchecked" + }, + "country": "US", + "exp_month": 12, + "exp_year": 2024, + "fingerprint": "1pjhEFFOW1eCi1AB", + "funding": "credit", + "generated_from": null, + "last4": "9979", + "networks": { + "available": [ + "visa" + ], + "preferred": null + }, + "three_d_secure_usage": { + "supported": true + }, + "wallet": null + }, + "created": 1701780044, + "customer": null, + "livemode": false, + "metadata": {}, + "type": "card" + } + recorded_at: Tue, 05 Dec 2023 12:40:44 GMT +- request: + method: post + uri: https://api.stripe.com/v1/payment_intents/payment_intent.id/capture + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.2.0 + Authorization: + - Bearer + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_OITsgm0ufJ3r7v","request_duration_ms":436}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + response: + status: + code: 404 + message: Not Found + headers: + Server: + - nginx + Date: + - Tue, 05 Dec 2023 12:40:44 GMT + Content-Type: + - application/json + Content-Length: + - '342' + Connection: + - keep-alive + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Methods: + - GET,HEAD,PUT,PATCH,POST,DELETE + Access-Control-Allow-Origin: + - "*" + Access-Control-Expose-Headers: + - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, + X-Stripe-Privileged-Session-Required + Access-Control-Max-Age: + - '300' + Cache-Control: + - no-cache, no-store + Content-Security-Policy: + - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent%2Fcapture; + block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action + 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; + style-src 'self' + Idempotency-Key: + - 99d141ef-b971-4b99-8028-7a846e0b36cb + Original-Request: + - req_gZlU7BzRaYTUm3 + Request-Id: + - req_gZlU7BzRaYTUm3 + Stripe-Version: + - '2023-10-16' + Vary: + - Origin + X-Stripe-Routing-Context-Priority-Tier: + - api-testmode + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + body: + encoding: UTF-8 + string: | + { + "error": { + "code": "resource_missing", + "doc_url": "https://stripe.com/docs/error-codes/resource-missing", + "message": "No such payment_intent: 'payment_intent.id'", + "param": "intent", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_gZlU7BzRaYTUm3?t=1701780044", + "type": "invalid_request_error" + } + } + recorded_at: Tue, 05 Dec 2023 12:40:44 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Stolen_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Stolen_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml index ef21aa782c..6c48370c20 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Stolen_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_invalid/invalid_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Stolen_card_decline/raises_Stripe_error_with_payment_intent_last_payment_error_as_message.yml @@ -14,14 +14,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Xin0QLkjWsO6xs","request_duration_ms":508}}' + - '{"last_request_metrics":{"request_id":"req_yUdUaiTwyvQZFc","request_duration_ms":517}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:46 GMT + - Thu, 07 Dec 2023 18:29:25 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - ba68a83f-3960-4e9f-91c2-88b05bd9d415 + - f17959ef-8478-4ddb-b511-6ee8479eb1af Original-Request: - - req_CJf7vjTDu1OURG + - req_VbwtzVggAX2IIL Request-Id: - - req_CJf7vjTDu1OURG + - req_VbwtzVggAX2IIL Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OJPWkKuuB1fWySnMF43raHg", + "id": "pm_1OKmK8KuuB1fWySnM2ZFudU0", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701647806, + "created": 1701973764, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Sun, 03 Dec 2023 23:56:47 GMT + recorded_at: Thu, 07 Dec 2023 18:29:25 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OJPWkKuuB1fWySnMF43raHg&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmK8KuuB1fWySnM2ZFudU0&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,14 +139,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_CJf7vjTDu1OURG","request_duration_ms":499}}' + - '{"last_request_metrics":{"request_id":"req_VbwtzVggAX2IIL","request_duration_ms":506}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:47 GMT + - Thu, 07 Dec 2023 18:29:25 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 3d08f88b-4172-4370-9a15-bfd73bd80ff8 + - c9846748-c8f4-4a51-924c-8647a77b3f09 Original-Request: - - req_HHLwPDme4T8e5a + - req_rKvwlh3lQupFaR Request-Id: - - req_HHLwPDme4T8e5a + - req_rKvwlh3lQupFaR Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OJPWlKuuB1fWySn0kDMpXrl", + "id": "pi_3OKmK9KuuB1fWySn2IT1IFMD", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJPWlKuuB1fWySn0kDMpXrl_secret_MGpYMNEzjObvLhQmAzfSHKO7s", + "client_secret": "pi_3OKmK9KuuB1fWySn2IT1IFMD_secret_YAkaQkFyKLWnhYvXQgBwAPo8c", "confirmation_method": "automatic", - "created": 1701647807, + "created": 1701973765, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OJPWkKuuB1fWySnMF43raHg", + "payment_method": "pm_1OKmK8KuuB1fWySnM2ZFudU0", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Sun, 03 Dec 2023 23:56:47 GMT + recorded_at: Thu, 07 Dec 2023 18:29:25 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OJPWlKuuB1fWySn0kDMpXrl/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmK9KuuB1fWySn2IT1IFMD/confirm body: encoding: US-ASCII string: '' @@ -270,14 +270,14 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_HHLwPDme4T8e5a","request_duration_ms":508}}' + - '{"last_request_metrics":{"request_id":"req_rKvwlh3lQupFaR","request_duration_ms":623}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) - 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian - 6.1.55-1 (2023-09-29)","hostname":"blackbox"}' + version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 + (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) + #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Sun, 03 Dec 2023 23:56:48 GMT + - Thu, 07 Dec 2023 18:29:26 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 0ab61f5a-6e62-4afc-a225-2d567b39cdf1 + - 77986676-c47d-433d-92da-fa72073046e0 Original-Request: - - req_mDCYshSZmrPA56 + - req_Y2VBCuGx7MOd4n Request-Id: - - req_mDCYshSZmrPA56 + - req_Y2VBCuGx7MOd4n Stripe-Should-Retry: - 'false' Stripe-Version: @@ -336,13 +336,13 @@ http_interactions: string: | { "error": { - "charge": "ch_3OJPWlKuuB1fWySn058jBdVv", + "charge": "ch_3OKmK9KuuB1fWySn2wZAvHTY", "code": "card_declined", "decline_code": "stolen_card", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", "payment_intent": { - "id": "pi_3OJPWlKuuB1fWySn0kDMpXrl", + "id": "pi_3OKmK9KuuB1fWySn2IT1IFMD", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -357,21 +357,21 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OJPWlKuuB1fWySn0kDMpXrl_secret_MGpYMNEzjObvLhQmAzfSHKO7s", + "client_secret": "pi_3OKmK9KuuB1fWySn2IT1IFMD_secret_YAkaQkFyKLWnhYvXQgBwAPo8c", "confirmation_method": "automatic", - "created": 1701647807, + "created": 1701973765, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": { - "charge": "ch_3OJPWlKuuB1fWySn058jBdVv", + "charge": "ch_3OKmK9KuuB1fWySn2wZAvHTY", "code": "card_declined", "decline_code": "stolen_card", "doc_url": "https://stripe.com/docs/error-codes/card-declined", "message": "Your card was declined.", "payment_method": { - "id": "pm_1OJPWkKuuB1fWySnMF43raHg", + "id": "pm_1OKmK8KuuB1fWySnM2ZFudU0", "object": "payment_method", "billing_details": { "address": { @@ -411,7 +411,7 @@ http_interactions: }, "wallet": null }, - "created": 1701647806, + "created": 1701973764, "customer": null, "livemode": false, "metadata": { @@ -420,7 +420,7 @@ http_interactions: }, "type": "card_error" }, - "latest_charge": "ch_3OJPWlKuuB1fWySn058jBdVv", + "latest_charge": "ch_3OKmK9KuuB1fWySn2wZAvHTY", "livemode": false, "metadata": { }, @@ -452,7 +452,7 @@ http_interactions: "transfer_group": null }, "payment_method": { - "id": "pm_1OJPWkKuuB1fWySnMF43raHg", + "id": "pm_1OKmK8KuuB1fWySnM2ZFudU0", "object": "payment_method", "billing_details": { "address": { @@ -492,16 +492,16 @@ http_interactions: }, "wallet": null }, - "created": 1701647806, + "created": 1701973764, "customer": null, "livemode": false, "metadata": { }, "type": "card" }, - "request_log_url": "https://dashboard.stripe.com/test/logs/req_mDCYshSZmrPA56?t=1701647807", + "request_log_url": "https://dashboard.stripe.com/test/logs/req_Y2VBCuGx7MOd4n?t=1701973765", "type": "card_error" } } - recorded_at: Sun, 03 Dec 2023 23:56:48 GMT + recorded_at: Thu, 07 Dec 2023 18:29:26 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/captures_the_payment.yml index 461ff887c3..04ddeb3a7a 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_hDMJRF3PKMkqRA","request_duration_ms":412}}' + - '{"last_request_metrics":{"request_id":"req_N5J7K8MWYGP0c2","request_duration_ms":986}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:59 GMT + - Thu, 07 Dec 2023 18:28:18 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - a8ae9a78-6df4-437e-b614-6961ba8b9b19 + - 7071d7a7-7f61-4ece-9047-1d47e61d4622 Original-Request: - - req_SYoCWmWwYsUDB2 + - req_c5kBdHTS5evHVC Request-Id: - - req_SYoCWmWwYsUDB2 + - req_c5kBdHTS5evHVC Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0NnKuuB1fWySnCwEknS1v", + "id": "pm_1OKmJ4KuuB1fWySnoTBZeCPl", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789479, + "created": 1701973698, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:17:59 GMT + recorded_at: Thu, 07 Dec 2023 18:28:18 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0NnKuuB1fWySnCwEknS1v&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmJ4KuuB1fWySnoTBZeCPl&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_SYoCWmWwYsUDB2","request_duration_ms":698}}' + - '{"last_request_metrics":{"request_id":"req_c5kBdHTS5evHVC","request_duration_ms":520}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:59 GMT + - Thu, 07 Dec 2023 18:28:18 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - d36ad718-c670-4096-a0ce-2b2d90e4e084 + - a15d892b-e9d1-412d-82b0-cdcf56440171 Original-Request: - - req_sMOosltstE21F2 + - req_WahZc7YT6N4h8j Request-Id: - - req_sMOosltstE21F2 + - req_WahZc7YT6N4h8j Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NnKuuB1fWySn1Ea3k80J", + "id": "pi_3OKmJ4KuuB1fWySn03pSVypj", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NnKuuB1fWySn1Ea3k80J_secret_7wzasiQ4kikXKuqDTh3dmtOW6", + "client_secret": "pi_3OKmJ4KuuB1fWySn03pSVypj_secret_tYHqNzc81pH5e5ywylHSBurUo", "confirmation_method": "automatic", - "created": 1701789479, + "created": 1701973698, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NnKuuB1fWySnCwEknS1v", + "payment_method": "pm_1OKmJ4KuuB1fWySnoTBZeCPl", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:59 GMT + recorded_at: Thu, 07 Dec 2023 18:28:19 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NnKuuB1fWySn1Ea3k80J/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJ4KuuB1fWySn03pSVypj/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_sMOosltstE21F2","request_duration_ms":623}}' + - '{"last_request_metrics":{"request_id":"req_WahZc7YT6N4h8j","request_duration_ms":413}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:01 GMT + - Thu, 07 Dec 2023 18:28:19 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 6e48f67e-18c2-4c6f-b014-073854ce72c3 + - e7263d1d-8619-4e93-8aa7-c480a3d36cfc Original-Request: - - req_AlxJNFEp2APeSU + - req_RD89TdhsDz2Z38 Request-Id: - - req_AlxJNFEp2APeSU + - req_RD89TdhsDz2Z38 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NnKuuB1fWySn1Ea3k80J", + "id": "pi_3OKmJ4KuuB1fWySn03pSVypj", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NnKuuB1fWySn1Ea3k80J_secret_7wzasiQ4kikXKuqDTh3dmtOW6", + "client_secret": "pi_3OKmJ4KuuB1fWySn03pSVypj_secret_tYHqNzc81pH5e5ywylHSBurUo", "confirmation_method": "automatic", - "created": 1701789479, + "created": 1701973698, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NnKuuB1fWySn1g2gr2XU", + "latest_charge": "ch_3OKmJ4KuuB1fWySn0sYgwcIE", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NnKuuB1fWySnCwEknS1v", + "payment_method": "pm_1OKmJ4KuuB1fWySnoTBZeCPl", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:00 GMT + recorded_at: Thu, 07 Dec 2023 18:28:19 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NnKuuB1fWySn1Ea3k80J + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJ4KuuB1fWySn03pSVypj body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_AlxJNFEp2APeSU","request_duration_ms":1238}}' + - '{"last_request_metrics":{"request_id":"req_RD89TdhsDz2Z38","request_duration_ms":939}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:01 GMT + - Thu, 07 Dec 2023 18:28:20 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_rNC3BOSQBSM7jv + - req_GhjPXki3UyEXLI Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NnKuuB1fWySn1Ea3k80J", + "id": "pi_3OKmJ4KuuB1fWySn03pSVypj", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NnKuuB1fWySn1Ea3k80J_secret_7wzasiQ4kikXKuqDTh3dmtOW6", + "client_secret": "pi_3OKmJ4KuuB1fWySn03pSVypj_secret_tYHqNzc81pH5e5ywylHSBurUo", "confirmation_method": "automatic", - "created": 1701789479, + "created": 1701973698, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NnKuuB1fWySn1g2gr2XU", + "latest_charge": "ch_3OKmJ4KuuB1fWySn0sYgwcIE", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NnKuuB1fWySnCwEknS1v", + "payment_method": "pm_1OKmJ4KuuB1fWySnoTBZeCPl", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,10 +513,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:01 GMT + recorded_at: Thu, 07 Dec 2023 18:28:20 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NnKuuB1fWySn1Ea3k80J/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJ4KuuB1fWySn03pSVypj/capture body: encoding: US-ASCII string: '' @@ -528,7 +528,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_rNC3BOSQBSM7jv","request_duration_ms":528}}' + - '{"last_request_metrics":{"request_id":"req_GhjPXki3UyEXLI","request_duration_ms":308}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -548,7 +548,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:03 GMT + - Thu, 07 Dec 2023 18:28:21 GMT Content-Type: - application/json Content-Length: @@ -574,11 +574,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - d40d23b6-4806-4203-889f-af8b4283180c + - e35bb316-dc04-4561-88d5-a113029f35f1 Original-Request: - - req_ZHmpjdytcnwPEV + - req_p1q3Za7UzBWztp Request-Id: - - req_ZHmpjdytcnwPEV + - req_p1q3Za7UzBWztp Stripe-Should-Retry: - 'false' Stripe-Version: @@ -593,7 +593,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NnKuuB1fWySn1Ea3k80J", + "id": "pi_3OKmJ4KuuB1fWySn03pSVypj", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -607,20 +607,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NnKuuB1fWySn1Ea3k80J_secret_7wzasiQ4kikXKuqDTh3dmtOW6", + "client_secret": "pi_3OKmJ4KuuB1fWySn03pSVypj_secret_tYHqNzc81pH5e5ywylHSBurUo", "confirmation_method": "automatic", - "created": 1701789479, + "created": 1701973698, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NnKuuB1fWySn1g2gr2XU", + "latest_charge": "ch_3OKmJ4KuuB1fWySn0sYgwcIE", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NnKuuB1fWySnCwEknS1v", + "payment_method": "pm_1OKmJ4KuuB1fWySnoTBZeCPl", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -645,10 +645,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:02 GMT + recorded_at: Thu, 07 Dec 2023 18:28:21 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NnKuuB1fWySn1Ea3k80J + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJ4KuuB1fWySn03pSVypj body: encoding: US-ASCII string: '' @@ -660,7 +660,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_ZHmpjdytcnwPEV","request_duration_ms":1460}}' + - '{"last_request_metrics":{"request_id":"req_p1q3Za7UzBWztp","request_duration_ms":1145}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -680,7 +680,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:03 GMT + - Thu, 07 Dec 2023 18:28:21 GMT Content-Type: - application/json Content-Length: @@ -706,7 +706,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_CpRbwgH4d5pN4d + - req_zD6wFMnswpGKqr Stripe-Version: - '2023-10-16' Vary: @@ -719,7 +719,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NnKuuB1fWySn1Ea3k80J", + "id": "pi_3OKmJ4KuuB1fWySn03pSVypj", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -733,20 +733,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NnKuuB1fWySn1Ea3k80J_secret_7wzasiQ4kikXKuqDTh3dmtOW6", + "client_secret": "pi_3OKmJ4KuuB1fWySn03pSVypj_secret_tYHqNzc81pH5e5ywylHSBurUo", "confirmation_method": "automatic", - "created": 1701789479, + "created": 1701973698, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NnKuuB1fWySn1g2gr2XU", + "latest_charge": "ch_3OKmJ4KuuB1fWySn0sYgwcIE", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NnKuuB1fWySnCwEknS1v", + "payment_method": "pm_1OKmJ4KuuB1fWySnoTBZeCPl", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -771,5 +771,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:03 GMT + recorded_at: Thu, 07 Dec 2023 18:28:21 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml index 2eca578cbc..e3d8c7711c 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_American_Express/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_aill0MXqVb2gur","request_duration_ms":373}}' + - '{"last_request_metrics":{"request_id":"req_VcABBYmtJMMIBJ","request_duration_ms":374}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:56 GMT + - Thu, 07 Dec 2023 18:28:16 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - f4bf3727-3295-4ec9-b193-a3bcc6248d8c + - 310d39ba-b012-4a37-a159-82b916e37682 Original-Request: - - req_IKwNHSoX51G1UH + - req_4UBHDMYvvr60tG Request-Id: - - req_IKwNHSoX51G1UH + - req_4UBHDMYvvr60tG Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0NjKuuB1fWySnf1DLzQbQ", + "id": "pm_1OKmJ2KuuB1fWySnuNaARxNl", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789475, + "created": 1701973696, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:17:55 GMT + recorded_at: Thu, 07 Dec 2023 18:28:16 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0NjKuuB1fWySnf1DLzQbQ&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmJ2KuuB1fWySnuNaARxNl&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_IKwNHSoX51G1UH","request_duration_ms":625}}' + - '{"last_request_metrics":{"request_id":"req_4UBHDMYvvr60tG","request_duration_ms":443}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:56 GMT + - Thu, 07 Dec 2023 18:28:16 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 343353fc-4ba4-47f6-a8b6-c485c4d65cf6 + - 30fe486f-00bd-4b24-b176-d989378489b7 Original-Request: - - req_a5MRKLmiWzP5Bt + - req_3Np64STffepu74 Request-Id: - - req_a5MRKLmiWzP5Bt + - req_3Np64STffepu74 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NkKuuB1fWySn26j9L00x", + "id": "pi_3OKmJ2KuuB1fWySn1OkZ0ypb", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NkKuuB1fWySn26j9L00x_secret_TsLQMlOnmhjCZWjBbiBqldzDB", + "client_secret": "pi_3OKmJ2KuuB1fWySn1OkZ0ypb_secret_LJTK1RctgjxD0rCHiCXhcOd44", "confirmation_method": "automatic", - "created": 1701789476, + "created": 1701973696, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NjKuuB1fWySnf1DLzQbQ", + "payment_method": "pm_1OKmJ2KuuB1fWySnuNaARxNl", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:56 GMT + recorded_at: Thu, 07 Dec 2023 18:28:16 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NkKuuB1fWySn26j9L00x/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJ2KuuB1fWySn1OkZ0ypb/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_a5MRKLmiWzP5Bt","request_duration_ms":624}}' + - '{"last_request_metrics":{"request_id":"req_3Np64STffepu74","request_duration_ms":464}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:57 GMT + - Thu, 07 Dec 2023 18:28:17 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 8c0875cb-1e95-4d4c-997d-c9c21248117e + - 46eaf312-f967-482c-bda6-d397dc6de7ed Original-Request: - - req_oSfvc1FoeEuIOl + - req_N5J7K8MWYGP0c2 Request-Id: - - req_oSfvc1FoeEuIOl + - req_N5J7K8MWYGP0c2 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NkKuuB1fWySn26j9L00x", + "id": "pi_3OKmJ2KuuB1fWySn1OkZ0ypb", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NkKuuB1fWySn26j9L00x_secret_TsLQMlOnmhjCZWjBbiBqldzDB", + "client_secret": "pi_3OKmJ2KuuB1fWySn1OkZ0ypb_secret_LJTK1RctgjxD0rCHiCXhcOd44", "confirmation_method": "automatic", - "created": 1701789476, + "created": 1701973696, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NkKuuB1fWySn2a21PE8W", + "latest_charge": "ch_3OKmJ2KuuB1fWySn13i8dx0R", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NjKuuB1fWySnf1DLzQbQ", + "payment_method": "pm_1OKmJ2KuuB1fWySnuNaARxNl", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,131 +387,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:57 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NkKuuB1fWySn26j9L00x - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_oSfvc1FoeEuIOl","request_duration_ms":1042}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 - (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) - #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Tue, 05 Dec 2023 15:17:58 GMT - Content-Type: - - application/json - Content-Length: - - '1365' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; - block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action - 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; - style-src 'self' - Request-Id: - - req_hDMJRF3PKMkqRA - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OK0NkKuuB1fWySn26j9L00x", - "object": "payment_intent", - "amount": 100, - "amount_capturable": 100, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OK0NkKuuB1fWySn26j9L00x_secret_TsLQMlOnmhjCZWjBbiBqldzDB", - "confirmation_method": "automatic", - "created": 1701789476, - "currency": "eur", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OK0NkKuuB1fWySn2a21PE8W", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OK0NjKuuB1fWySnf1DLzQbQ", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_capture", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Tue, 05 Dec 2023 15:17:58 GMT + recorded_at: Thu, 07 Dec 2023 18:28:17 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/captures_the_payment.yml index 26b55d1195..38615d45f9 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_N9IvR7c7bdPRVF","request_duration_ms":489}}' + - '{"last_request_metrics":{"request_id":"req_0vzgdOb8ZSNFTk","request_duration_ms":1042}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:39 GMT + - Thu, 07 Dec 2023 18:28:50 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 18ada2e6-2f82-48a6-a66f-c528075b2a3b + - 9ce6468f-5125-4f1f-9803-1f2ec538923d Original-Request: - - req_LBhKyXRz0te2LM + - req_ZzHa3UD37AaTbR Request-Id: - - req_LBhKyXRz0te2LM + - req_ZzHa3UD37AaTbR Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0ORKuuB1fWySn01GwTcHT", + "id": "pm_1OKmJaKuuB1fWySnhW03Hqhy", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789519, + "created": 1701973730, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:18:38 GMT + recorded_at: Thu, 07 Dec 2023 18:28:50 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0ORKuuB1fWySn01GwTcHT&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmJaKuuB1fWySnhW03Hqhy&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_LBhKyXRz0te2LM","request_duration_ms":485}}' + - '{"last_request_metrics":{"request_id":"req_ZzHa3UD37AaTbR","request_duration_ms":587}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:39 GMT + - Thu, 07 Dec 2023 18:28:50 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 1d6614cf-5c31-406a-93c0-976861923559 + - 9c6d8e6b-79d0-4c31-bcd9-52bfc0d44e2f Original-Request: - - req_KWddo4V7yQvpKh + - req_OSJzdv5UC2hJJk Request-Id: - - req_KWddo4V7yQvpKh + - req_OSJzdv5UC2hJJk Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0ORKuuB1fWySn0sIZSpGF", + "id": "pi_3OKmJaKuuB1fWySn29wa3SrP", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0ORKuuB1fWySn0sIZSpGF_secret_Jbm9bPiWtYazT9cw1wwdeWxz4", + "client_secret": "pi_3OKmJaKuuB1fWySn29wa3SrP_secret_qF9EUBKtTCrq7n17vfR54U0ak", "confirmation_method": "automatic", - "created": 1701789519, + "created": 1701973730, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0ORKuuB1fWySn01GwTcHT", + "payment_method": "pm_1OKmJaKuuB1fWySnhW03Hqhy", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:39 GMT + recorded_at: Thu, 07 Dec 2023 18:28:50 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0ORKuuB1fWySn0sIZSpGF/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJaKuuB1fWySn29wa3SrP/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_KWddo4V7yQvpKh","request_duration_ms":510}}' + - '{"last_request_metrics":{"request_id":"req_OSJzdv5UC2hJJk","request_duration_ms":513}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:40 GMT + - Thu, 07 Dec 2023 18:28:51 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - f562bdb6-62fd-436d-89f3-1110fae6fe1a + - f20302e6-bbe2-4262-8f77-9e289543cbae Original-Request: - - req_vmRWBvjaYxSsqJ + - req_IhuAK6TK5xWyjn Request-Id: - - req_vmRWBvjaYxSsqJ + - req_IhuAK6TK5xWyjn Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0ORKuuB1fWySn0sIZSpGF", + "id": "pi_3OKmJaKuuB1fWySn29wa3SrP", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0ORKuuB1fWySn0sIZSpGF_secret_Jbm9bPiWtYazT9cw1wwdeWxz4", + "client_secret": "pi_3OKmJaKuuB1fWySn29wa3SrP_secret_qF9EUBKtTCrq7n17vfR54U0ak", "confirmation_method": "automatic", - "created": 1701789519, + "created": 1701973730, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0ORKuuB1fWySn00XsuLJz", + "latest_charge": "ch_3OKmJaKuuB1fWySn2PzhRvfD", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0ORKuuB1fWySn01GwTcHT", + "payment_method": "pm_1OKmJaKuuB1fWySnhW03Hqhy", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:40 GMT + recorded_at: Thu, 07 Dec 2023 18:28:52 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0ORKuuB1fWySn0sIZSpGF + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJaKuuB1fWySn29wa3SrP body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_vmRWBvjaYxSsqJ","request_duration_ms":1051}}' + - '{"last_request_metrics":{"request_id":"req_IhuAK6TK5xWyjn","request_duration_ms":1041}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:41 GMT + - Thu, 07 Dec 2023 18:28:52 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_0IKVsFYco3MLM0 + - req_If3n3em9wCyySE Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0ORKuuB1fWySn0sIZSpGF", + "id": "pi_3OKmJaKuuB1fWySn29wa3SrP", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0ORKuuB1fWySn0sIZSpGF_secret_Jbm9bPiWtYazT9cw1wwdeWxz4", + "client_secret": "pi_3OKmJaKuuB1fWySn29wa3SrP_secret_qF9EUBKtTCrq7n17vfR54U0ak", "confirmation_method": "automatic", - "created": 1701789519, + "created": 1701973730, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0ORKuuB1fWySn00XsuLJz", + "latest_charge": "ch_3OKmJaKuuB1fWySn2PzhRvfD", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0ORKuuB1fWySn01GwTcHT", + "payment_method": "pm_1OKmJaKuuB1fWySnhW03Hqhy", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,10 +513,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:40 GMT + recorded_at: Thu, 07 Dec 2023 18:28:52 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0ORKuuB1fWySn0sIZSpGF/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJaKuuB1fWySn29wa3SrP/capture body: encoding: US-ASCII string: '' @@ -528,7 +528,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_0IKVsFYco3MLM0","request_duration_ms":426}}' + - '{"last_request_metrics":{"request_id":"req_If3n3em9wCyySE","request_duration_ms":311}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -548,7 +548,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:42 GMT + - Thu, 07 Dec 2023 18:28:53 GMT Content-Type: - application/json Content-Length: @@ -574,11 +574,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 461c4490-90ac-4b91-980d-dc06fdc1ae01 + - 398a06b7-0575-4f95-b5d7-53204b1555b4 Original-Request: - - req_kOivKLRQV2gwAG + - req_AJEcdUUUFRc49d Request-Id: - - req_kOivKLRQV2gwAG + - req_AJEcdUUUFRc49d Stripe-Should-Retry: - 'false' Stripe-Version: @@ -593,7 +593,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0ORKuuB1fWySn0sIZSpGF", + "id": "pi_3OKmJaKuuB1fWySn29wa3SrP", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -607,20 +607,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0ORKuuB1fWySn0sIZSpGF_secret_Jbm9bPiWtYazT9cw1wwdeWxz4", + "client_secret": "pi_3OKmJaKuuB1fWySn29wa3SrP_secret_qF9EUBKtTCrq7n17vfR54U0ak", "confirmation_method": "automatic", - "created": 1701789519, + "created": 1701973730, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0ORKuuB1fWySn00XsuLJz", + "latest_charge": "ch_3OKmJaKuuB1fWySn2PzhRvfD", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0ORKuuB1fWySn01GwTcHT", + "payment_method": "pm_1OKmJaKuuB1fWySnhW03Hqhy", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -645,10 +645,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:42 GMT + recorded_at: Thu, 07 Dec 2023 18:28:53 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0ORKuuB1fWySn0sIZSpGF + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJaKuuB1fWySn29wa3SrP body: encoding: US-ASCII string: '' @@ -660,7 +660,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_kOivKLRQV2gwAG","request_duration_ms":1163}}' + - '{"last_request_metrics":{"request_id":"req_AJEcdUUUFRc49d","request_duration_ms":1147}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -680,7 +680,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:42 GMT + - Thu, 07 Dec 2023 18:28:53 GMT Content-Type: - application/json Content-Length: @@ -706,7 +706,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_T1R5tMpzPVq4Qh + - req_ukNukAiO0qHnGG Stripe-Version: - '2023-10-16' Vary: @@ -719,7 +719,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0ORKuuB1fWySn0sIZSpGF", + "id": "pi_3OKmJaKuuB1fWySn29wa3SrP", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -733,20 +733,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0ORKuuB1fWySn0sIZSpGF_secret_Jbm9bPiWtYazT9cw1wwdeWxz4", + "client_secret": "pi_3OKmJaKuuB1fWySn29wa3SrP_secret_qF9EUBKtTCrq7n17vfR54U0ak", "confirmation_method": "automatic", - "created": 1701789519, + "created": 1701973730, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0ORKuuB1fWySn00XsuLJz", + "latest_charge": "ch_3OKmJaKuuB1fWySn2PzhRvfD", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0ORKuuB1fWySn01GwTcHT", + "payment_method": "pm_1OKmJaKuuB1fWySnhW03Hqhy", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -771,5 +771,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:42 GMT + recorded_at: Thu, 07 Dec 2023 18:28:53 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml index 04743a2eb8..3bbb3b1803 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_BCcard_and_DinaCard/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_FsWpCIItxhZwAx","request_duration_ms":493}}' + - '{"last_request_metrics":{"request_id":"req_XHDBz2Pm2pBXiS","request_duration_ms":305}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:36 GMT + - Thu, 07 Dec 2023 18:28:48 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - a8f4a2e6-110e-43f2-8837-894841616018 + - d3ede57f-8a06-475b-bc13-85ee855a87f8 Original-Request: - - req_uAMB03UKPu5Lvf + - req_zozOcIj2kshGvj Request-Id: - - req_uAMB03UKPu5Lvf + - req_zozOcIj2kshGvj Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0OOKuuB1fWySnGptMBuYy", + "id": "pm_1OKmJXKuuB1fWySnHjTFqLlS", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789516, + "created": 1701973727, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:18:36 GMT + recorded_at: Thu, 07 Dec 2023 18:28:48 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0OOKuuB1fWySnGptMBuYy&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmJXKuuB1fWySnHjTFqLlS&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_uAMB03UKPu5Lvf","request_duration_ms":500}}' + - '{"last_request_metrics":{"request_id":"req_zozOcIj2kshGvj","request_duration_ms":477}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:36 GMT + - Thu, 07 Dec 2023 18:28:48 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 743a1f66-3192-43e3-9e89-f53978609279 + - fd833b7d-ed7c-40c9-bceb-2a03f670cf2c Original-Request: - - req_7xYPaXePiaTYB8 + - req_ApxLdeBM8rqeAs Request-Id: - - req_7xYPaXePiaTYB8 + - req_ApxLdeBM8rqeAs Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OOKuuB1fWySn2OKUeMDy", + "id": "pi_3OKmJYKuuB1fWySn1OOY0Mh6", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OOKuuB1fWySn2OKUeMDy_secret_J1Fu2Q2OdSokbidZipe83zGBB", + "client_secret": "pi_3OKmJYKuuB1fWySn1OOY0Mh6_secret_YEf13vOd6s7qeMmB7TyLdwW9v", "confirmation_method": "automatic", - "created": 1701789516, + "created": 1701973728, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OOKuuB1fWySnGptMBuYy", + "payment_method": "pm_1OKmJXKuuB1fWySnHjTFqLlS", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:36 GMT + recorded_at: Thu, 07 Dec 2023 18:28:48 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OOKuuB1fWySn2OKUeMDy/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJYKuuB1fWySn1OOY0Mh6/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_7xYPaXePiaTYB8","request_duration_ms":468}}' + - '{"last_request_metrics":{"request_id":"req_ApxLdeBM8rqeAs","request_duration_ms":414}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:37 GMT + - Thu, 07 Dec 2023 18:28:49 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 2cf4c83e-08f6-40d0-89ae-084c8e9237ec + - 839aece3-05ba-45cc-884f-cb20cdf8eb9d Original-Request: - - req_PPPIIre38iMPAf + - req_0vzgdOb8ZSNFTk Request-Id: - - req_PPPIIre38iMPAf + - req_0vzgdOb8ZSNFTk Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OOKuuB1fWySn2OKUeMDy", + "id": "pi_3OKmJYKuuB1fWySn1OOY0Mh6", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OOKuuB1fWySn2OKUeMDy_secret_J1Fu2Q2OdSokbidZipe83zGBB", + "client_secret": "pi_3OKmJYKuuB1fWySn1OOY0Mh6_secret_YEf13vOd6s7qeMmB7TyLdwW9v", "confirmation_method": "automatic", - "created": 1701789516, + "created": 1701973728, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OOKuuB1fWySn24oGO6oI", + "latest_charge": "ch_3OKmJYKuuB1fWySn1aiLNqG7", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OOKuuB1fWySnGptMBuYy", + "payment_method": "pm_1OKmJXKuuB1fWySnHjTFqLlS", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,131 +387,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:37 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OOKuuB1fWySn2OKUeMDy - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_PPPIIre38iMPAf","request_duration_ms":1016}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 - (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) - #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Tue, 05 Dec 2023 15:18:38 GMT - Content-Type: - - application/json - Content-Length: - - '1365' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; - block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action - 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; - style-src 'self' - Request-Id: - - req_N9IvR7c7bdPRVF - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OK0OOKuuB1fWySn2OKUeMDy", - "object": "payment_intent", - "amount": 100, - "amount_capturable": 100, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OK0OOKuuB1fWySn2OKUeMDy_secret_J1Fu2Q2OdSokbidZipe83zGBB", - "confirmation_method": "automatic", - "created": 1701789516, - "currency": "eur", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OK0OOKuuB1fWySn24oGO6oI", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OK0OOKuuB1fWySnGptMBuYy", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_capture", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Tue, 05 Dec 2023 15:18:38 GMT + recorded_at: Thu, 07 Dec 2023 18:28:49 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/captures_the_payment.yml index 77b1dcd8be..887ad55f27 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_WmC2NruzVUF1qB","request_duration_ms":516}}' + - '{"last_request_metrics":{"request_id":"req_HLF49wnac27NFV","request_duration_ms":976}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:24 GMT + - Thu, 07 Dec 2023 18:28:38 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 93f68076-4a61-483e-9d6a-3da797c891af + - c58a6bb6-4c43-41ff-99a6-403525e83f2f Original-Request: - - req_AF8cYVTb9Rp80a + - req_qQtW0TD2fJhOvx Request-Id: - - req_AF8cYVTb9Rp80a + - req_qQtW0TD2fJhOvx Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0OCKuuB1fWySnXXYtmIqO", + "id": "pm_1OKmJNKuuB1fWySnXbtfpMzQ", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789504, + "created": 1701973717, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:18:24 GMT + recorded_at: Thu, 07 Dec 2023 18:28:38 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0OCKuuB1fWySnXXYtmIqO&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmJNKuuB1fWySnXbtfpMzQ&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_AF8cYVTb9Rp80a","request_duration_ms":685}}' + - '{"last_request_metrics":{"request_id":"req_qQtW0TD2fJhOvx","request_duration_ms":525}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:25 GMT + - Thu, 07 Dec 2023 18:28:38 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 4bacfd64-5c40-4602-a162-4d31f820e03e + - 5e1a80fe-3312-467c-bf5c-bb65e2fd9c7c Original-Request: - - req_pITol3FN79B8nb + - req_0Qn4ExUGRwyA0L Request-Id: - - req_pITol3FN79B8nb + - req_0Qn4ExUGRwyA0L Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0ODKuuB1fWySn2L39JsPV", + "id": "pi_3OKmJOKuuB1fWySn1EG3DBrp", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0ODKuuB1fWySn2L39JsPV_secret_pMYnFNWohTPsSdwOOSmfS4lIF", + "client_secret": "pi_3OKmJOKuuB1fWySn1EG3DBrp_secret_fXwgDxjDOwTNY13tZL4zSWZp5", "confirmation_method": "automatic", - "created": 1701789505, + "created": 1701973718, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OCKuuB1fWySnXXYtmIqO", + "payment_method": "pm_1OKmJNKuuB1fWySnXbtfpMzQ", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:25 GMT + recorded_at: Thu, 07 Dec 2023 18:28:38 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0ODKuuB1fWySn2L39JsPV/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJOKuuB1fWySn1EG3DBrp/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_pITol3FN79B8nb","request_duration_ms":733}}' + - '{"last_request_metrics":{"request_id":"req_0Qn4ExUGRwyA0L","request_duration_ms":403}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:26 GMT + - Thu, 07 Dec 2023 18:28:39 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - ddd63ea8-d6af-41d1-a473-54444ebe2bb7 + - 7a3e02b2-afac-4cb0-9b00-adae261361b0 Original-Request: - - req_gEQw4EUIq9Utey + - req_qxtXhvsMFrygTX Request-Id: - - req_gEQw4EUIq9Utey + - req_qxtXhvsMFrygTX Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0ODKuuB1fWySn2L39JsPV", + "id": "pi_3OKmJOKuuB1fWySn1EG3DBrp", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0ODKuuB1fWySn2L39JsPV_secret_pMYnFNWohTPsSdwOOSmfS4lIF", + "client_secret": "pi_3OKmJOKuuB1fWySn1EG3DBrp_secret_fXwgDxjDOwTNY13tZL4zSWZp5", "confirmation_method": "automatic", - "created": 1701789505, + "created": 1701973718, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0ODKuuB1fWySn2JjFgzR4", + "latest_charge": "ch_3OKmJOKuuB1fWySn1jEHvDIc", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OCKuuB1fWySnXXYtmIqO", + "payment_method": "pm_1OKmJNKuuB1fWySnXbtfpMzQ", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:26 GMT + recorded_at: Thu, 07 Dec 2023 18:28:39 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0ODKuuB1fWySn2L39JsPV + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJOKuuB1fWySn1EG3DBrp body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_gEQw4EUIq9Utey","request_duration_ms":1249}}' + - '{"last_request_metrics":{"request_id":"req_qxtXhvsMFrygTX","request_duration_ms":950}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:27 GMT + - Thu, 07 Dec 2023 18:28:39 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_N4xfPjUAXq6Gix + - req_SA6YFoiIiDICDR Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0ODKuuB1fWySn2L39JsPV", + "id": "pi_3OKmJOKuuB1fWySn1EG3DBrp", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0ODKuuB1fWySn2L39JsPV_secret_pMYnFNWohTPsSdwOOSmfS4lIF", + "client_secret": "pi_3OKmJOKuuB1fWySn1EG3DBrp_secret_fXwgDxjDOwTNY13tZL4zSWZp5", "confirmation_method": "automatic", - "created": 1701789505, + "created": 1701973718, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0ODKuuB1fWySn2JjFgzR4", + "latest_charge": "ch_3OKmJOKuuB1fWySn1jEHvDIc", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OCKuuB1fWySnXXYtmIqO", + "payment_method": "pm_1OKmJNKuuB1fWySnXbtfpMzQ", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,10 +513,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:27 GMT + recorded_at: Thu, 07 Dec 2023 18:28:39 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0ODKuuB1fWySn2L39JsPV/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJOKuuB1fWySn1EG3DBrp/capture body: encoding: US-ASCII string: '' @@ -528,7 +528,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_N4xfPjUAXq6Gix","request_duration_ms":517}}' + - '{"last_request_metrics":{"request_id":"req_SA6YFoiIiDICDR","request_duration_ms":414}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -548,7 +548,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:28 GMT + - Thu, 07 Dec 2023 18:28:40 GMT Content-Type: - application/json Content-Length: @@ -574,11 +574,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 27a7c41c-ac5d-4133-b9bd-f3eabb7a36ce + - 26ce7d16-e8ac-4128-8e23-2d32443908df Original-Request: - - req_RyhaEhFojMNcKq + - req_AgFvIKgfAAjEpH Request-Id: - - req_RyhaEhFojMNcKq + - req_AgFvIKgfAAjEpH Stripe-Should-Retry: - 'false' Stripe-Version: @@ -593,7 +593,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0ODKuuB1fWySn2L39JsPV", + "id": "pi_3OKmJOKuuB1fWySn1EG3DBrp", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -607,20 +607,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0ODKuuB1fWySn2L39JsPV_secret_pMYnFNWohTPsSdwOOSmfS4lIF", + "client_secret": "pi_3OKmJOKuuB1fWySn1EG3DBrp_secret_fXwgDxjDOwTNY13tZL4zSWZp5", "confirmation_method": "automatic", - "created": 1701789505, + "created": 1701973718, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0ODKuuB1fWySn2JjFgzR4", + "latest_charge": "ch_3OKmJOKuuB1fWySn1jEHvDIc", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OCKuuB1fWySnXXYtmIqO", + "payment_method": "pm_1OKmJNKuuB1fWySnXbtfpMzQ", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -645,10 +645,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:28 GMT + recorded_at: Thu, 07 Dec 2023 18:28:40 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0ODKuuB1fWySn2L39JsPV + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJOKuuB1fWySn1EG3DBrp body: encoding: US-ASCII string: '' @@ -660,7 +660,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_RyhaEhFojMNcKq","request_duration_ms":1021}}' + - '{"last_request_metrics":{"request_id":"req_AgFvIKgfAAjEpH","request_duration_ms":1042}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -680,7 +680,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:29 GMT + - Thu, 07 Dec 2023 18:28:41 GMT Content-Type: - application/json Content-Length: @@ -706,7 +706,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_WISMFz5TxsTsH2 + - req_araVCsbLmdiFae Stripe-Version: - '2023-10-16' Vary: @@ -719,7 +719,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0ODKuuB1fWySn2L39JsPV", + "id": "pi_3OKmJOKuuB1fWySn1EG3DBrp", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -733,20 +733,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0ODKuuB1fWySn2L39JsPV_secret_pMYnFNWohTPsSdwOOSmfS4lIF", + "client_secret": "pi_3OKmJOKuuB1fWySn1EG3DBrp_secret_fXwgDxjDOwTNY13tZL4zSWZp5", "confirmation_method": "automatic", - "created": 1701789505, + "created": 1701973718, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0ODKuuB1fWySn2JjFgzR4", + "latest_charge": "ch_3OKmJOKuuB1fWySn1jEHvDIc", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OCKuuB1fWySnXXYtmIqO", + "payment_method": "pm_1OKmJNKuuB1fWySnXbtfpMzQ", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -771,5 +771,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:28 GMT + recorded_at: Thu, 07 Dec 2023 18:28:41 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml index 9f8e999b7e..d80f4f2e04 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_fEQMyAwtwZBVEk","request_duration_ms":411}}' + - '{"last_request_metrics":{"request_id":"req_kAIe6xCppOR1Ft","request_duration_ms":310}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:21 GMT + - Thu, 07 Dec 2023 18:28:35 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 1e540e0b-0403-4021-9fe1-ff7244b01325 + - 2854c0f6-fb88-4c90-a488-e8c12277adf7 Original-Request: - - req_2wmS5fABuqN6wt + - req_6iUVpZopNxz0gC Request-Id: - - req_2wmS5fABuqN6wt + - req_6iUVpZopNxz0gC Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0O9KuuB1fWySnYxg1USuQ", + "id": "pm_1OKmJLKuuB1fWySnseeGy2RU", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789501, + "created": 1701973715, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:18:21 GMT + recorded_at: Thu, 07 Dec 2023 18:28:35 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0O9KuuB1fWySnYxg1USuQ&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmJLKuuB1fWySnseeGy2RU&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_2wmS5fABuqN6wt","request_duration_ms":583}}' + - '{"last_request_metrics":{"request_id":"req_6iUVpZopNxz0gC","request_duration_ms":471}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:22 GMT + - Thu, 07 Dec 2023 18:28:36 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 82413363-4d46-48ca-b23c-a2f89b7fa445 + - 0ffca74e-c66b-4225-b1db-24c0873ff0cb Original-Request: - - req_sILOyo6TfjinMP + - req_GL9T6tS5KBKigv Request-Id: - - req_sILOyo6TfjinMP + - req_GL9T6tS5KBKigv Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0O9KuuB1fWySn2dzGWJDM", + "id": "pi_3OKmJMKuuB1fWySn013jWh8S", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0O9KuuB1fWySn2dzGWJDM_secret_iwQSzWjIVFSMUymOSFfcR2yXm", + "client_secret": "pi_3OKmJMKuuB1fWySn013jWh8S_secret_mUuqAkX1KIV8PzVQKZ4xlAkBM", "confirmation_method": "automatic", - "created": 1701789501, + "created": 1701973716, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0O9KuuB1fWySnYxg1USuQ", + "payment_method": "pm_1OKmJLKuuB1fWySnseeGy2RU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:21 GMT + recorded_at: Thu, 07 Dec 2023 18:28:36 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0O9KuuB1fWySn2dzGWJDM/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJMKuuB1fWySn013jWh8S/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_sILOyo6TfjinMP","request_duration_ms":650}}' + - '{"last_request_metrics":{"request_id":"req_GL9T6tS5KBKigv","request_duration_ms":389}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:23 GMT + - Thu, 07 Dec 2023 18:28:37 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - d8f9a2a4-3514-4083-9bbc-2510ebe95077 + - 55d3d5fe-5d79-45c3-902a-d4b660b7b5f0 Original-Request: - - req_ryGKj05BBCSD8X + - req_HLF49wnac27NFV Request-Id: - - req_ryGKj05BBCSD8X + - req_HLF49wnac27NFV Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0O9KuuB1fWySn2dzGWJDM", + "id": "pi_3OKmJMKuuB1fWySn013jWh8S", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0O9KuuB1fWySn2dzGWJDM_secret_iwQSzWjIVFSMUymOSFfcR2yXm", + "client_secret": "pi_3OKmJMKuuB1fWySn013jWh8S_secret_mUuqAkX1KIV8PzVQKZ4xlAkBM", "confirmation_method": "automatic", - "created": 1701789501, + "created": 1701973716, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0O9KuuB1fWySn2kmXf3Z1", + "latest_charge": "ch_3OKmJMKuuB1fWySn0uY0EK6o", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0O9KuuB1fWySnYxg1USuQ", + "payment_method": "pm_1OKmJLKuuB1fWySnseeGy2RU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,131 +387,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:23 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0O9KuuB1fWySn2dzGWJDM - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_ryGKj05BBCSD8X","request_duration_ms":1249}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 - (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) - #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Tue, 05 Dec 2023 15:18:24 GMT - Content-Type: - - application/json - Content-Length: - - '1365' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; - block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action - 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; - style-src 'self' - Request-Id: - - req_WmC2NruzVUF1qB - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OK0O9KuuB1fWySn2dzGWJDM", - "object": "payment_intent", - "amount": 100, - "amount_capturable": 100, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OK0O9KuuB1fWySn2dzGWJDM_secret_iwQSzWjIVFSMUymOSFfcR2yXm", - "confirmation_method": "automatic", - "created": 1701789501, - "currency": "eur", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OK0O9KuuB1fWySn2kmXf3Z1", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OK0O9KuuB1fWySnYxg1USuQ", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_capture", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Tue, 05 Dec 2023 15:18:24 GMT + recorded_at: Thu, 07 Dec 2023 18:28:37 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/captures_the_payment.yml index 8e21f99ef2..506ce1f525 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_gF5BV3665PJPDP","request_duration_ms":368}}' + - '{"last_request_metrics":{"request_id":"req_sWVCKRmv0UL55D","request_duration_ms":1146}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:32 GMT + - Thu, 07 Dec 2023 18:28:44 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - d48744a5-5171-4a65-87a0-f708d6a36a5f + - 2cdb64fc-65cc-4611-b06e-9a0319829128 Original-Request: - - req_RrZ1sJtovOOBje + - req_2Pw3YnPZZDZIcG Request-Id: - - req_RrZ1sJtovOOBje + - req_2Pw3YnPZZDZIcG Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0OKKuuB1fWySn6WzTbGV2", + "id": "pm_1OKmJTKuuB1fWySnjC6ITQSC", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789512, + "created": 1701973724, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:18:31 GMT + recorded_at: Thu, 07 Dec 2023 18:28:44 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0OKKuuB1fWySn6WzTbGV2&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmJTKuuB1fWySnjC6ITQSC&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_RrZ1sJtovOOBje","request_duration_ms":513}}' + - '{"last_request_metrics":{"request_id":"req_2Pw3YnPZZDZIcG","request_duration_ms":495}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:32 GMT + - Thu, 07 Dec 2023 18:28:44 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 36c9609b-1c1d-4196-83ed-b06942b1990b + - 77f353c2-6ea9-4577-91f0-0c51219cf040 Original-Request: - - req_s2WqG1gJrDeKCm + - req_2qGL7fLXMCNXGQ Request-Id: - - req_s2WqG1gJrDeKCm + - req_2qGL7fLXMCNXGQ Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OKKuuB1fWySn0TJin4D9", + "id": "pi_3OKmJUKuuB1fWySn2KjmRxDw", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OKKuuB1fWySn0TJin4D9_secret_ljmW3elp3sfCUMyAzATpJYIp5", + "client_secret": "pi_3OKmJUKuuB1fWySn2KjmRxDw_secret_OqPKsHIK7mvnVb7FRfC5Ny7XT", "confirmation_method": "automatic", - "created": 1701789512, + "created": 1701973724, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OKKuuB1fWySn6WzTbGV2", + "payment_method": "pm_1OKmJTKuuB1fWySnjC6ITQSC", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:32 GMT + recorded_at: Thu, 07 Dec 2023 18:28:44 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OKKuuB1fWySn0TJin4D9/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJUKuuB1fWySn2KjmRxDw/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_s2WqG1gJrDeKCm","request_duration_ms":614}}' + - '{"last_request_metrics":{"request_id":"req_2qGL7fLXMCNXGQ","request_duration_ms":521}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:33 GMT + - Thu, 07 Dec 2023 18:28:45 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - b2fecd39-2e57-4906-8be0-c1ba7721e9c1 + - 83162567-a955-4d3a-b946-1296ece649d5 Original-Request: - - req_8ypzoboT7DiogX + - req_Om2PyKu9OkV60d Request-Id: - - req_8ypzoboT7DiogX + - req_Om2PyKu9OkV60d Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OKKuuB1fWySn0TJin4D9", + "id": "pi_3OKmJUKuuB1fWySn2KjmRxDw", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OKKuuB1fWySn0TJin4D9_secret_ljmW3elp3sfCUMyAzATpJYIp5", + "client_secret": "pi_3OKmJUKuuB1fWySn2KjmRxDw_secret_OqPKsHIK7mvnVb7FRfC5Ny7XT", "confirmation_method": "automatic", - "created": 1701789512, + "created": 1701973724, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OKKuuB1fWySn0oj3Kykf", + "latest_charge": "ch_3OKmJUKuuB1fWySn2KOuCSOk", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OKKuuB1fWySn6WzTbGV2", + "payment_method": "pm_1OKmJTKuuB1fWySnjC6ITQSC", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:33 GMT + recorded_at: Thu, 07 Dec 2023 18:28:45 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OKKuuB1fWySn0TJin4D9 + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJUKuuB1fWySn2KjmRxDw body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_8ypzoboT7DiogX","request_duration_ms":1047}}' + - '{"last_request_metrics":{"request_id":"req_Om2PyKu9OkV60d","request_duration_ms":936}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:34 GMT + - Thu, 07 Dec 2023 18:28:46 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_XmZiX7jkQguWjO + - req_KGApzYXvFQvQmB Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OKKuuB1fWySn0TJin4D9", + "id": "pi_3OKmJUKuuB1fWySn2KjmRxDw", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OKKuuB1fWySn0TJin4D9_secret_ljmW3elp3sfCUMyAzATpJYIp5", + "client_secret": "pi_3OKmJUKuuB1fWySn2KjmRxDw_secret_OqPKsHIK7mvnVb7FRfC5Ny7XT", "confirmation_method": "automatic", - "created": 1701789512, + "created": 1701973724, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OKKuuB1fWySn0oj3Kykf", + "latest_charge": "ch_3OKmJUKuuB1fWySn2KOuCSOk", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OKKuuB1fWySn6WzTbGV2", + "payment_method": "pm_1OKmJTKuuB1fWySnjC6ITQSC", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,10 +513,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:33 GMT + recorded_at: Thu, 07 Dec 2023 18:28:46 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OKKuuB1fWySn0TJin4D9/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJUKuuB1fWySn2KjmRxDw/capture body: encoding: US-ASCII string: '' @@ -528,7 +528,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_XmZiX7jkQguWjO","request_duration_ms":408}}' + - '{"last_request_metrics":{"request_id":"req_KGApzYXvFQvQmB","request_duration_ms":314}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -548,7 +548,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:35 GMT + - Thu, 07 Dec 2023 18:28:47 GMT Content-Type: - application/json Content-Length: @@ -574,11 +574,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - f68fe172-f97a-452f-b7c9-b8ef61b69b4d + - 8b107f0a-367c-41f8-8bd5-bba58c073c58 Original-Request: - - req_ccAEZHbsZ6WPUJ + - req_ZPjBWEy3Y49c8h Request-Id: - - req_ccAEZHbsZ6WPUJ + - req_ZPjBWEy3Y49c8h Stripe-Should-Retry: - 'false' Stripe-Version: @@ -593,7 +593,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OKKuuB1fWySn0TJin4D9", + "id": "pi_3OKmJUKuuB1fWySn2KjmRxDw", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -607,20 +607,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OKKuuB1fWySn0TJin4D9_secret_ljmW3elp3sfCUMyAzATpJYIp5", + "client_secret": "pi_3OKmJUKuuB1fWySn2KjmRxDw_secret_OqPKsHIK7mvnVb7FRfC5Ny7XT", "confirmation_method": "automatic", - "created": 1701789512, + "created": 1701973724, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OKKuuB1fWySn0oj3Kykf", + "latest_charge": "ch_3OKmJUKuuB1fWySn2KOuCSOk", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OKKuuB1fWySn6WzTbGV2", + "payment_method": "pm_1OKmJTKuuB1fWySnjC6ITQSC", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -645,10 +645,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:35 GMT + recorded_at: Thu, 07 Dec 2023 18:28:47 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OKKuuB1fWySn0TJin4D9 + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJUKuuB1fWySn2KjmRxDw body: encoding: US-ASCII string: '' @@ -660,7 +660,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_ccAEZHbsZ6WPUJ","request_duration_ms":1071}}' + - '{"last_request_metrics":{"request_id":"req_ZPjBWEy3Y49c8h","request_duration_ms":1148}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -680,7 +680,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:35 GMT + - Thu, 07 Dec 2023 18:28:47 GMT Content-Type: - application/json Content-Length: @@ -706,7 +706,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_FsWpCIItxhZwAx + - req_XHDBz2Pm2pBXiS Stripe-Version: - '2023-10-16' Vary: @@ -719,7 +719,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OKKuuB1fWySn0TJin4D9", + "id": "pi_3OKmJUKuuB1fWySn2KjmRxDw", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -733,20 +733,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OKKuuB1fWySn0TJin4D9_secret_ljmW3elp3sfCUMyAzATpJYIp5", + "client_secret": "pi_3OKmJUKuuB1fWySn2KjmRxDw_secret_OqPKsHIK7mvnVb7FRfC5Ny7XT", "confirmation_method": "automatic", - "created": 1701789512, + "created": 1701973724, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OKKuuB1fWySn0oj3Kykf", + "latest_charge": "ch_3OKmJUKuuB1fWySn2KOuCSOk", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OKKuuB1fWySn6WzTbGV2", + "payment_method": "pm_1OKmJTKuuB1fWySnjC6ITQSC", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -771,5 +771,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:35 GMT + recorded_at: Thu, 07 Dec 2023 18:28:47 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml index b3495c2241..0264aa435d 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Diners_Club_14-digit_card_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_WISMFz5TxsTsH2","request_duration_ms":347}}' + - '{"last_request_metrics":{"request_id":"req_araVCsbLmdiFae","request_duration_ms":415}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:29 GMT + - Thu, 07 Dec 2023 18:28:41 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 6de8d9b8-4e18-4b06-8db0-4866f971af3d + - 24fc2d85-cc5c-4bda-918a-18daee9d9bc0 Original-Request: - - req_pMgRt6g1WYtnVF + - req_wjRRAOn9PRBDEs Request-Id: - - req_pMgRt6g1WYtnVF + - req_wjRRAOn9PRBDEs Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0OHKuuB1fWySnfdKrLSaO", + "id": "pm_1OKmJRKuuB1fWySnw2b0FJnx", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789509, + "created": 1701973721, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:18:29 GMT + recorded_at: Thu, 07 Dec 2023 18:28:41 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0OHKuuB1fWySnfdKrLSaO&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmJRKuuB1fWySnw2b0FJnx&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_pMgRt6g1WYtnVF","request_duration_ms":460}}' + - '{"last_request_metrics":{"request_id":"req_wjRRAOn9PRBDEs","request_duration_ms":489}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:30 GMT + - Thu, 07 Dec 2023 18:28:42 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 960de879-0f49-4887-a35f-96a1ef5a0dde + - 58e3389e-1782-45e2-a2eb-21556ae31906 Original-Request: - - req_tRlxa4A80syvcP + - req_xr6sPLFJyz0UXJ Request-Id: - - req_tRlxa4A80syvcP + - req_xr6sPLFJyz0UXJ Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OHKuuB1fWySn1Gh3RVWD", + "id": "pi_3OKmJSKuuB1fWySn1b2vDreK", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OHKuuB1fWySn1Gh3RVWD_secret_027i8OfISkmpgjbIjkZTDcrS7", + "client_secret": "pi_3OKmJSKuuB1fWySn1b2vDreK_secret_46GGo9ECzMqniN9kW9QF5IC5i", "confirmation_method": "automatic", - "created": 1701789509, + "created": 1701973722, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OHKuuB1fWySnfdKrLSaO", + "payment_method": "pm_1OKmJRKuuB1fWySnw2b0FJnx", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:29 GMT + recorded_at: Thu, 07 Dec 2023 18:28:42 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OHKuuB1fWySn1Gh3RVWD/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJSKuuB1fWySn1b2vDreK/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_tRlxa4A80syvcP","request_duration_ms":512}}' + - '{"last_request_metrics":{"request_id":"req_xr6sPLFJyz0UXJ","request_duration_ms":415}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:31 GMT + - Thu, 07 Dec 2023 18:28:43 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 1c003b8f-8c3b-4faf-8125-f133cb4e1669 + - ee28f2c6-1b4a-490e-bdde-ef209ae2c34b Original-Request: - - req_QaocmSTOevIwEa + - req_sWVCKRmv0UL55D Request-Id: - - req_QaocmSTOevIwEa + - req_sWVCKRmv0UL55D Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OHKuuB1fWySn1Gh3RVWD", + "id": "pi_3OKmJSKuuB1fWySn1b2vDreK", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OHKuuB1fWySn1Gh3RVWD_secret_027i8OfISkmpgjbIjkZTDcrS7", + "client_secret": "pi_3OKmJSKuuB1fWySn1b2vDreK_secret_46GGo9ECzMqniN9kW9QF5IC5i", "confirmation_method": "automatic", - "created": 1701789509, + "created": 1701973722, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OHKuuB1fWySn1LDXECIw", + "latest_charge": "ch_3OKmJSKuuB1fWySn1gX4QHJ1", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OHKuuB1fWySnfdKrLSaO", + "payment_method": "pm_1OKmJRKuuB1fWySnw2b0FJnx", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,131 +387,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:30 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OHKuuB1fWySn1Gh3RVWD - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_QaocmSTOevIwEa","request_duration_ms":962}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 - (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) - #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Tue, 05 Dec 2023 15:18:31 GMT - Content-Type: - - application/json - Content-Length: - - '1365' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; - block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action - 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; - style-src 'self' - Request-Id: - - req_gF5BV3665PJPDP - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OK0OHKuuB1fWySn1Gh3RVWD", - "object": "payment_intent", - "amount": 100, - "amount_capturable": 100, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OK0OHKuuB1fWySn1Gh3RVWD_secret_027i8OfISkmpgjbIjkZTDcrS7", - "confirmation_method": "automatic", - "created": 1701789509, - "currency": "eur", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OK0OHKuuB1fWySn1LDXECIw", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OK0OHKuuB1fWySnfdKrLSaO", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_capture", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Tue, 05 Dec 2023 15:18:31 GMT + recorded_at: Thu, 07 Dec 2023 18:28:43 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/captures_the_payment.yml index 5454ad1597..d522faa696 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_1hLpMPmHEGomFh","request_duration_ms":407}}' + - '{"last_request_metrics":{"request_id":"req_cwXS7ks1cOCbZK","request_duration_ms":962}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:08 GMT + - Thu, 07 Dec 2023 18:28:24 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - e958287d-3f3b-4aea-b4aa-23506d886393 + - d6619b76-761f-47c6-a4da-15d7591134db Original-Request: - - req_INtOy9prrhZKbl + - req_v5sM7TRJhCQruh Request-Id: - - req_INtOy9prrhZKbl + - req_v5sM7TRJhCQruh Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0NwKuuB1fWySnfUgFlKXB", + "id": "pm_1OKmJAKuuB1fWySnUwvZFkjA", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789488, + "created": 1701973704, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:18:08 GMT + recorded_at: Thu, 07 Dec 2023 18:28:24 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0NwKuuB1fWySnfUgFlKXB&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmJAKuuB1fWySnUwvZFkjA&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_INtOy9prrhZKbl","request_duration_ms":698}}' + - '{"last_request_metrics":{"request_id":"req_v5sM7TRJhCQruh","request_duration_ms":525}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:08 GMT + - Thu, 07 Dec 2023 18:28:25 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 10001b20-617a-4f79-a704-de9ffc21985f + - 5a74885b-f183-4012-b577-079463f64d7b Original-Request: - - req_yYXtKZ4VDOonsV + - req_nE6yQaw89w2nZX Request-Id: - - req_yYXtKZ4VDOonsV + - req_nE6yQaw89w2nZX Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NwKuuB1fWySn0fgo2maD", + "id": "pi_3OKmJBKuuB1fWySn0ypB5UIt", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NwKuuB1fWySn0fgo2maD_secret_pkX6XOmt6wkplCy8JMO28QVlZ", + "client_secret": "pi_3OKmJBKuuB1fWySn0ypB5UIt_secret_a2df6qo02GJIuS0pRKAfK6TC1", "confirmation_method": "automatic", - "created": 1701789488, + "created": 1701973705, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NwKuuB1fWySnfUgFlKXB", + "payment_method": "pm_1OKmJAKuuB1fWySnUwvZFkjA", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:08 GMT + recorded_at: Thu, 07 Dec 2023 18:28:25 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NwKuuB1fWySn0fgo2maD/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJBKuuB1fWySn0ypB5UIt/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_yYXtKZ4VDOonsV","request_duration_ms":627}}' + - '{"last_request_metrics":{"request_id":"req_nE6yQaw89w2nZX","request_duration_ms":422}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:10 GMT + - Thu, 07 Dec 2023 18:28:26 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - ac79c4ad-ea9f-4d6c-b7dc-26f89a83facc + - b9dc5601-bbff-4b97-b203-34bc5c59330f Original-Request: - - req_e5q1D2vKSl0DnF + - req_HP61UxlDambrUJ Request-Id: - - req_e5q1D2vKSl0DnF + - req_HP61UxlDambrUJ Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NwKuuB1fWySn0fgo2maD", + "id": "pi_3OKmJBKuuB1fWySn0ypB5UIt", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NwKuuB1fWySn0fgo2maD_secret_pkX6XOmt6wkplCy8JMO28QVlZ", + "client_secret": "pi_3OKmJBKuuB1fWySn0ypB5UIt_secret_a2df6qo02GJIuS0pRKAfK6TC1", "confirmation_method": "automatic", - "created": 1701789488, + "created": 1701973705, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NwKuuB1fWySn0kCldUqy", + "latest_charge": "ch_3OKmJBKuuB1fWySn05oMGh0W", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NwKuuB1fWySnfUgFlKXB", + "payment_method": "pm_1OKmJAKuuB1fWySnUwvZFkjA", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:09 GMT + recorded_at: Thu, 07 Dec 2023 18:28:26 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NwKuuB1fWySn0fgo2maD + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJBKuuB1fWySn0ypB5UIt body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_e5q1D2vKSl0DnF","request_duration_ms":1249}}' + - '{"last_request_metrics":{"request_id":"req_HP61UxlDambrUJ","request_duration_ms":1137}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:10 GMT + - Thu, 07 Dec 2023 18:28:26 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_rXIL9kFKAQqZXW + - req_CHru0T9gMSy7A5 Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NwKuuB1fWySn0fgo2maD", + "id": "pi_3OKmJBKuuB1fWySn0ypB5UIt", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NwKuuB1fWySn0fgo2maD_secret_pkX6XOmt6wkplCy8JMO28QVlZ", + "client_secret": "pi_3OKmJBKuuB1fWySn0ypB5UIt_secret_a2df6qo02GJIuS0pRKAfK6TC1", "confirmation_method": "automatic", - "created": 1701789488, + "created": 1701973705, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NwKuuB1fWySn0kCldUqy", + "latest_charge": "ch_3OKmJBKuuB1fWySn05oMGh0W", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NwKuuB1fWySnfUgFlKXB", + "payment_method": "pm_1OKmJAKuuB1fWySnUwvZFkjA", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,10 +513,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:10 GMT + recorded_at: Thu, 07 Dec 2023 18:28:26 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NwKuuB1fWySn0fgo2maD/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJBKuuB1fWySn0ypB5UIt/capture body: encoding: US-ASCII string: '' @@ -528,7 +528,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_rXIL9kFKAQqZXW","request_duration_ms":414}}' + - '{"last_request_metrics":{"request_id":"req_CHru0T9gMSy7A5","request_duration_ms":412}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -548,7 +548,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:11 GMT + - Thu, 07 Dec 2023 18:28:27 GMT Content-Type: - application/json Content-Length: @@ -574,11 +574,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 93b2b280-7a0b-4df2-b26c-5dd7cd114136 + - a5b89c95-ff9d-4a44-aa6a-ae6f957b7dea Original-Request: - - req_24U8Ir715ClZBs + - req_I7tVElxyanm1lc Request-Id: - - req_24U8Ir715ClZBs + - req_I7tVElxyanm1lc Stripe-Should-Retry: - 'false' Stripe-Version: @@ -593,7 +593,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NwKuuB1fWySn0fgo2maD", + "id": "pi_3OKmJBKuuB1fWySn0ypB5UIt", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -607,20 +607,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NwKuuB1fWySn0fgo2maD_secret_pkX6XOmt6wkplCy8JMO28QVlZ", + "client_secret": "pi_3OKmJBKuuB1fWySn0ypB5UIt_secret_a2df6qo02GJIuS0pRKAfK6TC1", "confirmation_method": "automatic", - "created": 1701789488, + "created": 1701973705, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NwKuuB1fWySn0kCldUqy", + "latest_charge": "ch_3OKmJBKuuB1fWySn05oMGh0W", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NwKuuB1fWySnfUgFlKXB", + "payment_method": "pm_1OKmJAKuuB1fWySnUwvZFkjA", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -645,10 +645,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:11 GMT + recorded_at: Thu, 07 Dec 2023 18:28:28 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NwKuuB1fWySn0fgo2maD + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJBKuuB1fWySn0ypB5UIt body: encoding: US-ASCII string: '' @@ -660,7 +660,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_24U8Ir715ClZBs","request_duration_ms":997}}' + - '{"last_request_metrics":{"request_id":"req_I7tVElxyanm1lc","request_duration_ms":1148}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -680,7 +680,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:12 GMT + - Thu, 07 Dec 2023 18:28:28 GMT Content-Type: - application/json Content-Length: @@ -706,7 +706,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_JrYczcmiuxsmqo + - req_FfiMS2b6qOmEQG Stripe-Version: - '2023-10-16' Vary: @@ -719,7 +719,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NwKuuB1fWySn0fgo2maD", + "id": "pi_3OKmJBKuuB1fWySn0ypB5UIt", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -733,20 +733,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NwKuuB1fWySn0fgo2maD_secret_pkX6XOmt6wkplCy8JMO28QVlZ", + "client_secret": "pi_3OKmJBKuuB1fWySn0ypB5UIt_secret_a2df6qo02GJIuS0pRKAfK6TC1", "confirmation_method": "automatic", - "created": 1701789488, + "created": 1701973705, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NwKuuB1fWySn0kCldUqy", + "latest_charge": "ch_3OKmJBKuuB1fWySn05oMGh0W", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NwKuuB1fWySnfUgFlKXB", + "payment_method": "pm_1OKmJAKuuB1fWySnUwvZFkjA", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -771,5 +771,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:11 GMT + recorded_at: Thu, 07 Dec 2023 18:28:28 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml index ac4699095e..e6436a9e85 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_CpRbwgH4d5pN4d","request_duration_ms":1}}' + - '{"last_request_metrics":{"request_id":"req_zD6wFMnswpGKqr","request_duration_ms":1}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:05 GMT + - Thu, 07 Dec 2023 18:28:22 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 81d2d69c-8a49-4c1f-ac8b-da505d6a5703 + - a371ebf5-421c-4cb0-b135-fea1b214c56c Original-Request: - - req_RxgTHuCyiQnRk7 + - req_97Uzu4n2hzrnex Request-Id: - - req_RxgTHuCyiQnRk7 + - req_97Uzu4n2hzrnex Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0NsKuuB1fWySnu84NwBCO", + "id": "pm_1OKmJ8KuuB1fWySnFFZNdcg0", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789484, + "created": 1701973702, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:18:04 GMT + recorded_at: Thu, 07 Dec 2023 18:28:22 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0NsKuuB1fWySnu84NwBCO&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmJ8KuuB1fWySnFFZNdcg0&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_RxgTHuCyiQnRk7","request_duration_ms":958}}' + - '{"last_request_metrics":{"request_id":"req_97Uzu4n2hzrnex","request_duration_ms":668}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:05 GMT + - Thu, 07 Dec 2023 18:28:23 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - '00099559-508e-4f1e-8a4c-d5cd59156464' + - 5e1f85f1-80ea-437b-9cbf-3de7da684ad6 Original-Request: - - req_WdkrWLU7ikaF70 + - req_RHMgbmehj5UxPu Request-Id: - - req_WdkrWLU7ikaF70 + - req_RHMgbmehj5UxPu Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NtKuuB1fWySn2Kfuyw7h", + "id": "pi_3OKmJ8KuuB1fWySn2Ui92cOG", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NtKuuB1fWySn2Kfuyw7h_secret_IcrdkpBJDS4uarpm4zKW8pg1b", + "client_secret": "pi_3OKmJ8KuuB1fWySn2Ui92cOG_secret_yXbkeTGZbIBSO2zTw0B7WwKEp", "confirmation_method": "automatic", - "created": 1701789485, + "created": 1701973702, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NsKuuB1fWySnu84NwBCO", + "payment_method": "pm_1OKmJ8KuuB1fWySnFFZNdcg0", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:05 GMT + recorded_at: Thu, 07 Dec 2023 18:28:23 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NtKuuB1fWySn2Kfuyw7h/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJ8KuuB1fWySn2Ui92cOG/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_WdkrWLU7ikaF70","request_duration_ms":623}}' + - '{"last_request_metrics":{"request_id":"req_RHMgbmehj5UxPu","request_duration_ms":414}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:06 GMT + - Thu, 07 Dec 2023 18:28:24 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - d5224c97-e4fb-4c78-a50d-4acce1ebc6ad + - aaaa69e3-7536-4cc5-b01a-08556d88f645 Original-Request: - - req_XnN991eTwOsoHl + - req_cwXS7ks1cOCbZK Request-Id: - - req_XnN991eTwOsoHl + - req_cwXS7ks1cOCbZK Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NtKuuB1fWySn2Kfuyw7h", + "id": "pi_3OKmJ8KuuB1fWySn2Ui92cOG", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NtKuuB1fWySn2Kfuyw7h_secret_IcrdkpBJDS4uarpm4zKW8pg1b", + "client_secret": "pi_3OKmJ8KuuB1fWySn2Ui92cOG_secret_yXbkeTGZbIBSO2zTw0B7WwKEp", "confirmation_method": "automatic", - "created": 1701789485, + "created": 1701973702, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NtKuuB1fWySn2ufFrZM7", + "latest_charge": "ch_3OKmJ8KuuB1fWySn2Pxd5Fse", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NsKuuB1fWySnu84NwBCO", + "payment_method": "pm_1OKmJ8KuuB1fWySnFFZNdcg0", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,131 +387,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:06 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NtKuuB1fWySn2Kfuyw7h - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_XnN991eTwOsoHl","request_duration_ms":1147}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 - (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) - #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Tue, 05 Dec 2023 15:18:07 GMT - Content-Type: - - application/json - Content-Length: - - '1365' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; - block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action - 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; - style-src 'self' - Request-Id: - - req_1hLpMPmHEGomFh - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OK0NtKuuB1fWySn2Kfuyw7h", - "object": "payment_intent", - "amount": 100, - "amount_capturable": 100, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OK0NtKuuB1fWySn2Kfuyw7h_secret_IcrdkpBJDS4uarpm4zKW8pg1b", - "confirmation_method": "automatic", - "created": 1701789485, - "currency": "eur", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OK0NtKuuB1fWySn2ufFrZM7", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OK0NsKuuB1fWySnu84NwBCO", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_capture", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Tue, 05 Dec 2023 15:18:07 GMT + recorded_at: Thu, 07 Dec 2023 18:28:24 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/captures_the_payment.yml index 426d497ad3..3d38c29ad9 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_1ViTQrzG25an8r","request_duration_ms":343}}' + - '{"last_request_metrics":{"request_id":"req_OD7p5YtOsxltu9","request_duration_ms":1059}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:16 GMT + - Thu, 07 Dec 2023 18:28:31 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - adfd1f8f-bf3a-42e0-941a-272c70a59898 + - c1e4f271-bfb2-4296-979b-9099c49c6f46 Original-Request: - - req_XOmgvSPLOaHPTD + - req_xPbZhogaRhHYgT Request-Id: - - req_XOmgvSPLOaHPTD + - req_xPbZhogaRhHYgT Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0O4KuuB1fWySnKFzLZy7M", + "id": "pm_1OKmJHKuuB1fWySnNvcABlrU", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789496, + "created": 1701973711, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:18:16 GMT + recorded_at: Thu, 07 Dec 2023 18:28:32 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0O4KuuB1fWySnKFzLZy7M&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmJHKuuB1fWySnNvcABlrU&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_XOmgvSPLOaHPTD","request_duration_ms":625}}' + - '{"last_request_metrics":{"request_id":"req_xPbZhogaRhHYgT","request_duration_ms":564}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:17 GMT + - Thu, 07 Dec 2023 18:28:32 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 1319002a-695f-49d5-bcef-cc3e4f336306 + - 403e3865-38f3-487c-967e-3105b60f2524 Original-Request: - - req_SF5blWQN8HY02X + - req_ftBzg0caAM1Qqv Request-Id: - - req_SF5blWQN8HY02X + - req_ftBzg0caAM1Qqv Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0O4KuuB1fWySn0JWVs3Qx", + "id": "pi_3OKmJIKuuB1fWySn1WzSGvNe", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0O4KuuB1fWySn0JWVs3Qx_secret_aaKp4Wge3a97zkCW7XNUdV2At", + "client_secret": "pi_3OKmJIKuuB1fWySn1WzSGvNe_secret_SAlOiMxH7DdLkGXUpaDweL206", "confirmation_method": "automatic", - "created": 1701789496, + "created": 1701973712, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0O4KuuB1fWySnKFzLZy7M", + "payment_method": "pm_1OKmJHKuuB1fWySnNvcABlrU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:16 GMT + recorded_at: Thu, 07 Dec 2023 18:28:32 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0O4KuuB1fWySn0JWVs3Qx/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJIKuuB1fWySn1WzSGvNe/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_SF5blWQN8HY02X","request_duration_ms":624}}' + - '{"last_request_metrics":{"request_id":"req_ftBzg0caAM1Qqv","request_duration_ms":517}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:18 GMT + - Thu, 07 Dec 2023 18:28:33 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 158f7b7e-470f-4b25-a0a2-67eeec2a26a3 + - b45a3817-e11e-49af-8a6d-d5748bd0280d Original-Request: - - req_FMRk10uH8NkKdm + - req_SUicJu4uLdSmku Request-Id: - - req_FMRk10uH8NkKdm + - req_SUicJu4uLdSmku Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0O4KuuB1fWySn0JWVs3Qx", + "id": "pi_3OKmJIKuuB1fWySn1WzSGvNe", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0O4KuuB1fWySn0JWVs3Qx_secret_aaKp4Wge3a97zkCW7XNUdV2At", + "client_secret": "pi_3OKmJIKuuB1fWySn1WzSGvNe_secret_SAlOiMxH7DdLkGXUpaDweL206", "confirmation_method": "automatic", - "created": 1701789496, + "created": 1701973712, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0O4KuuB1fWySn0kpZFFlH", + "latest_charge": "ch_3OKmJIKuuB1fWySn1Sdmr5sg", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0O4KuuB1fWySnKFzLZy7M", + "payment_method": "pm_1OKmJHKuuB1fWySnNvcABlrU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:18 GMT + recorded_at: Thu, 07 Dec 2023 18:28:33 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0O4KuuB1fWySn0JWVs3Qx + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJIKuuB1fWySn1WzSGvNe body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_FMRk10uH8NkKdm","request_duration_ms":1454}}' + - '{"last_request_metrics":{"request_id":"req_SUicJu4uLdSmku","request_duration_ms":1044}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:19 GMT + - Thu, 07 Dec 2023 18:28:33 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_VUCGt5ByT8OUVS + - req_72SFtVmqLdXwRX Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0O4KuuB1fWySn0JWVs3Qx", + "id": "pi_3OKmJIKuuB1fWySn1WzSGvNe", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0O4KuuB1fWySn0JWVs3Qx_secret_aaKp4Wge3a97zkCW7XNUdV2At", + "client_secret": "pi_3OKmJIKuuB1fWySn1WzSGvNe_secret_SAlOiMxH7DdLkGXUpaDweL206", "confirmation_method": "automatic", - "created": 1701789496, + "created": 1701973712, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0O4KuuB1fWySn0kpZFFlH", + "latest_charge": "ch_3OKmJIKuuB1fWySn1Sdmr5sg", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0O4KuuB1fWySnKFzLZy7M", + "payment_method": "pm_1OKmJHKuuB1fWySnNvcABlrU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,10 +513,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:19 GMT + recorded_at: Thu, 07 Dec 2023 18:28:34 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0O4KuuB1fWySn0JWVs3Qx/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJIKuuB1fWySn1WzSGvNe/capture body: encoding: US-ASCII string: '' @@ -528,7 +528,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_VUCGt5ByT8OUVS","request_duration_ms":624}}' + - '{"last_request_metrics":{"request_id":"req_72SFtVmqLdXwRX","request_duration_ms":415}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -548,7 +548,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:20 GMT + - Thu, 07 Dec 2023 18:28:35 GMT Content-Type: - application/json Content-Length: @@ -574,11 +574,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - cfcb9cc1-92ce-4d7f-885b-0d13669c6190 + - 4d4d4173-9b50-4b04-b34c-dfba44b2efcf Original-Request: - - req_0wvjEfHuvcpIY5 + - req_RJzTPwJi8vWz1u Request-Id: - - req_0wvjEfHuvcpIY5 + - req_RJzTPwJi8vWz1u Stripe-Should-Retry: - 'false' Stripe-Version: @@ -593,7 +593,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0O4KuuB1fWySn0JWVs3Qx", + "id": "pi_3OKmJIKuuB1fWySn1WzSGvNe", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -607,20 +607,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0O4KuuB1fWySn0JWVs3Qx_secret_aaKp4Wge3a97zkCW7XNUdV2At", + "client_secret": "pi_3OKmJIKuuB1fWySn1WzSGvNe_secret_SAlOiMxH7DdLkGXUpaDweL206", "confirmation_method": "automatic", - "created": 1701789496, + "created": 1701973712, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0O4KuuB1fWySn0kpZFFlH", + "latest_charge": "ch_3OKmJIKuuB1fWySn1Sdmr5sg", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0O4KuuB1fWySnKFzLZy7M", + "payment_method": "pm_1OKmJHKuuB1fWySnNvcABlrU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -645,10 +645,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:20 GMT + recorded_at: Thu, 07 Dec 2023 18:28:35 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0O4KuuB1fWySn0JWVs3Qx + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJIKuuB1fWySn1WzSGvNe body: encoding: US-ASCII string: '' @@ -660,7 +660,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_0wvjEfHuvcpIY5","request_duration_ms":1252}}' + - '{"last_request_metrics":{"request_id":"req_RJzTPwJi8vWz1u","request_duration_ms":1042}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -680,7 +680,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:21 GMT + - Thu, 07 Dec 2023 18:28:35 GMT Content-Type: - application/json Content-Length: @@ -706,7 +706,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_fEQMyAwtwZBVEk + - req_kAIe6xCppOR1Ft Stripe-Version: - '2023-10-16' Vary: @@ -719,7 +719,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0O4KuuB1fWySn0JWVs3Qx", + "id": "pi_3OKmJIKuuB1fWySn1WzSGvNe", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -733,20 +733,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0O4KuuB1fWySn0JWVs3Qx_secret_aaKp4Wge3a97zkCW7XNUdV2At", + "client_secret": "pi_3OKmJIKuuB1fWySn1WzSGvNe_secret_SAlOiMxH7DdLkGXUpaDweL206", "confirmation_method": "automatic", - "created": 1701789496, + "created": 1701973712, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0O4KuuB1fWySn0kpZFFlH", + "latest_charge": "ch_3OKmJIKuuB1fWySn1Sdmr5sg", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0O4KuuB1fWySnKFzLZy7M", + "payment_method": "pm_1OKmJHKuuB1fWySnNvcABlrU", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -771,5 +771,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:20 GMT + recorded_at: Thu, 07 Dec 2023 18:28:35 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml index 1a9b1cce41..08c5cbc0e4 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Discover_debit_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_JrYczcmiuxsmqo","request_duration_ms":1}}' + - '{"last_request_metrics":{"request_id":"req_FfiMS2b6qOmEQG","request_duration_ms":1}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:13 GMT + - Thu, 07 Dec 2023 18:28:29 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 8fd36173-4e3e-4b30-b5ab-b604e0ba195d + - 53b19a47-52d8-4f9a-ae07-3ea89e2e4cbe Original-Request: - - req_SeX9YZbPRNCYsW + - req_99veUq6NVunpfC Request-Id: - - req_SeX9YZbPRNCYsW + - req_99veUq6NVunpfC Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0O1KuuB1fWySnXhmZxs6L", + "id": "pm_1OKmJFKuuB1fWySnG4RDCFdz", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789493, + "created": 1701973709, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:18:13 GMT + recorded_at: Thu, 07 Dec 2023 18:28:29 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0O1KuuB1fWySnXhmZxs6L&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmJFKuuB1fWySnG4RDCFdz&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_SeX9YZbPRNCYsW","request_duration_ms":934}}' + - '{"last_request_metrics":{"request_id":"req_99veUq6NVunpfC","request_duration_ms":648}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:14 GMT + - Thu, 07 Dec 2023 18:28:30 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - a2917253-5b6a-47e1-ab13-974ef7d12fd6 + - 87f74119-992f-40c1-bea4-4b381dd4d469 Original-Request: - - req_ReuFOaS57k9foi + - req_KsLxdPCr1krVpJ Request-Id: - - req_ReuFOaS57k9foi + - req_KsLxdPCr1krVpJ Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0O1KuuB1fWySn08yaTwHX", + "id": "pi_3OKmJFKuuB1fWySn0RiXDALk", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0O1KuuB1fWySn08yaTwHX_secret_qM2JJSY2jN2nvwbQXGknf7w4Y", + "client_secret": "pi_3OKmJFKuuB1fWySn0RiXDALk_secret_b6vDZ7eHAGmjUfRNW1Qb68anu", "confirmation_method": "automatic", - "created": 1701789493, + "created": 1701973709, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0O1KuuB1fWySnXhmZxs6L", + "payment_method": "pm_1OKmJFKuuB1fWySnG4RDCFdz", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:13 GMT + recorded_at: Thu, 07 Dec 2023 18:28:30 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0O1KuuB1fWySn08yaTwHX/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJFKuuB1fWySn0RiXDALk/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_ReuFOaS57k9foi","request_duration_ms":624}}' + - '{"last_request_metrics":{"request_id":"req_KsLxdPCr1krVpJ","request_duration_ms":397}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:15 GMT + - Thu, 07 Dec 2023 18:28:31 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 1d3ef5a0-c582-4e68-aae5-ea83ea4f51ed + - bfd90bfa-eff1-43ef-85c1-e22a24738449 Original-Request: - - req_0bOs0JxU4NQo4l + - req_OD7p5YtOsxltu9 Request-Id: - - req_0bOs0JxU4NQo4l + - req_OD7p5YtOsxltu9 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0O1KuuB1fWySn08yaTwHX", + "id": "pi_3OKmJFKuuB1fWySn0RiXDALk", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0O1KuuB1fWySn08yaTwHX_secret_qM2JJSY2jN2nvwbQXGknf7w4Y", + "client_secret": "pi_3OKmJFKuuB1fWySn0RiXDALk_secret_b6vDZ7eHAGmjUfRNW1Qb68anu", "confirmation_method": "automatic", - "created": 1701789493, + "created": 1701973709, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0O1KuuB1fWySn0vO4E9kM", + "latest_charge": "ch_3OKmJFKuuB1fWySn048wVScN", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0O1KuuB1fWySnXhmZxs6L", + "payment_method": "pm_1OKmJFKuuB1fWySnG4RDCFdz", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,131 +387,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:14 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0O1KuuB1fWySn08yaTwHX - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_0bOs0JxU4NQo4l","request_duration_ms":1146}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 - (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) - #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Tue, 05 Dec 2023 15:18:16 GMT - Content-Type: - - application/json - Content-Length: - - '1365' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; - block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action - 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; - style-src 'self' - Request-Id: - - req_1ViTQrzG25an8r - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OK0O1KuuB1fWySn08yaTwHX", - "object": "payment_intent", - "amount": 100, - "amount_capturable": 100, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OK0O1KuuB1fWySn08yaTwHX_secret_qM2JJSY2jN2nvwbQXGknf7w4Y", - "confirmation_method": "automatic", - "created": 1701789493, - "currency": "eur", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OK0O1KuuB1fWySn0vO4E9kM", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OK0O1KuuB1fWySnXhmZxs6L", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_capture", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Tue, 05 Dec 2023 15:18:15 GMT + recorded_at: Thu, 07 Dec 2023 18:28:31 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/captures_the_payment.yml index 55f4a37aa9..7e9ff3ceb6 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_gWKJoDXU4mFNz0","request_duration_ms":629}}' + - '{"last_request_metrics":{"request_id":"req_hMOPKjlp71sTjs","request_duration_ms":1042}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:47 GMT + - Thu, 07 Dec 2023 18:28:56 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 0d96667a-6f27-4ba2-aac5-2543ddb715d3 + - 8730788e-4b26-423e-9cab-c9ce8b9f6a97 Original-Request: - - req_8ksHnBQt6vz0QL + - req_7zQuJiyBZ3eveq Request-Id: - - req_8ksHnBQt6vz0QL + - req_7zQuJiyBZ3eveq Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0OYKuuB1fWySnDcZS566I", + "id": "pm_1OKmJgKuuB1fWySnMg6F1ldG", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789527, + "created": 1701973736, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:18:46 GMT + recorded_at: Thu, 07 Dec 2023 18:28:56 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0OYKuuB1fWySnDcZS566I&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmJgKuuB1fWySnMg6F1ldG&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_8ksHnBQt6vz0QL","request_duration_ms":489}}' + - '{"last_request_metrics":{"request_id":"req_7zQuJiyBZ3eveq","request_duration_ms":463}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:47 GMT + - Thu, 07 Dec 2023 18:28:56 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 62787329-17e8-4126-aed8-5f9ce9a469e2 + - d8f465a5-7576-4124-8575-da32c102afe3 Original-Request: - - req_gxl5CWrM8r64aH + - req_JHl5xfBvqL4suw Request-Id: - - req_gxl5CWrM8r64aH + - req_JHl5xfBvqL4suw Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OZKuuB1fWySn1p9EbBj3", + "id": "pi_3OKmJgKuuB1fWySn1hN5bJvx", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OZKuuB1fWySn1p9EbBj3_secret_ZzVWaxXn23nIQeyClWquzSu4U", + "client_secret": "pi_3OKmJgKuuB1fWySn1hN5bJvx_secret_4eQilOHsI4GRChCUc2zbW4fSn", "confirmation_method": "automatic", - "created": 1701789527, + "created": 1701973736, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OYKuuB1fWySnDcZS566I", + "payment_method": "pm_1OKmJgKuuB1fWySnMg6F1ldG", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:47 GMT + recorded_at: Thu, 07 Dec 2023 18:28:57 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OZKuuB1fWySn1p9EbBj3/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJgKuuB1fWySn1hN5bJvx/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_gxl5CWrM8r64aH","request_duration_ms":618}}' + - '{"last_request_metrics":{"request_id":"req_JHl5xfBvqL4suw","request_duration_ms":503}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:48 GMT + - Thu, 07 Dec 2023 18:28:57 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 43e3d555-d0c0-4113-943b-b4dbcbf1c605 + - 8794cd99-e4e8-47a0-94db-bbf2f65e3678 Original-Request: - - req_A9veKTIQeBmR3o + - req_r1VoKKjyov5lhs Request-Id: - - req_A9veKTIQeBmR3o + - req_r1VoKKjyov5lhs Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OZKuuB1fWySn1p9EbBj3", + "id": "pi_3OKmJgKuuB1fWySn1hN5bJvx", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OZKuuB1fWySn1p9EbBj3_secret_ZzVWaxXn23nIQeyClWquzSu4U", + "client_secret": "pi_3OKmJgKuuB1fWySn1hN5bJvx_secret_4eQilOHsI4GRChCUc2zbW4fSn", "confirmation_method": "automatic", - "created": 1701789527, + "created": 1701973736, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OZKuuB1fWySn1tYQM5Uy", + "latest_charge": "ch_3OKmJgKuuB1fWySn1RBle4B4", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OYKuuB1fWySnDcZS566I", + "payment_method": "pm_1OKmJgKuuB1fWySnMg6F1ldG", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:48 GMT + recorded_at: Thu, 07 Dec 2023 18:28:57 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OZKuuB1fWySn1p9EbBj3 + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJgKuuB1fWySn1hN5bJvx body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_A9veKTIQeBmR3o","request_duration_ms":1145}}' + - '{"last_request_metrics":{"request_id":"req_r1VoKKjyov5lhs","request_duration_ms":934}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:49 GMT + - Thu, 07 Dec 2023 18:28:58 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_o15lOfUrJ3SbHK + - req_2IeWJwqrMeKQdG Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OZKuuB1fWySn1p9EbBj3", + "id": "pi_3OKmJgKuuB1fWySn1hN5bJvx", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OZKuuB1fWySn1p9EbBj3_secret_ZzVWaxXn23nIQeyClWquzSu4U", + "client_secret": "pi_3OKmJgKuuB1fWySn1hN5bJvx_secret_4eQilOHsI4GRChCUc2zbW4fSn", "confirmation_method": "automatic", - "created": 1701789527, + "created": 1701973736, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OZKuuB1fWySn1tYQM5Uy", + "latest_charge": "ch_3OKmJgKuuB1fWySn1RBle4B4", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OYKuuB1fWySnDcZS566I", + "payment_method": "pm_1OKmJgKuuB1fWySnMg6F1ldG", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,10 +513,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:48 GMT + recorded_at: Thu, 07 Dec 2023 18:28:58 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OZKuuB1fWySn1p9EbBj3/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJgKuuB1fWySn1hN5bJvx/capture body: encoding: US-ASCII string: '' @@ -528,7 +528,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_o15lOfUrJ3SbHK","request_duration_ms":515}}' + - '{"last_request_metrics":{"request_id":"req_2IeWJwqrMeKQdG","request_duration_ms":372}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -548,7 +548,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:50 GMT + - Thu, 07 Dec 2023 18:28:59 GMT Content-Type: - application/json Content-Length: @@ -574,11 +574,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - c7811517-1974-4292-b53e-272a28cb2c49 + - fbb7ff30-b683-4066-ac6a-80f328d5b750 Original-Request: - - req_IZB77dpIlzssj1 + - req_jqX2sB0aEcsb3O Request-Id: - - req_IZB77dpIlzssj1 + - req_jqX2sB0aEcsb3O Stripe-Should-Retry: - 'false' Stripe-Version: @@ -593,7 +593,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OZKuuB1fWySn1p9EbBj3", + "id": "pi_3OKmJgKuuB1fWySn1hN5bJvx", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -607,20 +607,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OZKuuB1fWySn1p9EbBj3_secret_ZzVWaxXn23nIQeyClWquzSu4U", + "client_secret": "pi_3OKmJgKuuB1fWySn1hN5bJvx_secret_4eQilOHsI4GRChCUc2zbW4fSn", "confirmation_method": "automatic", - "created": 1701789527, + "created": 1701973736, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OZKuuB1fWySn1tYQM5Uy", + "latest_charge": "ch_3OKmJgKuuB1fWySn1RBle4B4", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OYKuuB1fWySnDcZS566I", + "payment_method": "pm_1OKmJgKuuB1fWySnMg6F1ldG", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -645,10 +645,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:50 GMT + recorded_at: Thu, 07 Dec 2023 18:28:59 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OZKuuB1fWySn1p9EbBj3 + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJgKuuB1fWySn1hN5bJvx body: encoding: US-ASCII string: '' @@ -660,7 +660,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_IZB77dpIlzssj1","request_duration_ms":1147}}' + - '{"last_request_metrics":{"request_id":"req_jqX2sB0aEcsb3O","request_duration_ms":984}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -680,7 +680,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:50 GMT + - Thu, 07 Dec 2023 18:28:59 GMT Content-Type: - application/json Content-Length: @@ -706,7 +706,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_ZuE1qwJzDm3cwU + - req_2zWWDLVtynwwtV Stripe-Version: - '2023-10-16' Vary: @@ -719,7 +719,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OZKuuB1fWySn1p9EbBj3", + "id": "pi_3OKmJgKuuB1fWySn1hN5bJvx", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -733,20 +733,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OZKuuB1fWySn1p9EbBj3_secret_ZzVWaxXn23nIQeyClWquzSu4U", + "client_secret": "pi_3OKmJgKuuB1fWySn1hN5bJvx_secret_4eQilOHsI4GRChCUc2zbW4fSn", "confirmation_method": "automatic", - "created": 1701789527, + "created": 1701973736, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OZKuuB1fWySn1tYQM5Uy", + "latest_charge": "ch_3OKmJgKuuB1fWySn1RBle4B4", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OYKuuB1fWySnDcZS566I", + "payment_method": "pm_1OKmJgKuuB1fWySnMg6F1ldG", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -771,5 +771,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:50 GMT + recorded_at: Thu, 07 Dec 2023 18:28:59 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml index 3364c2640a..c99c4bf27d 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_JCB/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_T1R5tMpzPVq4Qh","request_duration_ms":449}}' + - '{"last_request_metrics":{"request_id":"req_ukNukAiO0qHnGG","request_duration_ms":309}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:43 GMT + - Thu, 07 Dec 2023 18:28:54 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 8e18635b-7ac9-4878-a929-d0a4f7124cb7 + - 4434218d-894b-4ceb-83ec-1a436234d21e Original-Request: - - req_CZ2muIp4NCYZWj + - req_x27ah5cOfF5XOj Request-Id: - - req_CZ2muIp4NCYZWj + - req_x27ah5cOfF5XOj Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0OVKuuB1fWySnqnxaRpff", + "id": "pm_1OKmJdKuuB1fWySnDEmBLugA", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789523, + "created": 1701973734, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:18:43 GMT + recorded_at: Thu, 07 Dec 2023 18:28:54 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0OVKuuB1fWySnqnxaRpff&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmJdKuuB1fWySnDEmBLugA&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_CZ2muIp4NCYZWj","request_duration_ms":591}}' + - '{"last_request_metrics":{"request_id":"req_x27ah5cOfF5XOj","request_duration_ms":456}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:44 GMT + - Thu, 07 Dec 2023 18:28:54 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 75c5d4b6-d824-497f-af46-932f90b399b6 + - e198db92-c4f7-4fe4-bc7d-2a0e61370482 Original-Request: - - req_p2qlhVgOWXbTeD + - req_ADwQLlNqyCR9ys Request-Id: - - req_p2qlhVgOWXbTeD + - req_ADwQLlNqyCR9ys Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OVKuuB1fWySn1rpy2BLJ", + "id": "pi_3OKmJeKuuB1fWySn2nRwXoJV", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OVKuuB1fWySn1rpy2BLJ_secret_ibgKpoPrSmdXMuZlvLkVsN6vL", + "client_secret": "pi_3OKmJeKuuB1fWySn2nRwXoJV_secret_tE37RJuy5ngyLc3YOTc1RMhfS", "confirmation_method": "automatic", - "created": 1701789523, + "created": 1701973734, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OVKuuB1fWySnqnxaRpff", + "payment_method": "pm_1OKmJdKuuB1fWySnDEmBLugA", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:43 GMT + recorded_at: Thu, 07 Dec 2023 18:28:54 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OVKuuB1fWySn1rpy2BLJ/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJeKuuB1fWySn2nRwXoJV/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_p2qlhVgOWXbTeD","request_duration_ms":540}}' + - '{"last_request_metrics":{"request_id":"req_ADwQLlNqyCR9ys","request_duration_ms":445}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:45 GMT + - Thu, 07 Dec 2023 18:28:55 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 42b80457-685f-4a5f-a424-04d022887e50 + - bdc948ad-3e07-4df6-9dc7-1201ca5cd09a Original-Request: - - req_UOZ622CINVnqRu + - req_hMOPKjlp71sTjs Request-Id: - - req_UOZ622CINVnqRu + - req_hMOPKjlp71sTjs Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OVKuuB1fWySn1rpy2BLJ", + "id": "pi_3OKmJeKuuB1fWySn2nRwXoJV", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OVKuuB1fWySn1rpy2BLJ_secret_ibgKpoPrSmdXMuZlvLkVsN6vL", + "client_secret": "pi_3OKmJeKuuB1fWySn2nRwXoJV_secret_tE37RJuy5ngyLc3YOTc1RMhfS", "confirmation_method": "automatic", - "created": 1701789523, + "created": 1701973734, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OVKuuB1fWySn1qR4epmU", + "latest_charge": "ch_3OKmJeKuuB1fWySn2InZNFQJ", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OVKuuB1fWySnqnxaRpff", + "payment_method": "pm_1OKmJdKuuB1fWySnDEmBLugA", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,131 +387,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:44 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OVKuuB1fWySn1rpy2BLJ - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_UOZ622CINVnqRu","request_duration_ms":1187}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 - (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) - #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Tue, 05 Dec 2023 15:18:46 GMT - Content-Type: - - application/json - Content-Length: - - '1365' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; - block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action - 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; - style-src 'self' - Request-Id: - - req_gWKJoDXU4mFNz0 - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OK0OVKuuB1fWySn1rpy2BLJ", - "object": "payment_intent", - "amount": 100, - "amount_capturable": 100, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OK0OVKuuB1fWySn1rpy2BLJ_secret_ibgKpoPrSmdXMuZlvLkVsN6vL", - "confirmation_method": "automatic", - "created": 1701789523, - "currency": "eur", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OK0OVKuuB1fWySn1qR4epmU", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OK0OVKuuB1fWySnqnxaRpff", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_capture", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Tue, 05 Dec 2023 15:18:46 GMT + recorded_at: Thu, 07 Dec 2023 18:28:55 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/captures_the_payment.yml index b507690e2e..6b6c76e02b 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_7s69DHSda08ycI","request_duration_ms":402}}' + - '{"last_request_metrics":{"request_id":"req_uPRVtOIHi2zuO8","request_duration_ms":1040}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:29 GMT + - Thu, 07 Dec 2023 18:27:54 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - e936d876-f59f-4b8f-881d-9376a974bf12 + - c96cf75b-456b-4fe1-abf4-18d8e9837f13 Original-Request: - - req_pSI5lfG3YSLfln + - req_dJiODVHcxLR7LS Request-Id: - - req_pSI5lfG3YSLfln + - req_dJiODVHcxLR7LS Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0NIKuuB1fWySnxSofvUbH", + "id": "pm_1OKmIgKuuB1fWySnd62AD0JC", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789448, + "created": 1701973674, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:17:28 GMT + recorded_at: Thu, 07 Dec 2023 18:27:54 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0NIKuuB1fWySnxSofvUbH&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmIgKuuB1fWySnd62AD0JC&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_pSI5lfG3YSLfln","request_duration_ms":656}}' + - '{"last_request_metrics":{"request_id":"req_dJiODVHcxLR7LS","request_duration_ms":469}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:29 GMT + - Thu, 07 Dec 2023 18:27:54 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 99d028e2-21c4-4664-beb4-ec5a205677ce + - 0de19016-4a88-448e-9db7-387289642c9c Original-Request: - - req_B2Q68MwHagcae4 + - req_XTIZC3wHhM1qG8 Request-Id: - - req_B2Q68MwHagcae4 + - req_XTIZC3wHhM1qG8 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NJKuuB1fWySn0yOAxhTY", + "id": "pi_3OKmIgKuuB1fWySn02oibhj5", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NJKuuB1fWySn0yOAxhTY_secret_ECLhXxp0gccY4VvBoaqx6aNkS", + "client_secret": "pi_3OKmIgKuuB1fWySn02oibhj5_secret_ELBl5jNfvcCjG0DEnnenFXP7Z", "confirmation_method": "automatic", - "created": 1701789449, + "created": 1701973674, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NIKuuB1fWySnxSofvUbH", + "payment_method": "pm_1OKmIgKuuB1fWySnd62AD0JC", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:29 GMT + recorded_at: Thu, 07 Dec 2023 18:27:54 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NJKuuB1fWySn0yOAxhTY/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIgKuuB1fWySn02oibhj5/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_B2Q68MwHagcae4","request_duration_ms":518}}' + - '{"last_request_metrics":{"request_id":"req_XTIZC3wHhM1qG8","request_duration_ms":522}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:30 GMT + - Thu, 07 Dec 2023 18:27:55 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 6e4108bb-e7db-4c00-af8f-f80fc698e5fc + - 6ce076bc-39ee-4812-90bd-9864dd583f3c Original-Request: - - req_P13zxbM4ya7DNW + - req_4SgPGK4QXkjxuJ Request-Id: - - req_P13zxbM4ya7DNW + - req_4SgPGK4QXkjxuJ Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NJKuuB1fWySn0yOAxhTY", + "id": "pi_3OKmIgKuuB1fWySn02oibhj5", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NJKuuB1fWySn0yOAxhTY_secret_ECLhXxp0gccY4VvBoaqx6aNkS", + "client_secret": "pi_3OKmIgKuuB1fWySn02oibhj5_secret_ELBl5jNfvcCjG0DEnnenFXP7Z", "confirmation_method": "automatic", - "created": 1701789449, + "created": 1701973674, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NJKuuB1fWySn0K8w9RVv", + "latest_charge": "ch_3OKmIgKuuB1fWySn0xOQy6Gd", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NIKuuB1fWySnxSofvUbH", + "payment_method": "pm_1OKmIgKuuB1fWySnd62AD0JC", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:30 GMT + recorded_at: Thu, 07 Dec 2023 18:27:55 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NJKuuB1fWySn0yOAxhTY + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIgKuuB1fWySn02oibhj5 body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_P13zxbM4ya7DNW","request_duration_ms":1146}}' + - '{"last_request_metrics":{"request_id":"req_4SgPGK4QXkjxuJ","request_duration_ms":1039}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:31 GMT + - Thu, 07 Dec 2023 18:27:56 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_IotENUBPfMHIFa + - req_eJC1Ny3GGWNKZX Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NJKuuB1fWySn0yOAxhTY", + "id": "pi_3OKmIgKuuB1fWySn02oibhj5", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NJKuuB1fWySn0yOAxhTY_secret_ECLhXxp0gccY4VvBoaqx6aNkS", + "client_secret": "pi_3OKmIgKuuB1fWySn02oibhj5_secret_ELBl5jNfvcCjG0DEnnenFXP7Z", "confirmation_method": "automatic", - "created": 1701789449, + "created": 1701973674, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NJKuuB1fWySn0K8w9RVv", + "latest_charge": "ch_3OKmIgKuuB1fWySn0xOQy6Gd", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NIKuuB1fWySnxSofvUbH", + "payment_method": "pm_1OKmIgKuuB1fWySnd62AD0JC", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,10 +513,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:30 GMT + recorded_at: Thu, 07 Dec 2023 18:27:56 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NJKuuB1fWySn0yOAxhTY/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIgKuuB1fWySn02oibhj5/capture body: encoding: US-ASCII string: '' @@ -528,7 +528,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_IotENUBPfMHIFa","request_duration_ms":492}}' + - '{"last_request_metrics":{"request_id":"req_eJC1Ny3GGWNKZX","request_duration_ms":310}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -548,7 +548,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:32 GMT + - Thu, 07 Dec 2023 18:27:57 GMT Content-Type: - application/json Content-Length: @@ -574,11 +574,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 9da1179d-5e39-4840-ac4b-5877edbfae56 + - 13df3a83-9752-43da-b0f2-df38766dc260 Original-Request: - - req_NKb17rsAUUrWFd + - req_4YHZQnxgml6iaR Request-Id: - - req_NKb17rsAUUrWFd + - req_4YHZQnxgml6iaR Stripe-Should-Retry: - 'false' Stripe-Version: @@ -593,7 +593,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NJKuuB1fWySn0yOAxhTY", + "id": "pi_3OKmIgKuuB1fWySn02oibhj5", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -607,20 +607,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NJKuuB1fWySn0yOAxhTY_secret_ECLhXxp0gccY4VvBoaqx6aNkS", + "client_secret": "pi_3OKmIgKuuB1fWySn02oibhj5_secret_ELBl5jNfvcCjG0DEnnenFXP7Z", "confirmation_method": "automatic", - "created": 1701789449, + "created": 1701973674, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NJKuuB1fWySn0K8w9RVv", + "latest_charge": "ch_3OKmIgKuuB1fWySn0xOQy6Gd", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NIKuuB1fWySnxSofvUbH", + "payment_method": "pm_1OKmIgKuuB1fWySnd62AD0JC", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -645,10 +645,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:31 GMT + recorded_at: Thu, 07 Dec 2023 18:27:57 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NJKuuB1fWySn0yOAxhTY + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIgKuuB1fWySn02oibhj5 body: encoding: US-ASCII string: '' @@ -660,7 +660,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_NKb17rsAUUrWFd","request_duration_ms":1007}}' + - '{"last_request_metrics":{"request_id":"req_4YHZQnxgml6iaR","request_duration_ms":1041}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -680,7 +680,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:32 GMT + - Thu, 07 Dec 2023 18:27:57 GMT Content-Type: - application/json Content-Length: @@ -706,7 +706,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_1AZ5pg0ZxxvUXj + - req_UQHwQy1Tsl0t2p Stripe-Version: - '2023-10-16' Vary: @@ -719,7 +719,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NJKuuB1fWySn0yOAxhTY", + "id": "pi_3OKmIgKuuB1fWySn02oibhj5", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -733,20 +733,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NJKuuB1fWySn0yOAxhTY_secret_ECLhXxp0gccY4VvBoaqx6aNkS", + "client_secret": "pi_3OKmIgKuuB1fWySn02oibhj5_secret_ELBl5jNfvcCjG0DEnnenFXP7Z", "confirmation_method": "automatic", - "created": 1701789449, + "created": 1701973674, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NJKuuB1fWySn0K8w9RVv", + "latest_charge": "ch_3OKmIgKuuB1fWySn0xOQy6Gd", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NIKuuB1fWySnxSofvUbH", + "payment_method": "pm_1OKmIgKuuB1fWySnd62AD0JC", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -771,5 +771,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:32 GMT + recorded_at: Thu, 07 Dec 2023 18:27:57 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml index 52c2a1f563..cc76df4344 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_O23HuS6lzDg04Z","request_duration_ms":381}}' + - '{"last_request_metrics":{"request_id":"req_FXU6PzCIqo9KuH","request_duration_ms":415}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:25 GMT + - Thu, 07 Dec 2023 18:27:51 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 39506b3d-fe78-4c0e-a4f5-446e7f8ce06d + - 7682ac56-a5b5-478b-a769-3abfc9e509ec Original-Request: - - req_uEiAVH8XHnnUYN + - req_Q9lKDvArMuMIU5 Request-Id: - - req_uEiAVH8XHnnUYN + - req_Q9lKDvArMuMIU5 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0NFKuuB1fWySnIfH6ZcIU", + "id": "pm_1OKmIdKuuB1fWySnIwF7GFFP", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789445, + "created": 1701973671, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:17:25 GMT + recorded_at: Thu, 07 Dec 2023 18:27:52 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0NFKuuB1fWySnIfH6ZcIU&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmIdKuuB1fWySnIwF7GFFP&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_uEiAVH8XHnnUYN","request_duration_ms":519}}' + - '{"last_request_metrics":{"request_id":"req_Q9lKDvArMuMIU5","request_duration_ms":486}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:26 GMT + - Thu, 07 Dec 2023 18:27:52 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - e89508e8-a2ad-4bdd-861a-ec0463674b5b + - af6918b9-44a1-4c31-b624-fcc1211bcea8 Original-Request: - - req_JXqcVF88p8Lkam + - req_1h7VZKYshruVqS Request-Id: - - req_JXqcVF88p8Lkam + - req_1h7VZKYshruVqS Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NGKuuB1fWySn1KLKQD2Q", + "id": "pi_3OKmIeKuuB1fWySn1llmIojq", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NGKuuB1fWySn1KLKQD2Q_secret_09pSimGd3ynYnIIgQo14xsLZZ", + "client_secret": "pi_3OKmIeKuuB1fWySn1llmIojq_secret_ifZCFIk0mmQjTEVZ6RhcedNOE", "confirmation_method": "automatic", - "created": 1701789446, + "created": 1701973672, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NFKuuB1fWySnIfH6ZcIU", + "payment_method": "pm_1OKmIdKuuB1fWySnIwF7GFFP", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:25 GMT + recorded_at: Thu, 07 Dec 2023 18:27:52 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NGKuuB1fWySn1KLKQD2Q/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIeKuuB1fWySn1llmIojq/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_JXqcVF88p8Lkam","request_duration_ms":517}}' + - '{"last_request_metrics":{"request_id":"req_1h7VZKYshruVqS","request_duration_ms":517}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:27 GMT + - Thu, 07 Dec 2023 18:27:53 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 321e490c-be3a-48ae-a3db-80ef969f82bc + - 52ca5fba-97e4-4b71-8b31-16e10e4a9993 Original-Request: - - req_ouZWhhpPikhlxR + - req_uPRVtOIHi2zuO8 Request-Id: - - req_ouZWhhpPikhlxR + - req_uPRVtOIHi2zuO8 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NGKuuB1fWySn1KLKQD2Q", + "id": "pi_3OKmIeKuuB1fWySn1llmIojq", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NGKuuB1fWySn1KLKQD2Q_secret_09pSimGd3ynYnIIgQo14xsLZZ", + "client_secret": "pi_3OKmIeKuuB1fWySn1llmIojq_secret_ifZCFIk0mmQjTEVZ6RhcedNOE", "confirmation_method": "automatic", - "created": 1701789446, + "created": 1701973672, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NGKuuB1fWySn17HRxW0P", + "latest_charge": "ch_3OKmIeKuuB1fWySn15SM7XBE", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NFKuuB1fWySnIfH6ZcIU", + "payment_method": "pm_1OKmIdKuuB1fWySnIwF7GFFP", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,131 +387,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:27 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NGKuuB1fWySn1KLKQD2Q - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_ouZWhhpPikhlxR","request_duration_ms":1145}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 - (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) - #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Tue, 05 Dec 2023 15:17:28 GMT - Content-Type: - - application/json - Content-Length: - - '1365' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; - block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action - 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; - style-src 'self' - Request-Id: - - req_7s69DHSda08ycI - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OK0NGKuuB1fWySn1KLKQD2Q", - "object": "payment_intent", - "amount": 100, - "amount_capturable": 100, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OK0NGKuuB1fWySn1KLKQD2Q_secret_09pSimGd3ynYnIIgQo14xsLZZ", - "confirmation_method": "automatic", - "created": 1701789446, - "currency": "eur", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OK0NGKuuB1fWySn17HRxW0P", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OK0NFKuuB1fWySnIfH6ZcIU", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_capture", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Tue, 05 Dec 2023 15:17:28 GMT + recorded_at: Thu, 07 Dec 2023 18:27:53 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/captures_the_payment.yml index 54e96b821e..b1ab24ab81 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_xAroRCvY2jpYW3","request_duration_ms":508}}' + - '{"last_request_metrics":{"request_id":"req_F7VSqCBneYfU5B","request_duration_ms":1041}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:36 GMT + - Thu, 07 Dec 2023 18:28:00 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - a1b49965-d453-4cf2-8dc1-41539d8d7ec2 + - 9197bb19-29ed-4a9d-b7e3-5f451a7526e3 Original-Request: - - req_1CiS0by8DcbkGT + - req_nu2jnAULYdmG6O Request-Id: - - req_1CiS0by8DcbkGT + - req_nu2jnAULYdmG6O Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0NQKuuB1fWySnE41Drfql", + "id": "pm_1OKmImKuuB1fWySnxKAdC4WL", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789456, + "created": 1701973680, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:17:36 GMT + recorded_at: Thu, 07 Dec 2023 18:28:00 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0NQKuuB1fWySnE41Drfql&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmImKuuB1fWySnxKAdC4WL&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_1CiS0by8DcbkGT","request_duration_ms":584}}' + - '{"last_request_metrics":{"request_id":"req_nu2jnAULYdmG6O","request_duration_ms":425}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:37 GMT + - Thu, 07 Dec 2023 18:28:00 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 3d5951a2-a287-4779-bef5-5b878037a0d1 + - 9f714f47-8e46-49f7-82d0-b7c03f027bb5 Original-Request: - - req_BAIO9vWEEwUKBK + - req_VdvUqSd2Z6okDc Request-Id: - - req_BAIO9vWEEwUKBK + - req_VdvUqSd2Z6okDc Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NRKuuB1fWySn1jKScTzc", + "id": "pi_3OKmImKuuB1fWySn1LTriLK8", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NRKuuB1fWySn1jKScTzc_secret_6VbvQty6C4VWQK9HhjhogFi7T", + "client_secret": "pi_3OKmImKuuB1fWySn1LTriLK8_secret_s4RGQJMJAadQ4fEKgnK9tEoyW", "confirmation_method": "automatic", - "created": 1701789457, + "created": 1701973680, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NQKuuB1fWySnE41Drfql", + "payment_method": "pm_1OKmImKuuB1fWySnxKAdC4WL", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:37 GMT + recorded_at: Thu, 07 Dec 2023 18:28:00 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NRKuuB1fWySn1jKScTzc/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmImKuuB1fWySn1LTriLK8/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_BAIO9vWEEwUKBK","request_duration_ms":494}}' + - '{"last_request_metrics":{"request_id":"req_VdvUqSd2Z6okDc","request_duration_ms":519}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:38 GMT + - Thu, 07 Dec 2023 18:28:01 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 55c5d61b-e359-4ebe-be56-58ff33a170fe + - 8cec83a0-0be6-41de-8ad3-ad01e0768012 Original-Request: - - req_tgYhAz22bjQzE8 + - req_f9uErR1hweOWED Request-Id: - - req_tgYhAz22bjQzE8 + - req_f9uErR1hweOWED Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NRKuuB1fWySn1jKScTzc", + "id": "pi_3OKmImKuuB1fWySn1LTriLK8", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NRKuuB1fWySn1jKScTzc_secret_6VbvQty6C4VWQK9HhjhogFi7T", + "client_secret": "pi_3OKmImKuuB1fWySn1LTriLK8_secret_s4RGQJMJAadQ4fEKgnK9tEoyW", "confirmation_method": "automatic", - "created": 1701789457, + "created": 1701973680, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NRKuuB1fWySn1AcczQgg", + "latest_charge": "ch_3OKmImKuuB1fWySn1kgM1mMz", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NQKuuB1fWySnE41Drfql", + "payment_method": "pm_1OKmImKuuB1fWySnxKAdC4WL", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:38 GMT + recorded_at: Thu, 07 Dec 2023 18:28:01 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NRKuuB1fWySn1jKScTzc + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmImKuuB1fWySn1LTriLK8 body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_tgYhAz22bjQzE8","request_duration_ms":1067}}' + - '{"last_request_metrics":{"request_id":"req_f9uErR1hweOWED","request_duration_ms":1042}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:38 GMT + - Thu, 07 Dec 2023 18:28:02 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_lCmMUYzK9Paq13 + - req_6wh5h5L8j3Vxjc Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NRKuuB1fWySn1jKScTzc", + "id": "pi_3OKmImKuuB1fWySn1LTriLK8", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NRKuuB1fWySn1jKScTzc_secret_6VbvQty6C4VWQK9HhjhogFi7T", + "client_secret": "pi_3OKmImKuuB1fWySn1LTriLK8_secret_s4RGQJMJAadQ4fEKgnK9tEoyW", "confirmation_method": "automatic", - "created": 1701789457, + "created": 1701973680, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NRKuuB1fWySn1AcczQgg", + "latest_charge": "ch_3OKmImKuuB1fWySn1kgM1mMz", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NQKuuB1fWySnE41Drfql", + "payment_method": "pm_1OKmImKuuB1fWySnxKAdC4WL", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,10 +513,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:38 GMT + recorded_at: Thu, 07 Dec 2023 18:28:02 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NRKuuB1fWySn1jKScTzc/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmImKuuB1fWySn1LTriLK8/capture body: encoding: US-ASCII string: '' @@ -528,7 +528,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_lCmMUYzK9Paq13","request_duration_ms":518}}' + - '{"last_request_metrics":{"request_id":"req_6wh5h5L8j3Vxjc","request_duration_ms":311}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -548,7 +548,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:40 GMT + - Thu, 07 Dec 2023 18:28:03 GMT Content-Type: - application/json Content-Length: @@ -574,11 +574,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - f12c870a-4e73-43ba-9cae-c0aa7d877cda + - 4471c90e-5502-4cea-a251-ccb657c59cdb Original-Request: - - req_5B3ucu048VY5x9 + - req_zetd02Y9jHt1pC Request-Id: - - req_5B3ucu048VY5x9 + - req_zetd02Y9jHt1pC Stripe-Should-Retry: - 'false' Stripe-Version: @@ -593,7 +593,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NRKuuB1fWySn1jKScTzc", + "id": "pi_3OKmImKuuB1fWySn1LTriLK8", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -607,20 +607,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NRKuuB1fWySn1jKScTzc_secret_6VbvQty6C4VWQK9HhjhogFi7T", + "client_secret": "pi_3OKmImKuuB1fWySn1LTriLK8_secret_s4RGQJMJAadQ4fEKgnK9tEoyW", "confirmation_method": "automatic", - "created": 1701789457, + "created": 1701973680, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NRKuuB1fWySn1AcczQgg", + "latest_charge": "ch_3OKmImKuuB1fWySn1kgM1mMz", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NQKuuB1fWySnE41Drfql", + "payment_method": "pm_1OKmImKuuB1fWySnxKAdC4WL", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -645,10 +645,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:39 GMT + recorded_at: Thu, 07 Dec 2023 18:28:03 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NRKuuB1fWySn1jKScTzc + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmImKuuB1fWySn1LTriLK8 body: encoding: US-ASCII string: '' @@ -660,7 +660,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_5B3ucu048VY5x9","request_duration_ms":1041}}' + - '{"last_request_metrics":{"request_id":"req_zetd02Y9jHt1pC","request_duration_ms":1043}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -680,7 +680,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:40 GMT + - Thu, 07 Dec 2023 18:28:03 GMT Content-Type: - application/json Content-Length: @@ -706,7 +706,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_VoAQDloqULYjq3 + - req_EezFkYo3riUHVz Stripe-Version: - '2023-10-16' Vary: @@ -719,7 +719,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NRKuuB1fWySn1jKScTzc", + "id": "pi_3OKmImKuuB1fWySn1LTriLK8", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -733,20 +733,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NRKuuB1fWySn1jKScTzc_secret_6VbvQty6C4VWQK9HhjhogFi7T", + "client_secret": "pi_3OKmImKuuB1fWySn1LTriLK8_secret_s4RGQJMJAadQ4fEKgnK9tEoyW", "confirmation_method": "automatic", - "created": 1701789457, + "created": 1701973680, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NRKuuB1fWySn1AcczQgg", + "latest_charge": "ch_3OKmImKuuB1fWySn1kgM1mMz", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NQKuuB1fWySnE41Drfql", + "payment_method": "pm_1OKmImKuuB1fWySnxKAdC4WL", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -771,5 +771,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:40 GMT + recorded_at: Thu, 07 Dec 2023 18:28:03 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml index c8576c3f5f..13cb24bc9f 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_2-series_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_1AZ5pg0ZxxvUXj","request_duration_ms":477}}' + - '{"last_request_metrics":{"request_id":"req_UQHwQy1Tsl0t2p","request_duration_ms":310}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:33 GMT + - Thu, 07 Dec 2023 18:27:58 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - e5f194a7-fc4f-487b-9250-3cd62c0c359b + - 789db994-f7fd-4925-be69-ad65dc6ddf3c Original-Request: - - req_vArEV82NuAlgfm + - req_dUBpW2g51vudVU Request-Id: - - req_vArEV82NuAlgfm + - req_dUBpW2g51vudVU Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0NNKuuB1fWySnEjpRN60q", + "id": "pm_1OKmIjKuuB1fWySnnbp7pO7A", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789453, + "created": 1701973677, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:17:33 GMT + recorded_at: Thu, 07 Dec 2023 18:27:58 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0NNKuuB1fWySnEjpRN60q&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmIjKuuB1fWySnnbp7pO7A&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_vArEV82NuAlgfm","request_duration_ms":715}}' + - '{"last_request_metrics":{"request_id":"req_dUBpW2g51vudVU","request_duration_ms":461}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:34 GMT + - Thu, 07 Dec 2023 18:27:58 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - f17f71f6-0f56-4365-87a2-eac2f03af34a + - 8a03ba1a-5bac-41ce-b325-c7975835ca86 Original-Request: - - req_lCjfcknJWFUXj8 + - req_ZnPhHuMcP0wh94 Request-Id: - - req_lCjfcknJWFUXj8 + - req_ZnPhHuMcP0wh94 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NNKuuB1fWySn1tdL2KbH", + "id": "pi_3OKmIkKuuB1fWySn1AzylDm3", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NNKuuB1fWySn1tdL2KbH_secret_LNwG4PKemeXE7TC0yUhNrGQbw", + "client_secret": "pi_3OKmIkKuuB1fWySn1AzylDm3_secret_5h8NXiKfSWRsYgrJcE3IjifwL", "confirmation_method": "automatic", - "created": 1701789453, + "created": 1701973678, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NNKuuB1fWySnEjpRN60q", + "payment_method": "pm_1OKmIjKuuB1fWySnnbp7pO7A", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:33 GMT + recorded_at: Thu, 07 Dec 2023 18:27:58 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NNKuuB1fWySn1tdL2KbH/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIkKuuB1fWySn1AzylDm3/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_lCjfcknJWFUXj8","request_duration_ms":833}}' + - '{"last_request_metrics":{"request_id":"req_ZnPhHuMcP0wh94","request_duration_ms":441}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:35 GMT + - Thu, 07 Dec 2023 18:27:59 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 27c3dd75-5e78-4e97-8913-5bfb552ddf89 + - 5c2113cd-8e3e-4d35-965c-b6ed7563fbc2 Original-Request: - - req_RD5gui9J3qKOXO + - req_F7VSqCBneYfU5B Request-Id: - - req_RD5gui9J3qKOXO + - req_F7VSqCBneYfU5B Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NNKuuB1fWySn1tdL2KbH", + "id": "pi_3OKmIkKuuB1fWySn1AzylDm3", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NNKuuB1fWySn1tdL2KbH_secret_LNwG4PKemeXE7TC0yUhNrGQbw", + "client_secret": "pi_3OKmIkKuuB1fWySn1AzylDm3_secret_5h8NXiKfSWRsYgrJcE3IjifwL", "confirmation_method": "automatic", - "created": 1701789453, + "created": 1701973678, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NNKuuB1fWySn1aQQfbXI", + "latest_charge": "ch_3OKmIkKuuB1fWySn1PoBIzEE", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NNKuuB1fWySnEjpRN60q", + "payment_method": "pm_1OKmIjKuuB1fWySnnbp7pO7A", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,131 +387,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:35 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NNKuuB1fWySn1tdL2KbH - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_RD5gui9J3qKOXO","request_duration_ms":1026}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 - (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) - #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Tue, 05 Dec 2023 15:17:36 GMT - Content-Type: - - application/json - Content-Length: - - '1365' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; - block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action - 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; - style-src 'self' - Request-Id: - - req_xAroRCvY2jpYW3 - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OK0NNKuuB1fWySn1tdL2KbH", - "object": "payment_intent", - "amount": 100, - "amount_capturable": 100, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OK0NNKuuB1fWySn1tdL2KbH_secret_LNwG4PKemeXE7TC0yUhNrGQbw", - "confirmation_method": "automatic", - "created": 1701789453, - "currency": "eur", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OK0NNKuuB1fWySn1aQQfbXI", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OK0NNKuuB1fWySnEjpRN60q", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_capture", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Tue, 05 Dec 2023 15:17:35 GMT + recorded_at: Thu, 07 Dec 2023 18:27:59 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/captures_the_payment.yml index 7da2820520..45890a9942 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_F60f0SjgTkVXLo","request_duration_ms":461}}' + - '{"last_request_metrics":{"request_id":"req_pv9EbZnxMsFgzm","request_duration_ms":1042}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:44 GMT + - Thu, 07 Dec 2023 18:28:06 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 406677db-8f40-4bf2-a28b-5d783ed2951e + - fc9991ef-ec68-4fb8-a774-3b6ca894ddfe Original-Request: - - req_IStqxHWUkPjwUt + - req_8kQQV4Out5BRgJ Request-Id: - - req_IStqxHWUkPjwUt + - req_8kQQV4Out5BRgJ Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0NXKuuB1fWySn9tXKT30h", + "id": "pm_1OKmIsKuuB1fWySnQYn3mdG8", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789464, + "created": 1701973686, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:17:44 GMT + recorded_at: Thu, 07 Dec 2023 18:28:06 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0NXKuuB1fWySn9tXKT30h&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmIsKuuB1fWySnQYn3mdG8&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_IStqxHWUkPjwUt","request_duration_ms":715}}' + - '{"last_request_metrics":{"request_id":"req_8kQQV4Out5BRgJ","request_duration_ms":483}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:44 GMT + - Thu, 07 Dec 2023 18:28:06 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 26d52ccd-9603-4316-97fa-5e5ec3fa6504 + - ebd4c796-bba8-4d9e-8450-ea1108ee963f Original-Request: - - req_oSwtx1GWT4f4Uq + - req_I0Y4p5Yop0JXnQ Request-Id: - - req_oSwtx1GWT4f4Uq + - req_I0Y4p5Yop0JXnQ Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NYKuuB1fWySn0kDNEepU", + "id": "pi_3OKmIsKuuB1fWySn1Zejl8py", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NYKuuB1fWySn0kDNEepU_secret_famZc9G6d9w1Ijg94vrMJQi8m", + "client_secret": "pi_3OKmIsKuuB1fWySn1Zejl8py_secret_QMh652tJTsFVs30kvwRdWSymQ", "confirmation_method": "automatic", - "created": 1701789464, + "created": 1701973686, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NXKuuB1fWySn9tXKT30h", + "payment_method": "pm_1OKmIsKuuB1fWySnQYn3mdG8", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:44 GMT + recorded_at: Thu, 07 Dec 2023 18:28:06 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NYKuuB1fWySn0kDNEepU/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIsKuuB1fWySn1Zejl8py/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_oSwtx1GWT4f4Uq","request_duration_ms":518}}' + - '{"last_request_metrics":{"request_id":"req_I0Y4p5Yop0JXnQ","request_duration_ms":559}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:45 GMT + - Thu, 07 Dec 2023 18:28:07 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - f2d05068-3dca-402d-84f9-c646a63e2cfc + - 8349ce39-1ea4-4a2c-a168-341bbdd4e363 Original-Request: - - req_zYWdSE5T4bbBEI + - req_tLPNBXi8aPXaPS Request-Id: - - req_zYWdSE5T4bbBEI + - req_tLPNBXi8aPXaPS Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NYKuuB1fWySn0kDNEepU", + "id": "pi_3OKmIsKuuB1fWySn1Zejl8py", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NYKuuB1fWySn0kDNEepU_secret_famZc9G6d9w1Ijg94vrMJQi8m", + "client_secret": "pi_3OKmIsKuuB1fWySn1Zejl8py_secret_QMh652tJTsFVs30kvwRdWSymQ", "confirmation_method": "automatic", - "created": 1701789464, + "created": 1701973686, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NYKuuB1fWySn0Ffn14ck", + "latest_charge": "ch_3OKmIsKuuB1fWySn1I0ym7Er", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NXKuuB1fWySn9tXKT30h", + "payment_method": "pm_1OKmIsKuuB1fWySnQYn3mdG8", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:45 GMT + recorded_at: Thu, 07 Dec 2023 18:28:07 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NYKuuB1fWySn0kDNEepU + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIsKuuB1fWySn1Zejl8py body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_zYWdSE5T4bbBEI","request_duration_ms":957}}' + - '{"last_request_metrics":{"request_id":"req_tLPNBXi8aPXaPS","request_duration_ms":981}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:46 GMT + - Thu, 07 Dec 2023 18:28:08 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_trh84hNaPj6eRl + - req_iVlBwR59Eul6bT Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NYKuuB1fWySn0kDNEepU", + "id": "pi_3OKmIsKuuB1fWySn1Zejl8py", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NYKuuB1fWySn0kDNEepU_secret_famZc9G6d9w1Ijg94vrMJQi8m", + "client_secret": "pi_3OKmIsKuuB1fWySn1Zejl8py_secret_QMh652tJTsFVs30kvwRdWSymQ", "confirmation_method": "automatic", - "created": 1701789464, + "created": 1701973686, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NYKuuB1fWySn0Ffn14ck", + "latest_charge": "ch_3OKmIsKuuB1fWySn1I0ym7Er", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NXKuuB1fWySn9tXKT30h", + "payment_method": "pm_1OKmIsKuuB1fWySnQYn3mdG8", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,10 +513,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:46 GMT + recorded_at: Thu, 07 Dec 2023 18:28:08 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NYKuuB1fWySn0kDNEepU/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIsKuuB1fWySn1Zejl8py/capture body: encoding: US-ASCII string: '' @@ -528,7 +528,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_trh84hNaPj6eRl","request_duration_ms":498}}' + - '{"last_request_metrics":{"request_id":"req_iVlBwR59Eul6bT","request_duration_ms":368}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -548,7 +548,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:47 GMT + - Thu, 07 Dec 2023 18:28:09 GMT Content-Type: - application/json Content-Length: @@ -574,11 +574,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - df1e33ae-32e3-4097-a17e-1abbe999623a + - 58e8cb97-41a8-4586-a99a-9200697b45af Original-Request: - - req_WhEhT6MeluUdDi + - req_VDUnMr3N7Xjk9K Request-Id: - - req_WhEhT6MeluUdDi + - req_VDUnMr3N7Xjk9K Stripe-Should-Retry: - 'false' Stripe-Version: @@ -593,7 +593,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NYKuuB1fWySn0kDNEepU", + "id": "pi_3OKmIsKuuB1fWySn1Zejl8py", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -607,20 +607,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NYKuuB1fWySn0kDNEepU_secret_famZc9G6d9w1Ijg94vrMJQi8m", + "client_secret": "pi_3OKmIsKuuB1fWySn1Zejl8py_secret_QMh652tJTsFVs30kvwRdWSymQ", "confirmation_method": "automatic", - "created": 1701789464, + "created": 1701973686, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NYKuuB1fWySn0Ffn14ck", + "latest_charge": "ch_3OKmIsKuuB1fWySn1I0ym7Er", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NXKuuB1fWySn9tXKT30h", + "payment_method": "pm_1OKmIsKuuB1fWySnQYn3mdG8", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -645,10 +645,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:47 GMT + recorded_at: Thu, 07 Dec 2023 18:28:09 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NYKuuB1fWySn0kDNEepU + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIsKuuB1fWySn1Zejl8py body: encoding: US-ASCII string: '' @@ -660,7 +660,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_WhEhT6MeluUdDi","request_duration_ms":1146}}' + - '{"last_request_metrics":{"request_id":"req_VDUnMr3N7Xjk9K","request_duration_ms":1042}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -680,7 +680,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:47 GMT + - Thu, 07 Dec 2023 18:28:09 GMT Content-Type: - application/json Content-Length: @@ -706,7 +706,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_N6tQgEm1E8fGfe + - req_vlDPSBm9PDsWK8 Stripe-Version: - '2023-10-16' Vary: @@ -719,7 +719,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NYKuuB1fWySn0kDNEepU", + "id": "pi_3OKmIsKuuB1fWySn1Zejl8py", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -733,20 +733,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NYKuuB1fWySn0kDNEepU_secret_famZc9G6d9w1Ijg94vrMJQi8m", + "client_secret": "pi_3OKmIsKuuB1fWySn1Zejl8py_secret_QMh652tJTsFVs30kvwRdWSymQ", "confirmation_method": "automatic", - "created": 1701789464, + "created": 1701973686, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NYKuuB1fWySn0Ffn14ck", + "latest_charge": "ch_3OKmIsKuuB1fWySn1I0ym7Er", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NXKuuB1fWySn9tXKT30h", + "payment_method": "pm_1OKmIsKuuB1fWySnQYn3mdG8", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -771,5 +771,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:47 GMT + recorded_at: Thu, 07 Dec 2023 18:28:09 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml index bbfc1ad9e5..206daee23c 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_debit_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_VoAQDloqULYjq3","request_duration_ms":518}}' + - '{"last_request_metrics":{"request_id":"req_EezFkYo3riUHVz","request_duration_ms":308}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:41 GMT + - Thu, 07 Dec 2023 18:28:04 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 6f5439a9-2522-4ce1-b72e-f9a4fb85fc3b + - e35d6813-4c0d-47ec-9127-8416138dc4a7 Original-Request: - - req_OtJ9tQfVBq6Kh2 + - req_y3a3Pcyvtn8vuD Request-Id: - - req_OtJ9tQfVBq6Kh2 + - req_y3a3Pcyvtn8vuD Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0NUKuuB1fWySn3jHZslK0", + "id": "pm_1OKmIpKuuB1fWySn6cx0Am9m", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789461, + "created": 1701973683, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:17:40 GMT + recorded_at: Thu, 07 Dec 2023 18:28:04 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0NUKuuB1fWySn3jHZslK0&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmIpKuuB1fWySn6cx0Am9m&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_OtJ9tQfVBq6Kh2","request_duration_ms":653}}' + - '{"last_request_metrics":{"request_id":"req_y3a3Pcyvtn8vuD","request_duration_ms":504}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:41 GMT + - Thu, 07 Dec 2023 18:28:04 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - acb6df4f-d7a6-4185-8894-d26b41272517 + - de47b700-9f30-40af-9be7-d7c24aa24f0e Original-Request: - - req_Rd9urFFXu3X7dO + - req_7Fniw2dNAHd3H9 Request-Id: - - req_Rd9urFFXu3X7dO + - req_7Fniw2dNAHd3H9 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NVKuuB1fWySn0tfMQy1E", + "id": "pi_3OKmIqKuuB1fWySn2vthMsB7", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NVKuuB1fWySn0tfMQy1E_secret_V3qErUXTPstOCuOcC2tU93MAV", + "client_secret": "pi_3OKmIqKuuB1fWySn2vthMsB7_secret_dHK5fiNBgRbHQffEPjyvyYi5l", "confirmation_method": "automatic", - "created": 1701789461, + "created": 1701973684, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NUKuuB1fWySn3jHZslK0", + "payment_method": "pm_1OKmIpKuuB1fWySn6cx0Am9m", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:41 GMT + recorded_at: Thu, 07 Dec 2023 18:28:04 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NVKuuB1fWySn0tfMQy1E/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIqKuuB1fWySn2vthMsB7/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Rd9urFFXu3X7dO","request_duration_ms":475}}' + - '{"last_request_metrics":{"request_id":"req_7Fniw2dNAHd3H9","request_duration_ms":414}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:42 GMT + - Thu, 07 Dec 2023 18:28:05 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - d41ddb17-0d58-4998-8f8b-6c9d77c7233e + - bf5d2426-414b-4740-8f2d-3aa32215fbcb Original-Request: - - req_Quj9nGoQsIEpHh + - req_pv9EbZnxMsFgzm Request-Id: - - req_Quj9nGoQsIEpHh + - req_pv9EbZnxMsFgzm Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NVKuuB1fWySn0tfMQy1E", + "id": "pi_3OKmIqKuuB1fWySn2vthMsB7", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NVKuuB1fWySn0tfMQy1E_secret_V3qErUXTPstOCuOcC2tU93MAV", + "client_secret": "pi_3OKmIqKuuB1fWySn2vthMsB7_secret_dHK5fiNBgRbHQffEPjyvyYi5l", "confirmation_method": "automatic", - "created": 1701789461, + "created": 1701973684, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NVKuuB1fWySn0WkdG4Gs", + "latest_charge": "ch_3OKmIqKuuB1fWySn2uEnh8k6", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NUKuuB1fWySn3jHZslK0", + "payment_method": "pm_1OKmIpKuuB1fWySn6cx0Am9m", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,131 +387,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:42 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NVKuuB1fWySn0tfMQy1E - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Quj9nGoQsIEpHh","request_duration_ms":1146}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 - (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) - #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Tue, 05 Dec 2023 15:17:43 GMT - Content-Type: - - application/json - Content-Length: - - '1365' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; - block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action - 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; - style-src 'self' - Request-Id: - - req_F60f0SjgTkVXLo - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OK0NVKuuB1fWySn0tfMQy1E", - "object": "payment_intent", - "amount": 100, - "amount_capturable": 100, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OK0NVKuuB1fWySn0tfMQy1E_secret_V3qErUXTPstOCuOcC2tU93MAV", - "confirmation_method": "automatic", - "created": 1701789461, - "currency": "eur", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OK0NVKuuB1fWySn0WkdG4Gs", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OK0NUKuuB1fWySn3jHZslK0", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_capture", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Tue, 05 Dec 2023 15:17:43 GMT + recorded_at: Thu, 07 Dec 2023 18:28:05 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/captures_the_payment.yml index 1f50d1e009..9872a4f244 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_DBhgYBoHBETSJI","request_duration_ms":534}}' + - '{"last_request_metrics":{"request_id":"req_sbshHeH2Wx1hhY","request_duration_ms":1044}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:51 GMT + - Thu, 07 Dec 2023 18:28:12 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - be49f5c3-c50a-4db8-9ed3-9a2c1095dddb + - 6ae66da0-9454-44f3-ba32-579a52eb8b2d Original-Request: - - req_BpVDTpRROz9iuB + - req_QfPWmmaq0rnaq5 Request-Id: - - req_BpVDTpRROz9iuB + - req_QfPWmmaq0rnaq5 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0NfKuuB1fWySnoWSl16FX", + "id": "pm_1OKmIyKuuB1fWySnGB0ona01", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789471, + "created": 1701973692, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:17:51 GMT + recorded_at: Thu, 07 Dec 2023 18:28:12 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0NfKuuB1fWySnoWSl16FX&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmIyKuuB1fWySnGB0ona01&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_BpVDTpRROz9iuB","request_duration_ms":511}}' + - '{"last_request_metrics":{"request_id":"req_QfPWmmaq0rnaq5","request_duration_ms":513}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:52 GMT + - Thu, 07 Dec 2023 18:28:13 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - ddfb249e-ba30-4a16-b218-28b9b1acabac + - f4e928f0-e26f-496d-a7da-72c429d897f7 Original-Request: - - req_2HmEALswVFSEgo + - req_EbND97S8DIzdL9 Request-Id: - - req_2HmEALswVFSEgo + - req_EbND97S8DIzdL9 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NgKuuB1fWySn1yGeaAnl", + "id": "pi_3OKmIyKuuB1fWySn0yOdtoHC", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NgKuuB1fWySn1yGeaAnl_secret_Hhp1W4e33DPc6Idyg8U1qwpZr", + "client_secret": "pi_3OKmIyKuuB1fWySn0yOdtoHC_secret_9gXE8oUI6j5zoyQT4rO2S2C3F", "confirmation_method": "automatic", - "created": 1701789472, + "created": 1701973692, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NfKuuB1fWySnoWSl16FX", + "payment_method": "pm_1OKmIyKuuB1fWySnGB0ona01", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:51 GMT + recorded_at: Thu, 07 Dec 2023 18:28:13 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NgKuuB1fWySn1yGeaAnl/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIyKuuB1fWySn0yOdtoHC/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_2HmEALswVFSEgo","request_duration_ms":500}}' + - '{"last_request_metrics":{"request_id":"req_EbND97S8DIzdL9","request_duration_ms":413}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:53 GMT + - Thu, 07 Dec 2023 18:28:13 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 1677ca1c-bb6d-4434-a2ad-e544e38271f9 + - 7beb2a85-5b9f-4c6e-9ee3-6e7a491bb023 Original-Request: - - req_zqTE28CGMsh7sW + - req_IzKaoYfXth1H4M Request-Id: - - req_zqTE28CGMsh7sW + - req_IzKaoYfXth1H4M Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NgKuuB1fWySn1yGeaAnl", + "id": "pi_3OKmIyKuuB1fWySn0yOdtoHC", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NgKuuB1fWySn1yGeaAnl_secret_Hhp1W4e33DPc6Idyg8U1qwpZr", + "client_secret": "pi_3OKmIyKuuB1fWySn0yOdtoHC_secret_9gXE8oUI6j5zoyQT4rO2S2C3F", "confirmation_method": "automatic", - "created": 1701789472, + "created": 1701973692, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NgKuuB1fWySn1ueh1Kwa", + "latest_charge": "ch_3OKmIyKuuB1fWySn0jGYYkXj", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NfKuuB1fWySnoWSl16FX", + "payment_method": "pm_1OKmIyKuuB1fWySnGB0ona01", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:53 GMT + recorded_at: Thu, 07 Dec 2023 18:28:14 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NgKuuB1fWySn1yGeaAnl + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIyKuuB1fWySn0yOdtoHC body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_zqTE28CGMsh7sW","request_duration_ms":1149}}' + - '{"last_request_metrics":{"request_id":"req_IzKaoYfXth1H4M","request_duration_ms":957}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:53 GMT + - Thu, 07 Dec 2023 18:28:14 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_8XJzHbJshJgVwA + - req_sWvk1p7Da4gC8Y Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NgKuuB1fWySn1yGeaAnl", + "id": "pi_3OKmIyKuuB1fWySn0yOdtoHC", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NgKuuB1fWySn1yGeaAnl_secret_Hhp1W4e33DPc6Idyg8U1qwpZr", + "client_secret": "pi_3OKmIyKuuB1fWySn0yOdtoHC_secret_9gXE8oUI6j5zoyQT4rO2S2C3F", "confirmation_method": "automatic", - "created": 1701789472, + "created": 1701973692, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NgKuuB1fWySn1ueh1Kwa", + "latest_charge": "ch_3OKmIyKuuB1fWySn0jGYYkXj", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NfKuuB1fWySnoWSl16FX", + "payment_method": "pm_1OKmIyKuuB1fWySnGB0ona01", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,10 +513,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:53 GMT + recorded_at: Thu, 07 Dec 2023 18:28:14 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NgKuuB1fWySn1yGeaAnl/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIyKuuB1fWySn0yOdtoHC/capture body: encoding: US-ASCII string: '' @@ -528,7 +528,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_8XJzHbJshJgVwA","request_duration_ms":412}}' + - '{"last_request_metrics":{"request_id":"req_sWvk1p7Da4gC8Y","request_duration_ms":396}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -548,7 +548,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:55 GMT + - Thu, 07 Dec 2023 18:28:15 GMT Content-Type: - application/json Content-Length: @@ -574,11 +574,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 340b6ad0-f920-4287-9ca7-07140813d84f + - 7758efa5-c4e9-465b-ac51-b49b0328fafd Original-Request: - - req_cmEicOz7ESiYfJ + - req_GRV9KFA5y1J97p Request-Id: - - req_cmEicOz7ESiYfJ + - req_GRV9KFA5y1J97p Stripe-Should-Retry: - 'false' Stripe-Version: @@ -593,7 +593,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NgKuuB1fWySn1yGeaAnl", + "id": "pi_3OKmIyKuuB1fWySn0yOdtoHC", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -607,20 +607,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NgKuuB1fWySn1yGeaAnl_secret_Hhp1W4e33DPc6Idyg8U1qwpZr", + "client_secret": "pi_3OKmIyKuuB1fWySn0yOdtoHC_secret_9gXE8oUI6j5zoyQT4rO2S2C3F", "confirmation_method": "automatic", - "created": 1701789472, + "created": 1701973692, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NgKuuB1fWySn1ueh1Kwa", + "latest_charge": "ch_3OKmIyKuuB1fWySn0jGYYkXj", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NfKuuB1fWySnoWSl16FX", + "payment_method": "pm_1OKmIyKuuB1fWySnGB0ona01", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -645,10 +645,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:54 GMT + recorded_at: Thu, 07 Dec 2023 18:28:15 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NgKuuB1fWySn1yGeaAnl + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIyKuuB1fWySn0yOdtoHC body: encoding: US-ASCII string: '' @@ -660,7 +660,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_cmEicOz7ESiYfJ","request_duration_ms":1149}}' + - '{"last_request_metrics":{"request_id":"req_GRV9KFA5y1J97p","request_duration_ms":1081}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -680,7 +680,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:55 GMT + - Thu, 07 Dec 2023 18:28:15 GMT Content-Type: - application/json Content-Length: @@ -706,7 +706,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_aill0MXqVb2gur + - req_VcABBYmtJMMIBJ Stripe-Version: - '2023-10-16' Vary: @@ -719,7 +719,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NgKuuB1fWySn1yGeaAnl", + "id": "pi_3OKmIyKuuB1fWySn0yOdtoHC", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -733,20 +733,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NgKuuB1fWySn1yGeaAnl_secret_Hhp1W4e33DPc6Idyg8U1qwpZr", + "client_secret": "pi_3OKmIyKuuB1fWySn0yOdtoHC_secret_9gXE8oUI6j5zoyQT4rO2S2C3F", "confirmation_method": "automatic", - "created": 1701789472, + "created": 1701973692, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NgKuuB1fWySn1ueh1Kwa", + "latest_charge": "ch_3OKmIyKuuB1fWySn0jGYYkXj", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NfKuuB1fWySnoWSl16FX", + "payment_method": "pm_1OKmIyKuuB1fWySnGB0ona01", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -771,5 +771,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:55 GMT + recorded_at: Thu, 07 Dec 2023 18:28:15 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml index ac6715a45c..bded947c8d 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Mastercard_prepaid_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_N6tQgEm1E8fGfe","request_duration_ms":520}}' + - '{"last_request_metrics":{"request_id":"req_vlDPSBm9PDsWK8","request_duration_ms":415}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:48 GMT + - Thu, 07 Dec 2023 18:28:10 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 76052257-c34f-4fc3-b117-0afc278bee7b + - 5031d76e-ac8c-4175-82cd-9160a7ccf8fd Original-Request: - - req_hix7PK9Zzy9g4L + - req_GCk6Tnq2Bn7hi2 Request-Id: - - req_hix7PK9Zzy9g4L + - req_GCk6Tnq2Bn7hi2 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0NcKuuB1fWySnAjHXboxb", + "id": "pm_1OKmIvKuuB1fWySn0UotxQcB", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789468, + "created": 1701973690, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:17:48 GMT + recorded_at: Thu, 07 Dec 2023 18:28:10 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0NcKuuB1fWySnAjHXboxb&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmIvKuuB1fWySn0UotxQcB&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_hix7PK9Zzy9g4L","request_duration_ms":698}}' + - '{"last_request_metrics":{"request_id":"req_GCk6Tnq2Bn7hi2","request_duration_ms":479}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:49 GMT + - Thu, 07 Dec 2023 18:28:10 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 9936f0c5-e736-4a4c-8879-ad0232bad386 + - 47c43465-e411-4d4e-8375-74ebe18ea787 Original-Request: - - req_1ntV8cC7LCbXxS + - req_aFDLK2uYAlMUV2 Request-Id: - - req_1ntV8cC7LCbXxS + - req_aFDLK2uYAlMUV2 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NdKuuB1fWySn1VJhrWPK", + "id": "pi_3OKmIwKuuB1fWySn29MNd4b5", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NdKuuB1fWySn1VJhrWPK_secret_XOOVJ1E38rhFTZpLJMPC1czz2", + "client_secret": "pi_3OKmIwKuuB1fWySn29MNd4b5_secret_n6qH5rZatMf6DZZJpIPdMfE4x", "confirmation_method": "automatic", - "created": 1701789469, + "created": 1701973690, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NcKuuB1fWySnAjHXboxb", + "payment_method": "pm_1OKmIvKuuB1fWySn0UotxQcB", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:48 GMT + recorded_at: Thu, 07 Dec 2023 18:28:10 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NdKuuB1fWySn1VJhrWPK/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIwKuuB1fWySn29MNd4b5/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_1ntV8cC7LCbXxS","request_duration_ms":500}}' + - '{"last_request_metrics":{"request_id":"req_aFDLK2uYAlMUV2","request_duration_ms":414}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:50 GMT + - Thu, 07 Dec 2023 18:28:11 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 1e145cff-e685-4fe6-aea7-1a1a3049fb79 + - f7fdedd2-0d99-4fb8-835b-a795a820222d Original-Request: - - req_KyB5JVspgGqCUF + - req_sbshHeH2Wx1hhY Request-Id: - - req_KyB5JVspgGqCUF + - req_sbshHeH2Wx1hhY Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NdKuuB1fWySn1VJhrWPK", + "id": "pi_3OKmIwKuuB1fWySn29MNd4b5", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NdKuuB1fWySn1VJhrWPK_secret_XOOVJ1E38rhFTZpLJMPC1czz2", + "client_secret": "pi_3OKmIwKuuB1fWySn29MNd4b5_secret_n6qH5rZatMf6DZZJpIPdMfE4x", "confirmation_method": "automatic", - "created": 1701789469, + "created": 1701973690, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NdKuuB1fWySn14dEedyj", + "latest_charge": "ch_3OKmIwKuuB1fWySn2NSqxtHh", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NcKuuB1fWySnAjHXboxb", + "payment_method": "pm_1OKmIvKuuB1fWySn0UotxQcB", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,131 +387,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:50 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NdKuuB1fWySn1VJhrWPK - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_KyB5JVspgGqCUF","request_duration_ms":1162}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 - (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) - #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Tue, 05 Dec 2023 15:17:51 GMT - Content-Type: - - application/json - Content-Length: - - '1365' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; - block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action - 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; - style-src 'self' - Request-Id: - - req_DBhgYBoHBETSJI - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OK0NdKuuB1fWySn1VJhrWPK", - "object": "payment_intent", - "amount": 100, - "amount_capturable": 100, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OK0NdKuuB1fWySn1VJhrWPK_secret_XOOVJ1E38rhFTZpLJMPC1czz2", - "confirmation_method": "automatic", - "created": 1701789469, - "currency": "eur", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OK0NdKuuB1fWySn14dEedyj", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OK0NcKuuB1fWySnAjHXboxb", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_capture", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Tue, 05 Dec 2023 15:17:50 GMT + recorded_at: Thu, 07 Dec 2023 18:28:11 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/captures_the_payment.yml index b172643335..43c40cd01a 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_VDRgkPf2FBfebe","request_duration_ms":510}}' + - '{"last_request_metrics":{"request_id":"req_5lq9PtnUoXyLPw","request_duration_ms":938}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:54 GMT + - Thu, 07 Dec 2023 18:29:02 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - '097e2ea9-cb9f-4d21-92db-ec3636fe6028' + - 18cc6ca7-63f8-498d-888b-7107bea75cc2 Original-Request: - - req_r5G0ar3oolAlr3 + - req_9w6m8nEmuujHke Request-Id: - - req_r5G0ar3oolAlr3 + - req_9w6m8nEmuujHke Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0OgKuuB1fWySndE4QLhcf", + "id": "pm_1OKmJmKuuB1fWySnN7mltuaD", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789534, + "created": 1701973742, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:18:54 GMT + recorded_at: Thu, 07 Dec 2023 18:29:02 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0OgKuuB1fWySndE4QLhcf&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmJmKuuB1fWySnN7mltuaD&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_r5G0ar3oolAlr3","request_duration_ms":698}}' + - '{"last_request_metrics":{"request_id":"req_9w6m8nEmuujHke","request_duration_ms":528}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:55 GMT + - Thu, 07 Dec 2023 18:29:03 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 6a9e3b3a-b837-411b-8b04-45b70df9c394 + - 8aca522d-a7dd-47c8-970b-c1d5a47ab272 Original-Request: - - req_sHRwqKxjRHO7F8 + - req_b62qgE3SlQ8SQn Request-Id: - - req_sHRwqKxjRHO7F8 + - req_b62qgE3SlQ8SQn Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OgKuuB1fWySn2ctItjtf", + "id": "pi_3OKmJmKuuB1fWySn2HsW0MtO", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OgKuuB1fWySn2ctItjtf_secret_dPzJ6CdD6ym8KU7elt1grEjCX", + "client_secret": "pi_3OKmJmKuuB1fWySn2HsW0MtO_secret_7fUJpPC0UeclH2DFfJpPtTNS7", "confirmation_method": "automatic", - "created": 1701789534, + "created": 1701973742, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OgKuuB1fWySndE4QLhcf", + "payment_method": "pm_1OKmJmKuuB1fWySnN7mltuaD", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:54 GMT + recorded_at: Thu, 07 Dec 2023 18:29:03 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OgKuuB1fWySn2ctItjtf/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJmKuuB1fWySn2HsW0MtO/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_sHRwqKxjRHO7F8","request_duration_ms":727}}' + - '{"last_request_metrics":{"request_id":"req_b62qgE3SlQ8SQn","request_duration_ms":421}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:56 GMT + - Thu, 07 Dec 2023 18:29:04 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 3718bc28-db6e-4764-9e95-3dc575cd968e + - 4d51916a-ea76-4680-9fbc-b4b4688ff1cc Original-Request: - - req_P54IGcpVNpPJSr + - req_r6qKm2z3Lu9AIr Request-Id: - - req_P54IGcpVNpPJSr + - req_r6qKm2z3Lu9AIr Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OgKuuB1fWySn2ctItjtf", + "id": "pi_3OKmJmKuuB1fWySn2HsW0MtO", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OgKuuB1fWySn2ctItjtf_secret_dPzJ6CdD6ym8KU7elt1grEjCX", + "client_secret": "pi_3OKmJmKuuB1fWySn2HsW0MtO_secret_7fUJpPC0UeclH2DFfJpPtTNS7", "confirmation_method": "automatic", - "created": 1701789534, + "created": 1701973742, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OgKuuB1fWySn2rP3lagy", + "latest_charge": "ch_3OKmJmKuuB1fWySn2cIAOvf6", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OgKuuB1fWySndE4QLhcf", + "payment_method": "pm_1OKmJmKuuB1fWySnN7mltuaD", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:56 GMT + recorded_at: Thu, 07 Dec 2023 18:29:04 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OgKuuB1fWySn2ctItjtf + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJmKuuB1fWySn2HsW0MtO body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_P54IGcpVNpPJSr","request_duration_ms":1129}}' + - '{"last_request_metrics":{"request_id":"req_r6qKm2z3Lu9AIr","request_duration_ms":996}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:56 GMT + - Thu, 07 Dec 2023 18:29:04 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_UITNkgej12gmYd + - req_S8T06ajpohMUDd Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OgKuuB1fWySn2ctItjtf", + "id": "pi_3OKmJmKuuB1fWySn2HsW0MtO", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OgKuuB1fWySn2ctItjtf_secret_dPzJ6CdD6ym8KU7elt1grEjCX", + "client_secret": "pi_3OKmJmKuuB1fWySn2HsW0MtO_secret_7fUJpPC0UeclH2DFfJpPtTNS7", "confirmation_method": "automatic", - "created": 1701789534, + "created": 1701973742, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OgKuuB1fWySn2rP3lagy", + "latest_charge": "ch_3OKmJmKuuB1fWySn2cIAOvf6", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OgKuuB1fWySndE4QLhcf", + "payment_method": "pm_1OKmJmKuuB1fWySnN7mltuaD", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,10 +513,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:56 GMT + recorded_at: Thu, 07 Dec 2023 18:29:04 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OgKuuB1fWySn2ctItjtf/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJmKuuB1fWySn2HsW0MtO/capture body: encoding: US-ASCII string: '' @@ -528,7 +528,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_UITNkgej12gmYd","request_duration_ms":432}}' + - '{"last_request_metrics":{"request_id":"req_S8T06ajpohMUDd","request_duration_ms":365}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -548,7 +548,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:58 GMT + - Thu, 07 Dec 2023 18:29:05 GMT Content-Type: - application/json Content-Length: @@ -574,11 +574,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - '0229161d-dc66-4a6d-a29d-3655878b6232' + - 3caf59d2-706a-4937-a2a1-61adbf853571 Original-Request: - - req_QFS7N7FC7z3Uab + - req_yvOzPRO1kGzC6e Request-Id: - - req_QFS7N7FC7z3Uab + - req_yvOzPRO1kGzC6e Stripe-Should-Retry: - 'false' Stripe-Version: @@ -593,7 +593,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OgKuuB1fWySn2ctItjtf", + "id": "pi_3OKmJmKuuB1fWySn2HsW0MtO", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -607,20 +607,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OgKuuB1fWySn2ctItjtf_secret_dPzJ6CdD6ym8KU7elt1grEjCX", + "client_secret": "pi_3OKmJmKuuB1fWySn2HsW0MtO_secret_7fUJpPC0UeclH2DFfJpPtTNS7", "confirmation_method": "automatic", - "created": 1701789534, + "created": 1701973742, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OgKuuB1fWySn2rP3lagy", + "latest_charge": "ch_3OKmJmKuuB1fWySn2cIAOvf6", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OgKuuB1fWySndE4QLhcf", + "payment_method": "pm_1OKmJmKuuB1fWySnN7mltuaD", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -645,10 +645,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:57 GMT + recorded_at: Thu, 07 Dec 2023 18:29:05 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OgKuuB1fWySn2ctItjtf + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJmKuuB1fWySn2HsW0MtO body: encoding: US-ASCII string: '' @@ -660,7 +660,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_QFS7N7FC7z3Uab","request_duration_ms":1263}}' + - '{"last_request_metrics":{"request_id":"req_yvOzPRO1kGzC6e","request_duration_ms":1136}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -680,7 +680,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:58 GMT + - Thu, 07 Dec 2023 18:29:05 GMT Content-Type: - application/json Content-Length: @@ -706,7 +706,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_YilKaEGPGZwhMS + - req_lOUNaGa92cjisG Stripe-Version: - '2023-10-16' Vary: @@ -719,7 +719,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OgKuuB1fWySn2ctItjtf", + "id": "pi_3OKmJmKuuB1fWySn2HsW0MtO", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -733,20 +733,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OgKuuB1fWySn2ctItjtf_secret_dPzJ6CdD6ym8KU7elt1grEjCX", + "client_secret": "pi_3OKmJmKuuB1fWySn2HsW0MtO_secret_7fUJpPC0UeclH2DFfJpPtTNS7", "confirmation_method": "automatic", - "created": 1701789534, + "created": 1701973742, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OgKuuB1fWySn2rP3lagy", + "latest_charge": "ch_3OKmJmKuuB1fWySn2cIAOvf6", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OgKuuB1fWySndE4QLhcf", + "payment_method": "pm_1OKmJmKuuB1fWySnN7mltuaD", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -771,5 +771,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:58 GMT + recorded_at: Thu, 07 Dec 2023 18:29:05 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml index 90006be8a4..e875d1dae8 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_ZuE1qwJzDm3cwU","request_duration_ms":378}}' + - '{"last_request_metrics":{"request_id":"req_2zWWDLVtynwwtV","request_duration_ms":339}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:51 GMT + - Thu, 07 Dec 2023 18:29:00 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 7f960af1-3d82-4fcf-80ac-16cee68e7688 + - bac6aaeb-2657-41e6-95ee-c4846914e9e2 Original-Request: - - req_d8ZiiACtQ06Rbo + - req_4DDLPka7PRm8qx Request-Id: - - req_d8ZiiACtQ06Rbo + - req_4DDLPka7PRm8qx Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0OdKuuB1fWySnp3GL2sQq", + "id": "pm_1OKmJjKuuB1fWySnxBlBVCMq", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789531, + "created": 1701973740, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:18:51 GMT + recorded_at: Thu, 07 Dec 2023 18:29:00 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0OdKuuB1fWySnp3GL2sQq&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmJjKuuB1fWySnxBlBVCMq&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_d8ZiiACtQ06Rbo","request_duration_ms":471}}' + - '{"last_request_metrics":{"request_id":"req_4DDLPka7PRm8qx","request_duration_ms":563}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:51 GMT + - Thu, 07 Dec 2023 18:29:00 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - ab05b392-8c4e-4135-8e07-78e27a5b5c97 + - 98bc2cb0-1203-425f-8039-2bd74d06afa7 Original-Request: - - req_zBMGBk4ALHJ53k + - req_EF7Zjsls89gtcc Request-Id: - - req_zBMGBk4ALHJ53k + - req_EF7Zjsls89gtcc Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OdKuuB1fWySn0jRLoF0O", + "id": "pi_3OKmJkKuuB1fWySn2h9yC6OE", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OdKuuB1fWySn0jRLoF0O_secret_XgzEEP58gQQRJTdZFScMUngKz", + "client_secret": "pi_3OKmJkKuuB1fWySn2h9yC6OE_secret_Syqi7Yi3sKrYcJgRe9OZ3M03W", "confirmation_method": "automatic", - "created": 1701789531, + "created": 1701973740, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OdKuuB1fWySnp3GL2sQq", + "payment_method": "pm_1OKmJjKuuB1fWySnxBlBVCMq", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:51 GMT + recorded_at: Thu, 07 Dec 2023 18:29:00 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OdKuuB1fWySn0jRLoF0O/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJkKuuB1fWySn2h9yC6OE/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_zBMGBk4ALHJ53k","request_duration_ms":429}}' + - '{"last_request_metrics":{"request_id":"req_EF7Zjsls89gtcc","request_duration_ms":517}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:52 GMT + - Thu, 07 Dec 2023 18:29:01 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 8591c014-5c0a-40e0-b568-a85f84808cd4 + - 1ff2a6fa-0cca-43f8-b3aa-cfa596dc4421 Original-Request: - - req_KJ5m1JKnvKuW7X + - req_5lq9PtnUoXyLPw Request-Id: - - req_KJ5m1JKnvKuW7X + - req_5lq9PtnUoXyLPw Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OdKuuB1fWySn0jRLoF0O", + "id": "pi_3OKmJkKuuB1fWySn2h9yC6OE", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OdKuuB1fWySn0jRLoF0O_secret_XgzEEP58gQQRJTdZFScMUngKz", + "client_secret": "pi_3OKmJkKuuB1fWySn2h9yC6OE_secret_Syqi7Yi3sKrYcJgRe9OZ3M03W", "confirmation_method": "automatic", - "created": 1701789531, + "created": 1701973740, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OdKuuB1fWySn0FO8hMSz", + "latest_charge": "ch_3OKmJkKuuB1fWySn2QGrHjbh", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OdKuuB1fWySnp3GL2sQq", + "payment_method": "pm_1OKmJjKuuB1fWySnxBlBVCMq", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,131 +387,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:52 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OdKuuB1fWySn0jRLoF0O - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_KJ5m1JKnvKuW7X","request_duration_ms":1042}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 - (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) - #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Tue, 05 Dec 2023 15:18:53 GMT - Content-Type: - - application/json - Content-Length: - - '1365' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; - block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action - 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; - style-src 'self' - Request-Id: - - req_VDRgkPf2FBfebe - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OK0OdKuuB1fWySn0jRLoF0O", - "object": "payment_intent", - "amount": 100, - "amount_capturable": 100, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OK0OdKuuB1fWySn0jRLoF0O_secret_XgzEEP58gQQRJTdZFScMUngKz", - "confirmation_method": "automatic", - "created": 1701789531, - "currency": "eur", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OK0OdKuuB1fWySn0FO8hMSz", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OK0OdKuuB1fWySnp3GL2sQq", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_capture", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Tue, 05 Dec 2023 15:18:53 GMT + recorded_at: Thu, 07 Dec 2023 18:29:01 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/captures_the_payment.yml index 081c8d3f51..fb76b5dac6 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_ZBWC0ReWn01SQD","request_duration_ms":470}}' + - '{"last_request_metrics":{"request_id":"req_lQjksKV4vhBtU4","request_duration_ms":1042}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:19:11 GMT + - Thu, 07 Dec 2023 18:29:15 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - ece5f5ca-94ae-485f-b50f-cb8adabdf8df + - ef7931d8-e41c-4dd2-af6c-1030dbf44020 Original-Request: - - req_Wo2qnoErMuGcJk + - req_kB3exiGMrNfKRN Request-Id: - - req_Wo2qnoErMuGcJk + - req_kB3exiGMrNfKRN Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0OxKuuB1fWySnzESkHW85", + "id": "pm_1OKmJyKuuB1fWySnsszSwBHm", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789551, + "created": 1701973754, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:19:11 GMT + recorded_at: Thu, 07 Dec 2023 18:29:15 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0OxKuuB1fWySnzESkHW85&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmJyKuuB1fWySnsszSwBHm&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Wo2qnoErMuGcJk","request_duration_ms":1426}}' + - '{"last_request_metrics":{"request_id":"req_kB3exiGMrNfKRN","request_duration_ms":465}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:19:12 GMT + - Thu, 07 Dec 2023 18:29:15 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 3315bd46-3d67-465e-ab03-503feec78d86 + - d2494f57-927d-4656-8285-54c92d4ff191 Original-Request: - - req_KNDdQAdBM86x54 + - req_2wLEahPhrobjsU Request-Id: - - req_KNDdQAdBM86x54 + - req_2wLEahPhrobjsU Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OyKuuB1fWySn0R6JrFXQ", + "id": "pi_3OKmJzKuuB1fWySn2gQ39AGY", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OyKuuB1fWySn0R6JrFXQ_secret_HrcT6rjw8dm8YPLHpOwKACXDS", + "client_secret": "pi_3OKmJzKuuB1fWySn2gQ39AGY_secret_Q00xY5CYKf5fBj3D1SmvKCdgl", "confirmation_method": "automatic", - "created": 1701789552, + "created": 1701973755, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OxKuuB1fWySnzESkHW85", + "payment_method": "pm_1OKmJyKuuB1fWySnsszSwBHm", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:19:13 GMT + recorded_at: Thu, 07 Dec 2023 18:29:15 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OyKuuB1fWySn0R6JrFXQ/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJzKuuB1fWySn2gQ39AGY/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_KNDdQAdBM86x54","request_duration_ms":506}}' + - '{"last_request_metrics":{"request_id":"req_2wLEahPhrobjsU","request_duration_ms":413}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:19:14 GMT + - Thu, 07 Dec 2023 18:29:16 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - af79f075-1e7e-43b6-aaac-34ec571ae48a + - 9cdacd12-84e6-41ed-b5d5-c1b891d84ef8 Original-Request: - - req_IQzO3S0a5cIp1l + - req_ffWeJ30HZbPRpG Request-Id: - - req_IQzO3S0a5cIp1l + - req_ffWeJ30HZbPRpG Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OyKuuB1fWySn0R6JrFXQ", + "id": "pi_3OKmJzKuuB1fWySn2gQ39AGY", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OyKuuB1fWySn0R6JrFXQ_secret_HrcT6rjw8dm8YPLHpOwKACXDS", + "client_secret": "pi_3OKmJzKuuB1fWySn2gQ39AGY_secret_Q00xY5CYKf5fBj3D1SmvKCdgl", "confirmation_method": "automatic", - "created": 1701789552, + "created": 1701973755, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OyKuuB1fWySn0DK45tX5", + "latest_charge": "ch_3OKmJzKuuB1fWySn2nafqEAt", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OxKuuB1fWySnzESkHW85", + "payment_method": "pm_1OKmJyKuuB1fWySnsszSwBHm", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:19:14 GMT + recorded_at: Thu, 07 Dec 2023 18:29:16 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OyKuuB1fWySn0R6JrFXQ + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJzKuuB1fWySn2gQ39AGY body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_IQzO3S0a5cIp1l","request_duration_ms":1108}}' + - '{"last_request_metrics":{"request_id":"req_ffWeJ30HZbPRpG","request_duration_ms":892}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:19:14 GMT + - Thu, 07 Dec 2023 18:29:16 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_KmR6LU2UUpi5j4 + - req_210ENud0ju1HKE Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OyKuuB1fWySn0R6JrFXQ", + "id": "pi_3OKmJzKuuB1fWySn2gQ39AGY", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OyKuuB1fWySn0R6JrFXQ_secret_HrcT6rjw8dm8YPLHpOwKACXDS", + "client_secret": "pi_3OKmJzKuuB1fWySn2gQ39AGY_secret_Q00xY5CYKf5fBj3D1SmvKCdgl", "confirmation_method": "automatic", - "created": 1701789552, + "created": 1701973755, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OyKuuB1fWySn0DK45tX5", + "latest_charge": "ch_3OKmJzKuuB1fWySn2nafqEAt", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OxKuuB1fWySnzESkHW85", + "payment_method": "pm_1OKmJyKuuB1fWySnsszSwBHm", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,10 +513,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:19:14 GMT + recorded_at: Thu, 07 Dec 2023 18:29:16 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OyKuuB1fWySn0R6JrFXQ/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJzKuuB1fWySn2gQ39AGY/capture body: encoding: US-ASCII string: '' @@ -528,7 +528,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_KmR6LU2UUpi5j4","request_duration_ms":555}}' + - '{"last_request_metrics":{"request_id":"req_210ENud0ju1HKE","request_duration_ms":355}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -548,7 +548,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:19:15 GMT + - Thu, 07 Dec 2023 18:29:17 GMT Content-Type: - application/json Content-Length: @@ -574,11 +574,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - a44878b0-2de2-4bac-b3d5-7e1750d36aae + - 81e57b07-3eff-41b9-937b-762c86827533 Original-Request: - - req_U33tub2kFefrZV + - req_TMQCuVeVHwVw5S Request-Id: - - req_U33tub2kFefrZV + - req_TMQCuVeVHwVw5S Stripe-Should-Retry: - 'false' Stripe-Version: @@ -593,7 +593,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OyKuuB1fWySn0R6JrFXQ", + "id": "pi_3OKmJzKuuB1fWySn2gQ39AGY", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -607,20 +607,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OyKuuB1fWySn0R6JrFXQ_secret_HrcT6rjw8dm8YPLHpOwKACXDS", + "client_secret": "pi_3OKmJzKuuB1fWySn2gQ39AGY_secret_Q00xY5CYKf5fBj3D1SmvKCdgl", "confirmation_method": "automatic", - "created": 1701789552, + "created": 1701973755, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OyKuuB1fWySn0DK45tX5", + "latest_charge": "ch_3OKmJzKuuB1fWySn2nafqEAt", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OxKuuB1fWySnzESkHW85", + "payment_method": "pm_1OKmJyKuuB1fWySnsszSwBHm", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -645,10 +645,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:19:15 GMT + recorded_at: Thu, 07 Dec 2023 18:29:17 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OyKuuB1fWySn0R6JrFXQ + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJzKuuB1fWySn2gQ39AGY body: encoding: US-ASCII string: '' @@ -660,7 +660,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_U33tub2kFefrZV","request_duration_ms":1196}}' + - '{"last_request_metrics":{"request_id":"req_TMQCuVeVHwVw5S","request_duration_ms":1067}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -680,7 +680,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:19:16 GMT + - Thu, 07 Dec 2023 18:29:18 GMT Content-Type: - application/json Content-Length: @@ -706,7 +706,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_job7iKTfQQRxAj + - req_lwQRHFtJffzrsQ Stripe-Version: - '2023-10-16' Vary: @@ -719,7 +719,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OyKuuB1fWySn0R6JrFXQ", + "id": "pi_3OKmJzKuuB1fWySn2gQ39AGY", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -733,20 +733,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OyKuuB1fWySn0R6JrFXQ_secret_HrcT6rjw8dm8YPLHpOwKACXDS", + "client_secret": "pi_3OKmJzKuuB1fWySn2gQ39AGY_secret_Q00xY5CYKf5fBj3D1SmvKCdgl", "confirmation_method": "automatic", - "created": 1701789552, + "created": 1701973755, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OyKuuB1fWySn0DK45tX5", + "latest_charge": "ch_3OKmJzKuuB1fWySn2nafqEAt", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OxKuuB1fWySnzESkHW85", + "payment_method": "pm_1OKmJyKuuB1fWySnsszSwBHm", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -771,5 +771,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:19:16 GMT + recorded_at: Thu, 07 Dec 2023 18:29:18 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml index 2dcc7c5887..bb48ac25be 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_19-digit_card_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_xKCeFNu7e5BfpF","request_duration_ms":626}}' + - '{"last_request_metrics":{"request_id":"req_gsnpT3uI9HJnag","request_duration_ms":414}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:19:07 GMT + - Thu, 07 Dec 2023 18:29:12 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - be9e256b-0f4d-454b-8623-fc780032e7df + - ea279aa4-cd8c-4214-b3c4-ecf799a66bfc Original-Request: - - req_WUH9xgO9YiyVO0 + - req_2633uyioYxWtWv Request-Id: - - req_WUH9xgO9YiyVO0 + - req_2633uyioYxWtWv Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0OtKuuB1fWySnjgEiVnHP", + "id": "pm_1OKmJwKuuB1fWySn6W4AhRay", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789547, + "created": 1701973752, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:19:07 GMT + recorded_at: Thu, 07 Dec 2023 18:29:12 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0OtKuuB1fWySnjgEiVnHP&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmJwKuuB1fWySn6W4AhRay&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_WUH9xgO9YiyVO0","request_duration_ms":771}}' + - '{"last_request_metrics":{"request_id":"req_2633uyioYxWtWv","request_duration_ms":483}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:19:08 GMT + - Thu, 07 Dec 2023 18:29:13 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 67bced54-f962-4e02-8228-4a75039e431c + - 4251c5ab-4b5f-4df3-bba7-3fd54a8007da Original-Request: - - req_JBW5GoKQBMNf85 + - req_N0yYfytPMk5TYB Request-Id: - - req_JBW5GoKQBMNf85 + - req_N0yYfytPMk5TYB Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OuKuuB1fWySn019xq8Gn", + "id": "pi_3OKmJwKuuB1fWySn0aDOQPhL", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OuKuuB1fWySn019xq8Gn_secret_ig38E6cBdFNumh1qsnN6nz1ms", + "client_secret": "pi_3OKmJwKuuB1fWySn0aDOQPhL_secret_ueesaBqql28emDHjN57Pq591r", "confirmation_method": "automatic", - "created": 1701789548, + "created": 1701973752, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OtKuuB1fWySnjgEiVnHP", + "payment_method": "pm_1OKmJwKuuB1fWySn6W4AhRay", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:19:08 GMT + recorded_at: Thu, 07 Dec 2023 18:29:13 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OuKuuB1fWySn019xq8Gn/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJwKuuB1fWySn0aDOQPhL/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_JBW5GoKQBMNf85","request_duration_ms":724}}' + - '{"last_request_metrics":{"request_id":"req_N0yYfytPMk5TYB","request_duration_ms":416}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:19:09 GMT + - Thu, 07 Dec 2023 18:29:14 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - e1171110-f120-4eb6-9bc4-eea959e5ff2c + - 5c4ab8a3-426a-4a16-86f9-9169dbe9a925 Original-Request: - - req_312xR4RbraiN7K + - req_lQjksKV4vhBtU4 Request-Id: - - req_312xR4RbraiN7K + - req_lQjksKV4vhBtU4 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OuKuuB1fWySn019xq8Gn", + "id": "pi_3OKmJwKuuB1fWySn0aDOQPhL", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OuKuuB1fWySn019xq8Gn_secret_ig38E6cBdFNumh1qsnN6nz1ms", + "client_secret": "pi_3OKmJwKuuB1fWySn0aDOQPhL_secret_ueesaBqql28emDHjN57Pq591r", "confirmation_method": "automatic", - "created": 1701789548, + "created": 1701973752, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OuKuuB1fWySn0Xaro0pW", + "latest_charge": "ch_3OKmJwKuuB1fWySn04LooZve", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OtKuuB1fWySnjgEiVnHP", + "payment_method": "pm_1OKmJwKuuB1fWySn6W4AhRay", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,131 +387,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:19:09 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OuKuuB1fWySn019xq8Gn - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_312xR4RbraiN7K","request_duration_ms":1148}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 - (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) - #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Tue, 05 Dec 2023 15:19:10 GMT - Content-Type: - - application/json - Content-Length: - - '1365' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; - block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action - 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; - style-src 'self' - Request-Id: - - req_ZBWC0ReWn01SQD - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OK0OuKuuB1fWySn019xq8Gn", - "object": "payment_intent", - "amount": 100, - "amount_capturable": 100, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OK0OuKuuB1fWySn019xq8Gn_secret_ig38E6cBdFNumh1qsnN6nz1ms", - "confirmation_method": "automatic", - "created": 1701789548, - "currency": "eur", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OK0OuKuuB1fWySn0Xaro0pW", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OK0OtKuuB1fWySnjgEiVnHP", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_capture", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Tue, 05 Dec 2023 15:19:10 GMT + recorded_at: Thu, 07 Dec 2023 18:29:14 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/captures_the_payment.yml index 7cd924ef63..be5d81ffc7 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Y5NxTpKbH4Fc7E","request_duration_ms":474}}' + - '{"last_request_metrics":{"request_id":"req_8R3lB6qiHjlhw8","request_duration_ms":905}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:19:02 GMT + - Thu, 07 Dec 2023 18:29:08 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 2cd56fed-2848-496a-93c7-2c5036c3536a + - af609236-ecd4-4708-9d74-e392332591a7 Original-Request: - - req_70aKrc8cE9PJxb + - req_Bb8iiEvxuCp321 Request-Id: - - req_70aKrc8cE9PJxb + - req_Bb8iiEvxuCp321 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0OoKuuB1fWySnWTaF1Bpw", + "id": "pm_1OKmJsKuuB1fWySnF6m4mPIa", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789542, + "created": 1701973748, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:19:02 GMT + recorded_at: Thu, 07 Dec 2023 18:29:08 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0OoKuuB1fWySnWTaF1Bpw&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmJsKuuB1fWySnF6m4mPIa&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_70aKrc8cE9PJxb","request_duration_ms":567}}' + - '{"last_request_metrics":{"request_id":"req_Bb8iiEvxuCp321","request_duration_ms":505}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:19:03 GMT + - Thu, 07 Dec 2023 18:29:09 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 598c36d2-0ccb-4fd7-be00-15c171402d72 + - 4612da6a-e5a7-4b37-bcae-30195ee7aa97 Original-Request: - - req_AybcFGK5cPU57A + - req_7aD2toa9tm3M6C Request-Id: - - req_AybcFGK5cPU57A + - req_7aD2toa9tm3M6C Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OpKuuB1fWySn1Kuri4H6", + "id": "pi_3OKmJsKuuB1fWySn2qrtgznf", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OpKuuB1fWySn1Kuri4H6_secret_OV3xnSkYVvrNI8FQiwUOgHH6K", + "client_secret": "pi_3OKmJsKuuB1fWySn2qrtgznf_secret_LOFTbILNdq7jqafunk22yYlGQ", "confirmation_method": "automatic", - "created": 1701789543, + "created": 1701973748, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OoKuuB1fWySnWTaF1Bpw", + "payment_method": "pm_1OKmJsKuuB1fWySnF6m4mPIa", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:19:02 GMT + recorded_at: Thu, 07 Dec 2023 18:29:09 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OpKuuB1fWySn1Kuri4H6/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJsKuuB1fWySn2qrtgznf/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_AybcFGK5cPU57A","request_duration_ms":518}}' + - '{"last_request_metrics":{"request_id":"req_7aD2toa9tm3M6C","request_duration_ms":506}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:19:04 GMT + - Thu, 07 Dec 2023 18:29:10 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 7f4ad8a9-023f-4a7c-8ca6-fb7d4579b175 + - f871e694-c54b-4d8d-a5ed-e4cf9b4a07ac Original-Request: - - req_L8ggX8i1brrIwq + - req_Ko8s2PiXaYXFt1 Request-Id: - - req_L8ggX8i1brrIwq + - req_Ko8s2PiXaYXFt1 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OpKuuB1fWySn1Kuri4H6", + "id": "pi_3OKmJsKuuB1fWySn2qrtgznf", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OpKuuB1fWySn1Kuri4H6_secret_OV3xnSkYVvrNI8FQiwUOgHH6K", + "client_secret": "pi_3OKmJsKuuB1fWySn2qrtgznf_secret_LOFTbILNdq7jqafunk22yYlGQ", "confirmation_method": "automatic", - "created": 1701789543, + "created": 1701973748, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OpKuuB1fWySn1c1UAlQZ", + "latest_charge": "ch_3OKmJsKuuB1fWySn2AJh6MmX", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OoKuuB1fWySnWTaF1Bpw", + "payment_method": "pm_1OKmJsKuuB1fWySnF6m4mPIa", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:19:04 GMT + recorded_at: Thu, 07 Dec 2023 18:29:10 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OpKuuB1fWySn1Kuri4H6 + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJsKuuB1fWySn2qrtgznf body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_L8ggX8i1brrIwq","request_duration_ms":1042}}' + - '{"last_request_metrics":{"request_id":"req_Ko8s2PiXaYXFt1","request_duration_ms":1041}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:19:04 GMT + - Thu, 07 Dec 2023 18:29:10 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_sMody1UzlHOhWs + - req_nx6xEGQOrtG347 Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OpKuuB1fWySn1Kuri4H6", + "id": "pi_3OKmJsKuuB1fWySn2qrtgznf", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OpKuuB1fWySn1Kuri4H6_secret_OV3xnSkYVvrNI8FQiwUOgHH6K", + "client_secret": "pi_3OKmJsKuuB1fWySn2qrtgznf_secret_LOFTbILNdq7jqafunk22yYlGQ", "confirmation_method": "automatic", - "created": 1701789543, + "created": 1701973748, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OpKuuB1fWySn1c1UAlQZ", + "latest_charge": "ch_3OKmJsKuuB1fWySn2AJh6MmX", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OoKuuB1fWySnWTaF1Bpw", + "payment_method": "pm_1OKmJsKuuB1fWySnF6m4mPIa", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,10 +513,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:19:04 GMT + recorded_at: Thu, 07 Dec 2023 18:29:10 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OpKuuB1fWySn1Kuri4H6/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJsKuuB1fWySn2qrtgznf/capture body: encoding: US-ASCII string: '' @@ -528,7 +528,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_sMody1UzlHOhWs","request_duration_ms":624}}' + - '{"last_request_metrics":{"request_id":"req_nx6xEGQOrtG347","request_duration_ms":415}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -548,7 +548,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:19:06 GMT + - Thu, 07 Dec 2023 18:29:11 GMT Content-Type: - application/json Content-Length: @@ -574,11 +574,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 1cc5051b-4a89-4baa-b6d5-91e3975bc6de + - 3ab0ca60-1076-411e-93de-a97522e87a7e Original-Request: - - req_gscNQzOu5P7I1P + - req_bRBTv3MOFQVLB0 Request-Id: - - req_gscNQzOu5P7I1P + - req_bRBTv3MOFQVLB0 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -593,7 +593,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OpKuuB1fWySn1Kuri4H6", + "id": "pi_3OKmJsKuuB1fWySn2qrtgznf", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -607,20 +607,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OpKuuB1fWySn1Kuri4H6_secret_OV3xnSkYVvrNI8FQiwUOgHH6K", + "client_secret": "pi_3OKmJsKuuB1fWySn2qrtgznf_secret_LOFTbILNdq7jqafunk22yYlGQ", "confirmation_method": "automatic", - "created": 1701789543, + "created": 1701973748, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OpKuuB1fWySn1c1UAlQZ", + "latest_charge": "ch_3OKmJsKuuB1fWySn2AJh6MmX", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OoKuuB1fWySnWTaF1Bpw", + "payment_method": "pm_1OKmJsKuuB1fWySnF6m4mPIa", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -645,10 +645,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:19:06 GMT + recorded_at: Thu, 07 Dec 2023 18:29:11 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OpKuuB1fWySn1Kuri4H6 + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJsKuuB1fWySn2qrtgznf body: encoding: US-ASCII string: '' @@ -660,7 +660,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_gscNQzOu5P7I1P","request_duration_ms":1459}}' + - '{"last_request_metrics":{"request_id":"req_bRBTv3MOFQVLB0","request_duration_ms":1145}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -680,7 +680,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:19:06 GMT + - Thu, 07 Dec 2023 18:29:12 GMT Content-Type: - application/json Content-Length: @@ -706,7 +706,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_xKCeFNu7e5BfpF + - req_gsnpT3uI9HJnag Stripe-Version: - '2023-10-16' Vary: @@ -719,7 +719,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OpKuuB1fWySn1Kuri4H6", + "id": "pi_3OKmJsKuuB1fWySn2qrtgznf", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -733,20 +733,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OpKuuB1fWySn1Kuri4H6_secret_OV3xnSkYVvrNI8FQiwUOgHH6K", + "client_secret": "pi_3OKmJsKuuB1fWySn2qrtgznf_secret_LOFTbILNdq7jqafunk22yYlGQ", "confirmation_method": "automatic", - "created": 1701789543, + "created": 1701973748, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OpKuuB1fWySn1c1UAlQZ", + "latest_charge": "ch_3OKmJsKuuB1fWySn2AJh6MmX", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OoKuuB1fWySnWTaF1Bpw", + "payment_method": "pm_1OKmJsKuuB1fWySnF6m4mPIa", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -771,5 +771,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:19:06 GMT + recorded_at: Thu, 07 Dec 2023 18:29:12 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/returns_payment_intent_id_and_does_not_raise.yml index ccffd38741..c4ae25a10e 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_UnionPay_debit_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_YilKaEGPGZwhMS","request_duration_ms":611}}' + - '{"last_request_metrics":{"request_id":"req_lOUNaGa92cjisG","request_duration_ms":342}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:59 GMT + - Thu, 07 Dec 2023 18:29:06 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 978b2222-f9be-4384-8238-d478213b1239 + - efcb895b-741d-4e3f-bd98-f25ad19b5309 Original-Request: - - req_6ky0im1v5qE61M + - req_OmK9wFqqgFxG9F Request-Id: - - req_6ky0im1v5qE61M + - req_OmK9wFqqgFxG9F Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0OlKuuB1fWySn6TbPAXxn", + "id": "pm_1OKmJqKuuB1fWySnfDJGXdZY", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789539, + "created": 1701973746, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:18:59 GMT + recorded_at: Thu, 07 Dec 2023 18:29:06 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0OlKuuB1fWySn6TbPAXxn&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmJqKuuB1fWySnfDJGXdZY&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_6ky0im1v5qE61M","request_duration_ms":602}}' + - '{"last_request_metrics":{"request_id":"req_OmK9wFqqgFxG9F","request_duration_ms":550}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:18:59 GMT + - Thu, 07 Dec 2023 18:29:06 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 30443fae-24cb-482b-8c8c-b727cb2533d1 + - 88107fb1-d7bc-4cdf-baea-a483d8cdd986 Original-Request: - - req_QrXtBC60EVCmy2 + - req_OjI9DT54CQ2LTY Request-Id: - - req_QrXtBC60EVCmy2 + - req_OjI9DT54CQ2LTY Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OlKuuB1fWySn0P4BxbMr", + "id": "pi_3OKmJqKuuB1fWySn0zkK76Dl", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OlKuuB1fWySn0P4BxbMr_secret_0tQmjyFe3HggGsQyCB9W0ecOt", + "client_secret": "pi_3OKmJqKuuB1fWySn0zkK76Dl_secret_T1rB6QH7AL2uYmMAChPBR1niS", "confirmation_method": "automatic", - "created": 1701789539, + "created": 1701973746, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OlKuuB1fWySn6TbPAXxn", + "payment_method": "pm_1OKmJqKuuB1fWySnfDJGXdZY", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:18:59 GMT + recorded_at: Thu, 07 Dec 2023 18:29:06 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OlKuuB1fWySn0P4BxbMr/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmJqKuuB1fWySn0zkK76Dl/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_QrXtBC60EVCmy2","request_duration_ms":572}}' + - '{"last_request_metrics":{"request_id":"req_OjI9DT54CQ2LTY","request_duration_ms":415}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:19:01 GMT + - Thu, 07 Dec 2023 18:29:07 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - cf93bac8-fc86-4597-a5e4-7ed08f0e7c0f + - cc2aafbe-d164-4a18-8294-7de07054b57b Original-Request: - - req_cpaKljHHUAGqXX + - req_8R3lB6qiHjlhw8 Request-Id: - - req_cpaKljHHUAGqXX + - req_8R3lB6qiHjlhw8 Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0OlKuuB1fWySn0P4BxbMr", + "id": "pi_3OKmJqKuuB1fWySn0zkK76Dl", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0OlKuuB1fWySn0P4BxbMr_secret_0tQmjyFe3HggGsQyCB9W0ecOt", + "client_secret": "pi_3OKmJqKuuB1fWySn0zkK76Dl_secret_T1rB6QH7AL2uYmMAChPBR1niS", "confirmation_method": "automatic", - "created": 1701789539, + "created": 1701973746, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0OlKuuB1fWySn02iFSj4l", + "latest_charge": "ch_3OKmJqKuuB1fWySn01avgprT", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0OlKuuB1fWySn6TbPAXxn", + "payment_method": "pm_1OKmJqKuuB1fWySnfDJGXdZY", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,131 +387,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:19:00 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0OlKuuB1fWySn0P4BxbMr - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_cpaKljHHUAGqXX","request_duration_ms":1292}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 - (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) - #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Tue, 05 Dec 2023 15:19:02 GMT - Content-Type: - - application/json - Content-Length: - - '1365' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; - block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action - 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; - style-src 'self' - Request-Id: - - req_Y5NxTpKbH4Fc7E - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OK0OlKuuB1fWySn0P4BxbMr", - "object": "payment_intent", - "amount": 100, - "amount_capturable": 100, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OK0OlKuuB1fWySn0P4BxbMr_secret_0tQmjyFe3HggGsQyCB9W0ecOt", - "confirmation_method": "automatic", - "created": 1701789539, - "currency": "eur", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OK0OlKuuB1fWySn02iFSj4l", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OK0OlKuuB1fWySn6TbPAXxn", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_capture", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Tue, 05 Dec 2023 15:19:01 GMT + recorded_at: Thu, 07 Dec 2023 18:29:07 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/captures_the_payment.yml index 88b3e0ca20..a5326969d6 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_aiF3Gd8YvpypCq","request_duration_ms":441}}' + - '{"last_request_metrics":{"request_id":"req_enswLIMTlh0aCt","request_duration_ms":1069}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:14 GMT + - Thu, 07 Dec 2023 18:27:42 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 15b53166-e52b-4a82-bac7-56277fd9ff49 + - 9d43a161-6299-4da7-98aa-18d831ea2681 Original-Request: - - req_PBn7JT6pkOAztU + - req_Ga3NHcu4BZ7VOk Request-Id: - - req_PBn7JT6pkOAztU + - req_Ga3NHcu4BZ7VOk Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0N3KuuB1fWySnrASsqWla", + "id": "pm_1OKmITKuuB1fWySnBq8miNhk", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789433, + "created": 1701973661, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:17:13 GMT + recorded_at: Thu, 07 Dec 2023 18:27:42 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0N3KuuB1fWySnrASsqWla&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmITKuuB1fWySnBq8miNhk&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_PBn7JT6pkOAztU","request_duration_ms":559}}' + - '{"last_request_metrics":{"request_id":"req_Ga3NHcu4BZ7VOk","request_duration_ms":521}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:14 GMT + - Thu, 07 Dec 2023 18:27:42 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 370042d5-b3b2-4915-9e72-3e8cd90e8ae9 + - 880e4c6a-2dfe-4448-b709-582318cd081f Original-Request: - - req_u94SpUT2S9mo8i + - req_QLb7OXWWroegdg Request-Id: - - req_u94SpUT2S9mo8i + - req_QLb7OXWWroegdg Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0N4KuuB1fWySn2cJnusju", + "id": "pi_3OKmIUKuuB1fWySn2C4XK4hL", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0N4KuuB1fWySn2cJnusju_secret_wgoyzyvA28ep1rYEiNO7QMa4H", + "client_secret": "pi_3OKmIUKuuB1fWySn2C4XK4hL_secret_7TU1TAiZ7iMBvrBf8RDayNtHA", "confirmation_method": "automatic", - "created": 1701789434, + "created": 1701973662, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0N3KuuB1fWySnrASsqWla", + "payment_method": "pm_1OKmITKuuB1fWySnBq8miNhk", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:14 GMT + recorded_at: Thu, 07 Dec 2023 18:27:42 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0N4KuuB1fWySn2cJnusju/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIUKuuB1fWySn2C4XK4hL/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_u94SpUT2S9mo8i","request_duration_ms":537}}' + - '{"last_request_metrics":{"request_id":"req_QLb7OXWWroegdg","request_duration_ms":515}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:15 GMT + - Thu, 07 Dec 2023 18:27:43 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - e42bf25e-660e-4de4-8d33-51a6e349a844 + - 2cd73e07-f7fc-4fae-a151-5d5c539a4d1d Original-Request: - - req_3MEHavjY1GaTSh + - req_qtWc0PNOPhuHyF Request-Id: - - req_3MEHavjY1GaTSh + - req_qtWc0PNOPhuHyF Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0N4KuuB1fWySn2cJnusju", + "id": "pi_3OKmIUKuuB1fWySn2C4XK4hL", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0N4KuuB1fWySn2cJnusju_secret_wgoyzyvA28ep1rYEiNO7QMa4H", + "client_secret": "pi_3OKmIUKuuB1fWySn2C4XK4hL_secret_7TU1TAiZ7iMBvrBf8RDayNtHA", "confirmation_method": "automatic", - "created": 1701789434, + "created": 1701973662, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0N4KuuB1fWySn2uAGQfXD", + "latest_charge": "ch_3OKmIUKuuB1fWySn2MPDWqBe", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0N3KuuB1fWySnrASsqWla", + "payment_method": "pm_1OKmITKuuB1fWySnBq8miNhk", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:15 GMT + recorded_at: Thu, 07 Dec 2023 18:27:43 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0N4KuuB1fWySn2cJnusju + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIUKuuB1fWySn2C4XK4hL body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_3MEHavjY1GaTSh","request_duration_ms":1041}}' + - '{"last_request_metrics":{"request_id":"req_qtWc0PNOPhuHyF","request_duration_ms":970}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:16 GMT + - Thu, 07 Dec 2023 18:27:43 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_3nAEjoUkk8p7pL + - req_IPBtFfpxb0oJWE Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0N4KuuB1fWySn2cJnusju", + "id": "pi_3OKmIUKuuB1fWySn2C4XK4hL", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0N4KuuB1fWySn2cJnusju_secret_wgoyzyvA28ep1rYEiNO7QMa4H", + "client_secret": "pi_3OKmIUKuuB1fWySn2C4XK4hL_secret_7TU1TAiZ7iMBvrBf8RDayNtHA", "confirmation_method": "automatic", - "created": 1701789434, + "created": 1701973662, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0N4KuuB1fWySn2uAGQfXD", + "latest_charge": "ch_3OKmIUKuuB1fWySn2MPDWqBe", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0N3KuuB1fWySnrASsqWla", + "payment_method": "pm_1OKmITKuuB1fWySnBq8miNhk", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,10 +513,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:15 GMT + recorded_at: Thu, 07 Dec 2023 18:27:44 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0N4KuuB1fWySn2cJnusju/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIUKuuB1fWySn2C4XK4hL/capture body: encoding: US-ASCII string: '' @@ -528,7 +528,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_3nAEjoUkk8p7pL","request_duration_ms":516}}' + - '{"last_request_metrics":{"request_id":"req_IPBtFfpxb0oJWE","request_duration_ms":384}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -548,7 +548,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:17 GMT + - Thu, 07 Dec 2023 18:27:45 GMT Content-Type: - application/json Content-Length: @@ -574,11 +574,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - f5376f8a-a0d7-43c1-b31b-7c1b7c129d76 + - 65ecb0bb-0c21-4831-b017-881bc6191cc1 Original-Request: - - req_4NW74nvyP7315A + - req_MS7l6xNI5lRN1u Request-Id: - - req_4NW74nvyP7315A + - req_MS7l6xNI5lRN1u Stripe-Should-Retry: - 'false' Stripe-Version: @@ -593,7 +593,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0N4KuuB1fWySn2cJnusju", + "id": "pi_3OKmIUKuuB1fWySn2C4XK4hL", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -607,20 +607,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0N4KuuB1fWySn2cJnusju_secret_wgoyzyvA28ep1rYEiNO7QMa4H", + "client_secret": "pi_3OKmIUKuuB1fWySn2C4XK4hL_secret_7TU1TAiZ7iMBvrBf8RDayNtHA", "confirmation_method": "automatic", - "created": 1701789434, + "created": 1701973662, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0N4KuuB1fWySn2uAGQfXD", + "latest_charge": "ch_3OKmIUKuuB1fWySn2MPDWqBe", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0N3KuuB1fWySnrASsqWla", + "payment_method": "pm_1OKmITKuuB1fWySnBq8miNhk", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -645,10 +645,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:16 GMT + recorded_at: Thu, 07 Dec 2023 18:27:45 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0N4KuuB1fWySn2cJnusju + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIUKuuB1fWySn2C4XK4hL body: encoding: US-ASCII string: '' @@ -660,7 +660,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_4NW74nvyP7315A","request_duration_ms":1146}}' + - '{"last_request_metrics":{"request_id":"req_MS7l6xNI5lRN1u","request_duration_ms":1145}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -680,7 +680,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:17 GMT + - Thu, 07 Dec 2023 18:27:45 GMT Content-Type: - application/json Content-Length: @@ -706,7 +706,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_vO8qrn7fP8cCF0 + - req_w7b6fE6CLKLyH9 Stripe-Version: - '2023-10-16' Vary: @@ -719,7 +719,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0N4KuuB1fWySn2cJnusju", + "id": "pi_3OKmIUKuuB1fWySn2C4XK4hL", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -733,20 +733,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0N4KuuB1fWySn2cJnusju_secret_wgoyzyvA28ep1rYEiNO7QMa4H", + "client_secret": "pi_3OKmIUKuuB1fWySn2C4XK4hL_secret_7TU1TAiZ7iMBvrBf8RDayNtHA", "confirmation_method": "automatic", - "created": 1701789434, + "created": 1701973662, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0N4KuuB1fWySn2uAGQfXD", + "latest_charge": "ch_3OKmIUKuuB1fWySn2MPDWqBe", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0N3KuuB1fWySnrASsqWla", + "payment_method": "pm_1OKmITKuuB1fWySnBq8miNhk", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -771,5 +771,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:17 GMT + recorded_at: Thu, 07 Dec 2023 18:27:45 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml index c4178f5c00..40ce204d07 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa/returns_payment_intent_id_and_does_not_raise.yml @@ -32,7 +32,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:09 GMT + - Thu, 07 Dec 2023 18:27:38 GMT Content-Type: - application/json Content-Length: @@ -57,11 +57,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 8024fec1-4e37-4443-b9d5-60fd5dede380 + - 5b81b402-2172-42b6-80eb-cca4f70ab902 Original-Request: - - req_u5fQT0UWabeKzG + - req_N8rdxB4z4fy4DI Request-Id: - - req_u5fQT0UWabeKzG + - req_N8rdxB4z4fy4DI Stripe-Should-Retry: - 'false' Stripe-Version: @@ -76,7 +76,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0MzKuuB1fWySnA8bo8ueR", + "id": "pm_1OKmIQKuuB1fWySnJfXdue8w", "object": "payment_method", "billing_details": { "address": { @@ -116,19 +116,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789429, + "created": 1701973658, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:17:09 GMT + recorded_at: Thu, 07 Dec 2023 18:27:39 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0MzKuuB1fWySnA8bo8ueR&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmIQKuuB1fWySnJfXdue8w&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -137,7 +137,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_u5fQT0UWabeKzG","request_duration_ms":1776}}' + - '{"last_request_metrics":{"request_id":"req_N8rdxB4z4fy4DI","request_duration_ms":767}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -157,7 +157,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:10 GMT + - Thu, 07 Dec 2023 18:27:39 GMT Content-Type: - application/json Content-Length: @@ -182,11 +182,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - d54433cd-6e3a-43dc-8e9e-3213bb6e18a2 + - a255a1b0-a315-4d46-96d1-00c36543227e Original-Request: - - req_Y5oEH60D4yi40a + - req_tYVVDWRnXGPrtx Request-Id: - - req_Y5oEH60D4yi40a + - req_tYVVDWRnXGPrtx Stripe-Should-Retry: - 'false' Stripe-Version: @@ -201,7 +201,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0N0KuuB1fWySn0y6d7Alg", + "id": "pi_3OKmIRKuuB1fWySn2lCHwcUL", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -215,9 +215,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0N0KuuB1fWySn0y6d7Alg_secret_ifL68RNgHXIPXNWBlHNuzixnA", + "client_secret": "pi_3OKmIRKuuB1fWySn2lCHwcUL_secret_UxoKiRX2gOkVBFZ0oeN73xgbT", "confirmation_method": "automatic", - "created": 1701789430, + "created": 1701973659, "currency": "eur", "customer": null, "description": null, @@ -228,7 +228,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0MzKuuB1fWySnA8bo8ueR", + "payment_method": "pm_1OKmIQKuuB1fWySnJfXdue8w", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -253,10 +253,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:10 GMT + recorded_at: Thu, 07 Dec 2023 18:27:39 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0N0KuuB1fWySn0y6d7Alg/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIRKuuB1fWySn2lCHwcUL/confirm body: encoding: US-ASCII string: '' @@ -268,7 +268,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Y5oEH60D4yi40a","request_duration_ms":1144}}' + - '{"last_request_metrics":{"request_id":"req_tYVVDWRnXGPrtx","request_duration_ms":592}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -288,7 +288,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:12 GMT + - Thu, 07 Dec 2023 18:27:40 GMT Content-Type: - application/json Content-Length: @@ -314,11 +314,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - c2405253-b731-4a6d-a5ff-5d856039ceb1 + - 4f1a4fe9-6340-4db1-91a9-811e21b1e4f7 Original-Request: - - req_z9trADZXt0Lqsv + - req_enswLIMTlh0aCt Request-Id: - - req_z9trADZXt0Lqsv + - req_enswLIMTlh0aCt Stripe-Should-Retry: - 'false' Stripe-Version: @@ -333,7 +333,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0N0KuuB1fWySn0y6d7Alg", + "id": "pi_3OKmIRKuuB1fWySn2lCHwcUL", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -347,20 +347,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0N0KuuB1fWySn0y6d7Alg_secret_ifL68RNgHXIPXNWBlHNuzixnA", + "client_secret": "pi_3OKmIRKuuB1fWySn2lCHwcUL_secret_UxoKiRX2gOkVBFZ0oeN73xgbT", "confirmation_method": "automatic", - "created": 1701789430, + "created": 1701973659, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0N0KuuB1fWySn0SMOKDN4", + "latest_charge": "ch_3OKmIRKuuB1fWySn2jy2mLYl", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0MzKuuB1fWySnA8bo8ueR", + "payment_method": "pm_1OKmIQKuuB1fWySnJfXdue8w", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -385,131 +385,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:11 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0N0KuuB1fWySn0y6d7Alg - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_z9trADZXt0Lqsv","request_duration_ms":1289}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 - (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) - #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Tue, 05 Dec 2023 15:17:13 GMT - Content-Type: - - application/json - Content-Length: - - '1365' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; - block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action - 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; - style-src 'self' - Request-Id: - - req_aiF3Gd8YvpypCq - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OK0N0KuuB1fWySn0y6d7Alg", - "object": "payment_intent", - "amount": 100, - "amount_capturable": 100, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OK0N0KuuB1fWySn0y6d7Alg_secret_ifL68RNgHXIPXNWBlHNuzixnA", - "confirmation_method": "automatic", - "created": 1701789430, - "currency": "eur", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OK0N0KuuB1fWySn0SMOKDN4", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OK0MzKuuB1fWySnA8bo8ueR", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_capture", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Tue, 05 Dec 2023 15:17:13 GMT + recorded_at: Thu, 07 Dec 2023 18:27:40 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/captures_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/captures_the_payment.yml index 4460c71aec..79263c8d91 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/captures_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/captures_the_payment.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_ZkA8ZCo5ERur3x","request_duration_ms":470}}' + - '{"last_request_metrics":{"request_id":"req_2rJ0zQi7xzSH0t","request_duration_ms":978}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:21 GMT + - Thu, 07 Dec 2023 18:27:48 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 53f0dbb7-cf2b-4632-b86d-e491577997be + - '028fcb41-35f9-4f4a-8e3e-9abec95814f4' Original-Request: - - req_qV9EPQMhcSmWxE + - req_8Dj0If0QPJnD9u Request-Id: - - req_qV9EPQMhcSmWxE + - req_8Dj0If0QPJnD9u Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0NBKuuB1fWySnBanhATQe", + "id": "pm_1OKmIZKuuB1fWySn2FkaKy2x", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789441, + "created": 1701973668, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:17:21 GMT + recorded_at: Thu, 07 Dec 2023 18:27:48 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0NBKuuB1fWySnBanhATQe&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmIZKuuB1fWySn2FkaKy2x&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_qV9EPQMhcSmWxE","request_duration_ms":447}}' + - '{"last_request_metrics":{"request_id":"req_8Dj0If0QPJnD9u","request_duration_ms":482}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:21 GMT + - Thu, 07 Dec 2023 18:27:48 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - d21aabbf-bf33-4ba3-abb4-fa143b176415 + - 23c3b381-74ee-4820-91d9-01fb26b6b350 Original-Request: - - req_jBZ6ydbq6wreHr + - req_vBxKa23Ed17aMa Request-Id: - - req_jBZ6ydbq6wreHr + - req_vBxKa23Ed17aMa Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NBKuuB1fWySn1zyIRfxn", + "id": "pi_3OKmIaKuuB1fWySn2OwGeqDU", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NBKuuB1fWySn1zyIRfxn_secret_hagOhIL5t6uTWbqTGDP54Re6y", + "client_secret": "pi_3OKmIaKuuB1fWySn2OwGeqDU_secret_1wqJ6qaf3PXPBvIr4sdOGK34r", "confirmation_method": "automatic", - "created": 1701789441, + "created": 1701973668, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NBKuuB1fWySnBanhATQe", + "payment_method": "pm_1OKmIZKuuB1fWySn2FkaKy2x", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:21 GMT + recorded_at: Thu, 07 Dec 2023 18:27:48 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NBKuuB1fWySn1zyIRfxn/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIaKuuB1fWySn2OwGeqDU/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_jBZ6ydbq6wreHr","request_duration_ms":437}}' + - '{"last_request_metrics":{"request_id":"req_vBxKa23Ed17aMa","request_duration_ms":413}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:22 GMT + - Thu, 07 Dec 2023 18:27:49 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - ad3af5ac-ed74-4499-a6db-bf1f8d1d239a + - ff20f124-9b74-4032-9a4e-4002883b4fea Original-Request: - - req_b94QpThTVNsaDV + - req_8HBeT5VXCwPUbL Request-Id: - - req_b94QpThTVNsaDV + - req_8HBeT5VXCwPUbL Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NBKuuB1fWySn1zyIRfxn", + "id": "pi_3OKmIaKuuB1fWySn2OwGeqDU", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NBKuuB1fWySn1zyIRfxn_secret_hagOhIL5t6uTWbqTGDP54Re6y", + "client_secret": "pi_3OKmIaKuuB1fWySn2OwGeqDU_secret_1wqJ6qaf3PXPBvIr4sdOGK34r", "confirmation_method": "automatic", - "created": 1701789441, + "created": 1701973668, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NBKuuB1fWySn10gtgFyF", + "latest_charge": "ch_3OKmIaKuuB1fWySn2uvs73RK", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NBKuuB1fWySnBanhATQe", + "payment_method": "pm_1OKmIZKuuB1fWySn2FkaKy2x", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,10 +387,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:22 GMT + recorded_at: Thu, 07 Dec 2023 18:27:49 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NBKuuB1fWySn1zyIRfxn + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIaKuuB1fWySn2OwGeqDU body: encoding: US-ASCII string: '' @@ -402,7 +402,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_b94QpThTVNsaDV","request_duration_ms":1264}}' + - '{"last_request_metrics":{"request_id":"req_8HBeT5VXCwPUbL","request_duration_ms":1043}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -422,7 +422,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:23 GMT + - Thu, 07 Dec 2023 18:27:50 GMT Content-Type: - application/json Content-Length: @@ -448,7 +448,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_zeHjSf80djIfrj + - req_dDQwl4mTBvuQOj Stripe-Version: - '2023-10-16' Vary: @@ -461,7 +461,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NBKuuB1fWySn1zyIRfxn", + "id": "pi_3OKmIaKuuB1fWySn2OwGeqDU", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -475,20 +475,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NBKuuB1fWySn1zyIRfxn_secret_hagOhIL5t6uTWbqTGDP54Re6y", + "client_secret": "pi_3OKmIaKuuB1fWySn2OwGeqDU_secret_1wqJ6qaf3PXPBvIr4sdOGK34r", "confirmation_method": "automatic", - "created": 1701789441, + "created": 1701973668, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NBKuuB1fWySn10gtgFyF", + "latest_charge": "ch_3OKmIaKuuB1fWySn2uvs73RK", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NBKuuB1fWySnBanhATQe", + "payment_method": "pm_1OKmIZKuuB1fWySn2FkaKy2x", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -513,10 +513,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:23 GMT + recorded_at: Thu, 07 Dec 2023 18:27:50 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NBKuuB1fWySn1zyIRfxn/capture + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIaKuuB1fWySn2OwGeqDU/capture body: encoding: US-ASCII string: '' @@ -528,7 +528,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_zeHjSf80djIfrj","request_duration_ms":414}}' + - '{"last_request_metrics":{"request_id":"req_dDQwl4mTBvuQOj","request_duration_ms":309}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -548,7 +548,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:24 GMT + - Thu, 07 Dec 2023 18:27:51 GMT Content-Type: - application/json Content-Length: @@ -574,11 +574,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 620f16e3-ed28-4cbf-bef5-c5667c033b57 + - ef059d26-6988-4e51-ae33-3d6df6a632e3 Original-Request: - - req_iX8wsFJSraVlJj + - req_Q917n8EnKb3inl Request-Id: - - req_iX8wsFJSraVlJj + - req_Q917n8EnKb3inl Stripe-Should-Retry: - 'false' Stripe-Version: @@ -593,7 +593,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NBKuuB1fWySn1zyIRfxn", + "id": "pi_3OKmIaKuuB1fWySn2OwGeqDU", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -607,20 +607,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NBKuuB1fWySn1zyIRfxn_secret_hagOhIL5t6uTWbqTGDP54Re6y", + "client_secret": "pi_3OKmIaKuuB1fWySn2OwGeqDU_secret_1wqJ6qaf3PXPBvIr4sdOGK34r", "confirmation_method": "automatic", - "created": 1701789441, + "created": 1701973668, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NBKuuB1fWySn10gtgFyF", + "latest_charge": "ch_3OKmIaKuuB1fWySn2uvs73RK", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NBKuuB1fWySnBanhATQe", + "payment_method": "pm_1OKmIZKuuB1fWySn2FkaKy2x", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -645,10 +645,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:24 GMT + recorded_at: Thu, 07 Dec 2023 18:27:51 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0NBKuuB1fWySn1zyIRfxn + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIaKuuB1fWySn2OwGeqDU body: encoding: US-ASCII string: '' @@ -660,7 +660,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_iX8wsFJSraVlJj","request_duration_ms":1356}}' + - '{"last_request_metrics":{"request_id":"req_Q917n8EnKb3inl","request_duration_ms":1042}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -680,7 +680,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:25 GMT + - Thu, 07 Dec 2023 18:27:51 GMT Content-Type: - application/json Content-Length: @@ -706,7 +706,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_O23HuS6lzDg04Z + - req_FXU6PzCIqo9KuH Stripe-Version: - '2023-10-16' Vary: @@ -719,7 +719,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0NBKuuB1fWySn1zyIRfxn", + "id": "pi_3OKmIaKuuB1fWySn2OwGeqDU", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -733,20 +733,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0NBKuuB1fWySn1zyIRfxn_secret_hagOhIL5t6uTWbqTGDP54Re6y", + "client_secret": "pi_3OKmIaKuuB1fWySn2OwGeqDU_secret_1wqJ6qaf3PXPBvIr4sdOGK34r", "confirmation_method": "automatic", - "created": 1701789441, + "created": 1701973668, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0NBKuuB1fWySn10gtgFyF", + "latest_charge": "ch_3OKmIaKuuB1fWySn2uvs73RK", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0NBKuuB1fWySnBanhATQe", + "payment_method": "pm_1OKmIZKuuB1fWySn2FkaKy2x", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -771,5 +771,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:24 GMT + recorded_at: Thu, 07 Dec 2023 18:27:51 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml index c01cf49f63..5c1d0215cc 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Stripe_PaymentIntentValidator/_call/when_payment_intent_is_valid/valid_non-3D_credit_cards_are_correctly_handled/behaves_like_payments_intents/from_Visa_debit_/returns_payment_intent_id_and_does_not_raise.yml @@ -14,7 +14,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_vO8qrn7fP8cCF0","request_duration_ms":623}}' + - '{"last_request_metrics":{"request_id":"req_w7b6fE6CLKLyH9","request_duration_ms":308}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -34,7 +34,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:18 GMT + - Thu, 07 Dec 2023 18:27:45 GMT Content-Type: - application/json Content-Length: @@ -59,11 +59,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - b729b00d-3874-4a9a-a167-ad80c62bdd3d + - '08b17a38-58a0-4c8c-8d27-6673c985eae7' Original-Request: - - req_e0u7KZqngYBuvc + - req_P7VKooRBDzx7gb Request-Id: - - req_e0u7KZqngYBuvc + - req_P7VKooRBDzx7gb Stripe-Should-Retry: - 'false' Stripe-Version: @@ -78,7 +78,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1OK0N8KuuB1fWySnwRv0nkLw", + "id": "pm_1OKmIXKuuB1fWySnRID1abtb", "object": "payment_method", "billing_details": { "address": { @@ -118,19 +118,19 @@ http_interactions: }, "wallet": null }, - "created": 1701789438, + "created": 1701973665, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Tue, 05 Dec 2023 15:17:18 GMT + recorded_at: Thu, 07 Dec 2023 18:27:46 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents body: encoding: UTF-8 - string: amount=100¤cy=eur&payment_method=pm_1OK0N8KuuB1fWySnwRv0nkLw&payment_method_types[0]=card&capture_method=manual + string: amount=100¤cy=eur&payment_method=pm_1OKmIXKuuB1fWySnRID1abtb&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - Stripe/v1 RubyBindings/10.2.0 @@ -139,7 +139,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_e0u7KZqngYBuvc","request_duration_ms":523}}' + - '{"last_request_metrics":{"request_id":"req_P7VKooRBDzx7gb","request_duration_ms":457}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -159,7 +159,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:19 GMT + - Thu, 07 Dec 2023 18:27:46 GMT Content-Type: - application/json Content-Length: @@ -184,11 +184,11 @@ http_interactions: default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 616d6aaf-0b18-4229-b7f0-e88e71c1f3e6 + - cf6adf2c-ebcf-4e50-8e8a-688e7b70b248 Original-Request: - - req_g7ga8UxzPmDZTK + - req_dbwuxob9vy2arJ Request-Id: - - req_g7ga8UxzPmDZTK + - req_dbwuxob9vy2arJ Stripe-Should-Retry: - 'false' Stripe-Version: @@ -203,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0N8KuuB1fWySn237dksa3", + "id": "pi_3OKmIYKuuB1fWySn2npQ8Z6G", "object": "payment_intent", "amount": 100, "amount_capturable": 0, @@ -217,9 +217,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0N8KuuB1fWySn237dksa3_secret_0hY6fVElhza0Ii17uz9M4BkVH", + "client_secret": "pi_3OKmIYKuuB1fWySn2npQ8Z6G_secret_4XLGnnKQz3ybCyip7ZOts38zM", "confirmation_method": "automatic", - "created": 1701789438, + "created": 1701973666, "currency": "eur", "customer": null, "description": null, @@ -230,7 +230,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0N8KuuB1fWySnwRv0nkLw", + "payment_method": "pm_1OKmIXKuuB1fWySnRID1abtb", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -255,10 +255,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:18 GMT + recorded_at: Thu, 07 Dec 2023 18:27:46 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0N8KuuB1fWySn237dksa3/confirm + uri: https://api.stripe.com/v1/payment_intents/pi_3OKmIYKuuB1fWySn2npQ8Z6G/confirm body: encoding: US-ASCII string: '' @@ -270,7 +270,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_g7ga8UxzPmDZTK","request_duration_ms":570}}' + - '{"last_request_metrics":{"request_id":"req_dbwuxob9vy2arJ","request_duration_ms":381}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -290,7 +290,7 @@ http_interactions: Server: - nginx Date: - - Tue, 05 Dec 2023 15:17:20 GMT + - Thu, 07 Dec 2023 18:27:47 GMT Content-Type: - application/json Content-Length: @@ -316,11 +316,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 4e1c8b16-a750-40b8-b661-6f25e66819b1 + - 055ca44f-80a5-41b8-ad3a-97ae87e0c8e9 Original-Request: - - req_P0I7UxOILotUnA + - req_2rJ0zQi7xzSH0t Request-Id: - - req_P0I7UxOILotUnA + - req_2rJ0zQi7xzSH0t Stripe-Should-Retry: - 'false' Stripe-Version: @@ -335,7 +335,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3OK0N8KuuB1fWySn237dksa3", + "id": "pi_3OKmIYKuuB1fWySn2npQ8Z6G", "object": "payment_intent", "amount": 100, "amount_capturable": 100, @@ -349,20 +349,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3OK0N8KuuB1fWySn237dksa3_secret_0hY6fVElhza0Ii17uz9M4BkVH", + "client_secret": "pi_3OKmIYKuuB1fWySn2npQ8Z6G_secret_4XLGnnKQz3ybCyip7ZOts38zM", "confirmation_method": "automatic", - "created": 1701789438, + "created": 1701973666, "currency": "eur", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3OK0N8KuuB1fWySn250dE2fd", + "latest_charge": "ch_3OKmIYKuuB1fWySn2qAakUqm", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1OK0N8KuuB1fWySnwRv0nkLw", + "payment_method": "pm_1OKmIXKuuB1fWySnRID1abtb", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -387,131 +387,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Tue, 05 Dec 2023 15:17:19 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OK0N8KuuB1fWySn237dksa3 - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_P0I7UxOILotUnA","request_duration_ms":1055}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 6.2.0-37-generic (buildd@bos03-amd64-055) (x86_64-linux-gnu-gcc-11 - (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) - #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2","hostname":"ff-LAT"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Tue, 05 Dec 2023 15:17:20 GMT - Content-Type: - - application/json - Content-Length: - - '1365' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fpayment_intents%2F%3Aintent; - block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action - 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; - style-src 'self' - Request-Id: - - req_ZkA8ZCo5ERur3x - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OK0N8KuuB1fWySn237dksa3", - "object": "payment_intent", - "amount": 100, - "amount_capturable": 100, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OK0N8KuuB1fWySn237dksa3_secret_0hY6fVElhza0Ii17uz9M4BkVH", - "confirmation_method": "automatic", - "created": 1701789438, - "currency": "eur", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OK0N8KuuB1fWySn250dE2fd", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OK0N8KuuB1fWySnwRv0nkLw", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_capture", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Tue, 05 Dec 2023 15:17:20 GMT + recorded_at: Thu, 07 Dec 2023 18:27:47 GMT recorded_with: VCR 6.2.0 diff --git a/spec/lib/stripe/payment_intent_validator_spec.rb b/spec/lib/stripe/payment_intent_validator_spec.rb index b37a5527f7..5cadc7a8e9 100644 --- a/spec/lib/stripe/payment_intent_validator_spec.rb +++ b/spec/lib/stripe/payment_intent_validator_spec.rb @@ -10,7 +10,7 @@ describe Stripe::PaymentIntentValidator do create(:stripe_sca_payment_method, distributor_ids: [create(:distributor_enterprise).id], preferred_enterprise_id: create(:enterprise).id) } - let(:source) { create(:credit_card) } + let(:year_valid) { Time.zone.now.year.next } before { @@ -20,7 +20,7 @@ describe Stripe::PaymentIntentValidator do describe "#call", :vcr, :stripe_version do let(:payment) { create(:payment, amount: payment_intent.amount, payment_method:, - response_code: payment_intent.id, source:) + response_code: payment_intent.id, source: pm_card) } let(:validator) { Stripe::PaymentIntentValidator.new(payment) }