1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00

Merge branch 'dev' for release 5.1.8

This commit is contained in:
Du Peng 2021-09-13 16:33:32 +02:00
commit a159abe04e
50 changed files with 11656 additions and 2493 deletions

View File

@ -1,5 +1,12 @@
# Changelog Fab-manager
## v5.1.8 2021 September 13
- Improved stripe 3D secure payment on payment schedules
- Disable monthly payment for the subscription with interval 1 month
- Fix a bug: unable to show statistics module in nav menu after login
- Fix a bug: plans page show an error if admin dont create any plans
## v5.1.7 2021 August 24
- Updated Norwegian language

View File

@ -69,14 +69,30 @@ class API::StripeController < API::PaymentsController
render json: { id: @intent.id, client_secret: @intent.client_secret }
end
def payment_schedule
cart = shopping_cart
Stripe.api_key = Setting.get('stripe_secret_key')
@intent = Stripe::PaymentMethod.attach(
params[:payment_method_id],
customer: cart.customer.payment_gateway_object.gateway_object_id
)
# Set the default payment method on the customer
Stripe::Customer.update(
cart.customer.payment_gateway_object.gateway_object_id,
invoice_settings: { default_payment_method: params[:payment_method_id] }
)
@res = cart.pay_schedule(@intent.id, @intent.class.name)
render json: @res.to_json
end
def confirm_payment_schedule
key = Setting.get('stripe_secret_key')
intent = Stripe::SetupIntent.retrieve(params[:setup_intent_id], api_key: key)
subscription = Stripe::Subscription.retrieve(params[:subscription_id], api_key: key)
cart = shopping_cart
if intent&.status == 'succeeded'
res = on_payment_success(intent, cart)
render generate_payment_response(intent, res)
if subscription&.status == 'active'
res = on_payment_success(subscription, cart)
render generate_payment_response(subscription, res)
end
rescue Stripe::InvalidRequestError => e
render json: e, status: :unprocessable_entity

View File

@ -1,6 +1,6 @@
import apiClient from './clients/api-client';
import { AxiosResponse } from 'axios';
import { ShoppingCart, IntentConfirmation, PaymentConfirmation, UpdateCardResponse } from '../models/payment';
import { ShoppingCart, IntentConfirmation, PaymentConfirmation, UpdateCardResponse, StripeSubscription } from '../models/payment';
import { PaymentSchedule } from '../models/payment-schedule';
import { Invoice } from '../models/invoice';
@ -14,21 +14,29 @@ export default class StripeAPI {
}
static async confirmIntent (paymentMethodId: string, cartItems: ShoppingCart): Promise<PaymentConfirmation|Invoice> {
const res: AxiosResponse = await apiClient.post(`/api/stripe/confirm_payment`, {
const res: AxiosResponse = await apiClient.post('/api/stripe/confirm_payment', {
payment_intent_id: paymentMethodId,
cart_items: cartItems
});
return res?.data;
}
static async paymentSchedule (paymentMethodId: string, cartItems: ShoppingCart): Promise<StripeSubscription> {
const res: AxiosResponse = await apiClient.post('/api/stripe/payment_schedule', {
payment_method_id: paymentMethodId,
cart_items: cartItems
});
return res?.data;
}
static async setupIntent (userId: number): Promise<IntentConfirmation> {
const res: AxiosResponse<IntentConfirmation> = await apiClient.get(`/api/stripe/setup_intent/${userId}`);
return res?.data;
}
static async confirmPaymentSchedule (setupIntentId: string, cartItems: ShoppingCart): Promise<PaymentSchedule> {
static async confirmPaymentSchedule (subscriptionId: string, cartItems: ShoppingCart): Promise<PaymentSchedule> {
const res: AxiosResponse<PaymentSchedule> = await apiClient.post('/api/stripe/confirm_payment_schedule', {
setup_intent_id: setupIntentId,
subscription_id: subscriptionId,
cart_items: cartItems
});
return res?.data;

View File

@ -46,7 +46,7 @@ const EventThemes: React.FC<EventThemesProps> = ({ event, onChange }) => {
const defaultValues = (): Array<selectOption> => {
const res = [];
themes.forEach(t => {
if (event.event_theme_ids.indexOf(t.id) > -1) {
if (event.event_theme_ids && event.event_theme_ids.indexOf(t.id) > -1) {
res.push({ value: t.id, label: t.name });
}
});

View File

@ -8,6 +8,7 @@ import SettingAPI from '../../../api/setting';
import { SettingName } from '../../../models/setting';
import { PaymentModal } from '../payment-modal';
import { PaymentSchedule } from '../../../models/payment-schedule';
import { PaymentMethod } from '../../../models/payment';
const ALL_SCHEDULE_METHODS = ['card', 'check'] as const;
type scheduleMethod = typeof ALL_SCHEDULE_METHODS[number];
@ -56,6 +57,11 @@ export const LocalPaymentForm: React.FC<GatewayFormProps> = ({ onSubmit, onSucce
* Callback triggered when the user selects a payment method for the current payment schedule.
*/
const handleUpdateMethod = (option: selectOption) => {
if (option.value === 'card') {
cart.payment_method = PaymentMethod.Card;
} else {
cart.payment_method = PaymentMethod.Other;
}
setMethod(option.value);
};
@ -129,7 +135,8 @@ export const LocalPaymentForm: React.FC<GatewayFormProps> = ({ onSubmit, onSucce
onError={onError}
cart={cart}
currentUser={operator}
customer={customer} />
customer={customer}
schedule={paymentSchedule} />
</div>}
{children}
</form>

View File

@ -2,7 +2,7 @@ import React, { FormEvent } from 'react';
import { CardElement, useElements, useStripe } from '@stripe/react-stripe-js';
import { useTranslation } from 'react-i18next';
import { GatewayFormProps } from '../abstract-payment-modal';
import { PaymentConfirmation } from '../../../models/payment';
import { PaymentConfirmation, StripeSubscription } from '../../../models/payment';
import StripeAPI from '../../../api/stripe';
import { Invoice } from '../../../models/invoice';
@ -43,27 +43,36 @@ export const StripeForm: React.FC<GatewayFormProps> = ({ onSubmit, onSuccess, on
const res = await StripeAPI.confirmMethod(paymentMethod.id, cart);
await handleServerConfirmation(res);
} else {
// we start by associating the payment method with the user
const intent = await StripeAPI.setupIntent(customer.id);
const { setupIntent, error } = await stripe.confirmCardSetup(intent.client_secret, {
payment_method: paymentMethod.id,
mandate_data: {
customer_acceptance: {
type: 'online',
online: {
ip_address: operator.ip_address,
user_agent: navigator.userAgent
}
}
}
});
if (error) {
onError(error.message);
} else {
// then we confirm the payment schedule
const res = await StripeAPI.confirmPaymentSchedule(setupIntent.id, cart);
const paymentMethodId = paymentMethod.id;
const subscription: StripeSubscription = await StripeAPI.paymentSchedule(paymentMethod.id, cart);
if (subscription && subscription.status === 'active') {
// Subscription is active, no customer actions required.
const res = await StripeAPI.confirmPaymentSchedule(subscription.id, cart);
onSuccess(res);
}
const paymentIntent = subscription.latest_invoice.payment_intent;
if (paymentIntent.status === 'requires_action') {
return stripe
.confirmCardPayment(paymentIntent.client_secret, {
payment_method: paymentMethodId
})
.then(async (result) => {
if (result.error) {
throw result.error;
} else {
if (result.paymentIntent.status === 'succeeded') {
const res = await StripeAPI.confirmPaymentSchedule(subscription.id, cart);
onSuccess(res);
}
}
})
.catch((error) => {
onError(error.message);
});
} else if (paymentIntent.status === 'requires_payment_method') {
onError(t('app.shared.messages.payment_card_declined'));
}
}
} catch (err) {
// catch api errors

View File

@ -186,6 +186,9 @@ const PlansList: React.FC<PlansListProps> = ({ onError, onPlanSelection, onLogin
* Render the provided list of categories, with each associated plans
*/
const renderPlansByCategory = (plans: Map<number, Array<Plan>>): ReactNode => {
if (!plans) {
return null;
}
return (
<div className="list-of-categories">
{Array.from(plans).sort(compareCategories).map(([categoryId, plansByCategory]) => {

View File

@ -34,3 +34,14 @@ export interface UpdateCardResponse {
updated: boolean,
error?: string
}
export interface StripeSubscription {
id: string,
status: string,
latest_invoice: {
payment_intent: {
status: string,
client_secret: string
}
}
}

View File

@ -132,7 +132,7 @@
<div class="input-group m-t-md">
<label for="plan[monthly_payment]" class="control-label m-r-md">{{ 'app.shared.plan.monthly_payment' | translate }} *</label>
<switch id="plan[monthly_payment]" disabled="plan.interval === 'week'" checked="plan.monthly_payment" on-change="toggleMonthlyPayment" class-name="'v-middle'" ng-if="plan && method != 'PATCH'"></switch>
<switch id="plan[monthly_payment]" disabled="plan.interval === 'week' || (plan.interval === 'month' && plan.interval_count === 1)" checked="plan.monthly_payment" on-change="toggleMonthlyPayment" class-name="'v-middle'" ng-if="plan && method != 'PATCH'"></switch>
<span ng-if="method == 'PATCH'">{{ (plan.monthly_payment ? 'app.shared.buttons.yes' : 'app.shared.buttons.no') | translate }}</span>
<input type="hidden" id="plan_monthly_input" name="plan[monthly_payment]" value="{{plan.monthly_payment}}" />
<span class="help-block" translate>{{ 'app.shared.plan.monthly_payment_info' }}</span>

View File

@ -81,6 +81,10 @@ class PaymentSchedule < PaymentDocument
PaymentGatewayService.new.create_subscription(self, gateway_method_id)
end
def pay(gateway_method_id)
PaymentGatewayService.new.pay_subscription(self, gateway_method_id)
end
def render_resource
{ partial: 'api/payment_schedules/payment_schedule', locals: { payment_schedule: self } }
end

View File

@ -69,6 +69,21 @@ class ShoppingCart
{ success: success, payment: payment, errors: errors }
end
def pay_schedule(payment_id, payment_type)
price = total
objects = []
items.each do |item|
raise InvalidSubscriptionError unless item.valid?(@items)
object = item.to_object
objects.push(object)
raise InvalidSubscriptionError unless object.errors.empty?
end
payment = create_payment_document(price, objects, payment_id, payment_type)
WalletService.debit_user_wallet(payment, @customer, transaction: false)
payment.pay(payment_id)
end
private
# Save the object associated with the provided item or raise and Rollback if something wrong append.

View File

@ -39,7 +39,7 @@ class SettingPolicy < ApplicationPolicy
tracking_id book_overlapping_slots slot_duration events_in_calendar spaces_module plans_module invoicing_module
recaptcha_site_key feature_tour_display disqus_shortname allowed_cad_extensions openlab_app_id openlab_default
online_payment_module stripe_public_key confirmation_required wallet_module trainings_module address_required
payment_gateway payzen_endpoint payzen_public_key public_agenda_module renew_pack_threshold]
payment_gateway payzen_endpoint payzen_public_key public_agenda_module renew_pack_threshold statistics_module]
end
##

View File

@ -23,6 +23,10 @@ class PaymentGatewayService
@gateway.create_subscription(payment_schedule, gateway_object_id)
end
def pay_subscription(payment_schedule, gateway_object_id)
@gateway.pay_subscription(payment_schedule, gateway_object_id)
end
def create_user(user_id)
@gateway.create_user(user_id)
end

View File

@ -95,16 +95,20 @@ class WalletService
##
# Subtract the amount of the payment document (Invoice|PaymentSchedule) from the customer's wallet
##
def self.debit_user_wallet(payment, user)
def self.debit_user_wallet(payment, user, transaction: true)
wallet_amount = WalletService.wallet_amount_debit(payment, user)
return unless wallet_amount.present? && wallet_amount != 0
amount = wallet_amount / 100.0
wallet_transaction = WalletService.new(user: user, wallet: user.wallet).debit(amount)
# wallet debit success
raise DebitWalletError unless wallet_transaction
if transaction
wallet_transaction = WalletService.new(user: user, wallet: user.wallet).debit(amount)
# wallet debit success
raise DebitWalletError unless wallet_transaction
payment.set_wallet_transaction(wallet_amount, wallet_transaction.id)
payment.set_wallet_transaction(wallet_amount, wallet_transaction.id)
else
payment.set_wallet_transaction(wallet_amount, nil)
end
end
end

View File

@ -22,6 +22,7 @@ de:
you_will_lose_any_unsaved_modification_if_you_quit_this_page: "Sie verlieren jede ungespeicherte Änderung, wenn Sie diese Seite verlassen"
you_will_lose_any_unsaved_modification_if_you_reload_this_page: "Ungespeicherte Änderungen gehen verloren, wenn Sie die Seite neu laden"
payment_card_error: "Mit Ihrer Kreditkarte ist ein Problem aufgetreten:"
payment_card_declined: "Your card was declined."
#user edition form
user:
man: "Männlich"

View File

@ -22,6 +22,7 @@ en:
you_will_lose_any_unsaved_modification_if_you_quit_this_page: "You will lose any unsaved modification if you quit this page"
you_will_lose_any_unsaved_modification_if_you_reload_this_page: "You will lose any unsaved modification if you reload this page"
payment_card_error: "A problem has occurred with your credit card:"
payment_card_declined: "Your card was declined."
#user edition form
user:
man: "Man"

View File

@ -22,6 +22,7 @@ es:
you_will_lose_any_unsaved_modification_if_you_quit_this_page: "Si cierra la página se perderán todas las modificaciones que no se hayan guardado"
you_will_lose_any_unsaved_modification_if_you_reload_this_page: "Si recarga la página se perderán todas las modificaciones que no se hayan guardado"
payment_card_error: "A problem has occurred with your credit card:"
payment_card_declined: "Your card was declined."
#user edition form
user:
man: "Man"

View File

@ -22,6 +22,7 @@ fr:
you_will_lose_any_unsaved_modification_if_you_quit_this_page: "Vous perdrez les modifications non enregistrées si vous quittez cette page"
you_will_lose_any_unsaved_modification_if_you_reload_this_page: "Vous perdrez les modifications non enregistrées si vous rechargez cette page"
payment_card_error: "Un problème est survenu avec votre carte bancaire :"
payment_card_declined: "Votre carte a été refusée."
#user edition form
user:
man: "Homme"

View File

@ -22,6 +22,7 @@
you_will_lose_any_unsaved_modification_if_you_quit_this_page: "Du vil miste noen ulagrede endringer hvis du avslutter denne siden"
you_will_lose_any_unsaved_modification_if_you_reload_this_page: "Du vil miste ulagrede endringer hvis du gjeninnlaster denne siden"
payment_card_error: "Et problem har oppstått med ditt kredittkort:"
payment_card_declined: "Your card was declined."
#user edition form
user:
man: "Mann"

View File

@ -22,6 +22,7 @@ pt:
you_will_lose_any_unsaved_modification_if_you_quit_this_page: "Você irá perder todas as modificações não salvas se sair desta página"
you_will_lose_any_unsaved_modification_if_you_reload_this_page: "Você irá perder todas as modificações não salvas se recarregar desta página"
payment_card_error: "Ocorreu um problema com o seu cartão de crédito:"
payment_card_declined: "Your card was declined."
#user edition form
user:
man: "Homem"

View File

@ -22,6 +22,7 @@ zu:
you_will_lose_any_unsaved_modification_if_you_quit_this_page: "crwdns9405:0crwdne9405:0"
you_will_lose_any_unsaved_modification_if_you_reload_this_page: "crwdns9407:0crwdne9407:0"
payment_card_error: "crwdns9409:0crwdne9409:0"
payment_card_declined: "Your card was declined."
#user edition form
user:
man: "crwdns9411:0crwdne9411:0"

View File

@ -180,6 +180,7 @@ Rails.application.routes.draw do
# card payments handling
## Stripe gateway
post 'stripe/confirm_payment' => 'stripe/confirm_payment'
post 'stripe/payment_schedule' => 'stripe/payment_schedule'
get 'stripe/online_payment_status' => 'stripe/online_payment_status'
get 'stripe/setup_intent/:user_id' => 'stripe#setup_intent'
post 'stripe/confirm_payment_schedule' => 'stripe#confirm_payment_schedule'

View File

@ -8,16 +8,28 @@ module Stripe; end
## create remote objects on stripe
class Stripe::Service < Payment::Service
# Create the provided PaymentSchedule on Stripe, using the Subscription API
def create_subscription(payment_schedule, setup_intent_id)
def create_subscription(payment_schedule, subscription_id)
stripe_key = Setting.get('stripe_secret_key')
first_item = payment_schedule.ordered_items.first
case payment_schedule.main_object.object_type
handle_wallet_transaction(payment_schedule)
stp_subscription = Stripe::Subscription.retrieve(subscription_id, api_key: stripe_key)
pgo = PaymentGatewayObject.new(item: payment_schedule)
pgo.gateway_object = stp_subscription
pgo.save!
end
def pay_subscription(payment_schedule, payment_method_id)
stripe_key = Setting.get('stripe_secret_key')
first_item = payment_schedule.payment_schedule_items.min_by(&:due_date)
main_object = payment_schedule.payment_schedule_objects.find(&:main)
case main_object.object_type
when Reservation.name
subscription = payment_schedule.payment_schedule_objects.find { |pso| pso.object_type == Subscription.name }.object
reservable_stp_id = payment_schedule.main_object.object.reservable&.payment_gateway_object&.gateway_object_id
reservable_stp_id = main_object.object.reservable&.payment_gateway_object&.gateway_object_id
when Subscription.name
subscription = payment_schedule.main_object.object
subscription = main_object.object
reservable_stp_id = nil
else
raise InvalidSubscriptionError
@ -25,28 +37,23 @@ class Stripe::Service < Payment::Service
handle_wallet_transaction(payment_schedule)
# setup intent (associates the customer and the payment method)
intent = Stripe::SetupIntent.retrieve(setup_intent_id, api_key: stripe_key)
# subscription (recurring price)
price = create_price(first_item.details['recurring'],
subscription.plan.payment_gateway_object.gateway_object_id,
nil, monthly: true)
# other items (not recurring)
items = subscription_invoice_items(payment_schedule, subscription, first_item, reservable_stp_id)
stp_subscription = Stripe::Subscription.create({
customer: payment_schedule.invoicing_profile.user.payment_gateway_object.gateway_object_id,
cancel_at: (payment_schedule.ordered_items.last.due_date + 3.day).to_i,
add_invoice_items: items,
coupon: payment_schedule.coupon&.code,
items: [
{ price: price[:id] }
],
default_payment_method: intent[:payment_method]
}, { api_key: stripe_key })
pgo = PaymentGatewayObject.new(item: payment_schedule)
pgo.gateway_object = stp_subscription
pgo.save!
Stripe::Subscription.create({
customer: payment_schedule.invoicing_profile.user.payment_gateway_object.gateway_object_id,
cancel_at: (payment_schedule.payment_schedule_items.max_by(&:due_date).due_date + 1.month).to_i,
add_invoice_items: items,
coupon: payment_schedule.coupon&.code,
items: [
{ price: price[:id] }
],
default_payment_method: payment_method_id,
expand: %w[latest_invoice.payment_intent]
}, { api_key: stripe_key })
end
def create_user(user_id)
@ -141,10 +148,10 @@ class Stripe::Service < Payment::Service
private
def subscription_invoice_items(payment_schedule, subscription, first_item, reservable_stp_id)
second_item = payment_schedule.ordered_items[1]
second_item = payment_schedule.payment_schedule_items.sort_by(&:due_date)[1]
items = []
if first_item.amount != second_item.amount
if second_item && first_item.amount != second_item.amount
unless first_item.details['adjustment']&.zero?
# adjustment: when dividing the price of the plan / months, sometimes it forces us to round the amount per month.
# The difference is invoiced here

View File

@ -1,6 +1,6 @@
{
"name": "fab-manager",
"version": "5.1.6",
"version": "5.1.8",
"description": "Fab-manager is the FabLab management solution. It provides a comprehensive, web-based, open-source tool to simplify your administrative tasks and your marker's projects.",
"keywords": [
"fablab",

View File

@ -705,36 +705,36 @@ class Reservations::CreateTest < ActionDispatch::IntegrationTest
plan = Plan.find_by(group_id: @user_without_subscription.group.id, type: 'Plan', base_name: 'Abonnement mensualisable')
VCR.use_cassette('reservations_training_subscription_with_payment_schedule') do
get "/api/stripe/setup_intent/#{@user_without_subscription.id}"
post '/api/stripe/payment_schedule',
params: {
payment_method_id: stripe_payment_method,
cart_items: {
items: [
{
subscription: {
plan_id: plan.id
}
}
],
payment_schedule: true,
payment_method: 'cart'
}
}.to_json, headers: default_headers
# Check response format & status
assert_equal 200, response.status, response.body
assert_equal Mime[:json], response.content_type
# Check the response
setup_intent = json_response(response.body)
assert_not_nil setup_intent[:client_secret]
assert_not_nil setup_intent[:id]
assert_match /^#{setup_intent[:id]}_secret_/, setup_intent[:client_secret]
# Confirm the intent
stripe_res = Stripe::SetupIntent.confirm(
setup_intent[:id],
{ payment_method: stripe_payment_method },
{ api_key: Setting.get('stripe_secret_key') }
)
# check the confirmation
assert_equal setup_intent[:id], stripe_res.id
assert_equal 'succeeded', stripe_res.status
assert_equal 'off_session', stripe_res.usage
sub = json_response(response.body)
assert_not_nil sub[:id]
post '/api/stripe/confirm_payment_schedule',
params: {
setup_intent_id: setup_intent[:id],
subscription_id: sub[:id],
cart_items: {
payment_schedule: true,
payment_method: 'card',
items: [
{
reservation: {
@ -809,34 +809,33 @@ class Reservations::CreateTest < ActionDispatch::IntegrationTest
plan = Plan.find_by(group_id: user.group.id, type: 'Plan', base_name: 'Abonnement mensualisable')
VCR.use_cassette('reservations_machine_subscription_with_payment_schedule_coupon_wallet') do
get "/api/stripe/setup_intent/#{user.id}"
post '/api/stripe/payment_schedule',
params: {
payment_method_id: stripe_payment_method,
cart_items: {
items: [
{
subscription: {
plan_id: plan.id
}
}
],
payment_schedule: true,
payment_method: 'cart'
}
}.to_json, headers: default_headers
# Check response format & status
assert_equal 200, response.status, response.body
assert_equal Mime[:json], response.content_type
# Check the response
setup_intent = json_response(response.body)
assert_not_nil setup_intent[:client_secret]
assert_not_nil setup_intent[:id]
assert_match /^#{setup_intent[:id]}_secret_/, setup_intent[:client_secret]
# Confirm the intent (normally, this is done on browser-side)
stripe_res = Stripe::SetupIntent.confirm(
setup_intent[:id],
{ payment_method: stripe_payment_method },
{ api_key: Setting.get('stripe_secret_key') }
)
# check the confirmation
assert_equal setup_intent[:id], stripe_res.id
assert_equal 'succeeded', stripe_res.status
assert_equal 'off_session', stripe_res.usage
res = json_response(response.body)
assert_not_nil res[:id]
post '/api/stripe/confirm_payment_schedule',
params: {
setup_intent_id: setup_intent[:id],
subscription_id: res[:id],
cart_items: {
coupon_code: 'GIME3EUR',
payment_schedule: true,
@ -897,7 +896,7 @@ class Reservations::CreateTest < ActionDispatch::IntegrationTest
assert_not_nil payment_schedule.reference
assert_equal 'card', payment_schedule.payment_method
assert_equal 2, payment_schedule.payment_gateway_objects.count
assert_not_nil payment_schedule.gateway_payment_mean
#assert_not_nil payment_schedule.gateway_payment_mean
assert_not_nil payment_schedule.wallet_transaction
assert_equal payment_schedule.ordered_items.first.amount, payment_schedule.wallet_amount
assert_equal Coupon.find_by(code: 'GIME3EUR').id, payment_schedule.coupon_id

View File

@ -77,34 +77,34 @@ class Subscriptions::CreateAsAdminTest < ActionDispatch::IntegrationTest
payment_schedule_items_count = PaymentScheduleItem.count
VCR.use_cassette('subscriptions_admin_create_with_payment_schedule') do
get "/api/stripe/setup_intent/#{user.id}"
post '/api/stripe/payment_schedule',
params: {
payment_method_id: stripe_payment_method,
cart_items: {
customer_id: user.id,
items: [
{
subscription: {
plan_id: plan.id
}
}
],
payment_schedule: true,
payment_method: 'cart'
}
}.to_json, headers: default_headers
# Check response format & status
assert_equal 200, response.status, response.body
assert_equal Mime[:json], response.content_type
# Check the response
setup_intent = json_response(response.body)
assert_not_nil setup_intent[:client_secret]
assert_not_nil setup_intent[:id]
assert_match /^#{setup_intent[:id]}_secret_/, setup_intent[:client_secret]
# Confirm the intent
stripe_res = Stripe::SetupIntent.confirm(
setup_intent[:id],
{ payment_method: stripe_payment_method },
{ api_key: Setting.get('stripe_secret_key') }
)
# check the confirmation
assert_equal setup_intent[:id], stripe_res.id
assert_equal 'succeeded', stripe_res.status
assert_equal 'off_session', stripe_res.usage
res = json_response(response.body)
assert_not_nil res[:id]
post '/api/stripe/confirm_payment_schedule',
params: {
setup_intent_id: setup_intent[:id],
subscription_id: res[:id],
cart_items: {
customer_id: user.id,
payment_schedule: true,

View File

@ -195,36 +195,37 @@ class Subscriptions::CreateAsUserTest < ActionDispatch::IntegrationTest
payment_schedule_items_count = PaymentScheduleItem.count
VCR.use_cassette('subscriptions_user_create_with_payment_schedule') do
get "/api/stripe/setup_intent/#{@user.id}"
post '/api/stripe/payment_schedule',
params: {
payment_method_id: stripe_payment_method,
cart_items: {
items: [
{
subscription: {
plan_id: plan.id
}
}
],
payment_schedule: true,
payment_method: 'cart'
}
}.to_json, headers: default_headers
# Check response format & status
assert_equal 200, response.status, response.body
assert_equal Mime[:json], response.content_type
# Check the response
setup_intent = json_response(response.body)
assert_not_nil setup_intent[:client_secret]
assert_not_nil setup_intent[:id]
assert_match /^#{setup_intent[:id]}_secret_/, setup_intent[:client_secret]
# Confirm the intent
stripe_res = Stripe::SetupIntent.confirm(
setup_intent[:id],
{ payment_method: stripe_payment_method },
{ api_key: Setting.get('stripe_secret_key') }
)
# check the confirmation
assert_equal setup_intent[:id], stripe_res.id
assert_equal 'succeeded', stripe_res.status
assert_equal 'off_session', stripe_res.usage
sub = json_response(response.body)
assert_not_nil sub[:id]
# create the subscription
post '/api/stripe/confirm_payment_schedule',
params: {
setup_intent_id: setup_intent[:id],
subscription_id: sub[:id],
cart_items: {
payment_schedule: true,
payment_method: 'card',
items: [
{
subscription: {

View File

@ -13,14 +13,12 @@ http_interactions:
- Bearer sk_test_testfaketestfaketestfake
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_oXt918i1vLvnCA","request_duration_ms":13}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -33,7 +31,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:15:07 GMT
- Mon, 13 Sep 2021 11:24:07 GMT
Content-Type:
- application/json
Content-Length:
@ -53,18 +51,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_7vgbxefAX304bE
- req_tlTlxEJC4LyAQv
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '4'
- '6'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pm_1J19GQ2sOmf47Nz9Y86E5CXf",
"id": "pm_1JZDGd2sOmf47Nz9LCckU76B",
"object": "payment_method",
"billing_details": {
"address": {
@ -104,20 +102,20 @@ http_interactions:
},
"wallet": null
},
"created": 1623413707,
"created": 1631532247,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
}
recorded_at: Fri, 11 Jun 2021 12:15:07 GMT
recorded_at: Mon, 13 Sep 2021 11:24:07 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents
body:
encoding: UTF-8
string: payment_method=pm_1J19GQ2sOmf47Nz9Y86E5CXf&amount=11500&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8Di1wjdVktv5kt
string: payment_method=pm_1JZDGd2sOmf47Nz9LCckU76B&amount=11500&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8Di1wjdVktv5kt
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -126,13 +124,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_7vgbxefAX304bE","request_duration_ms":832}}'
- '{"last_request_metrics":{"request_id":"req_tlTlxEJC4LyAQv","request_duration_ms":663}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -145,7 +143,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:15:08 GMT
- Mon, 13 Sep 2021 11:24:09 GMT
Content-Type:
- application/json
Content-Length:
@ -165,18 +163,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_E8cT63b7DOTkyf
- req_4hAutJ5WkAA9ps
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '8'
- '10'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pi_1J19GR2sOmf47Nz9D5IFGnhg",
"id": "pi_3JZDGd2sOmf47Nz91tgWkK3L",
"object": "payment_intent",
"amount": 11500,
"amount_capturable": 0,
@ -190,7 +188,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19GR2sOmf47Nz9oCBIvZzL",
"id": "ch_3JZDGd2sOmf47Nz91HsbEa5U",
"object": "charge",
"amount": 11500,
"amount_captured": 11500,
@ -198,7 +196,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19GS2sOmf47Nz9rHxBgciP",
"balance_transaction": "txn_3JZDGd2sOmf47Nz91MEnox3F",
"billing_details": {
"address": {
"city": null,
@ -214,7 +212,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413707,
"created": 1631532248,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
@ -235,13 +233,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 50,
"risk_score": 12,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19GR2sOmf47Nz9D5IFGnhg",
"payment_method": "pm_1J19GQ2sOmf47Nz9Y86E5CXf",
"payment_intent": "pi_3JZDGd2sOmf47Nz91tgWkK3L",
"payment_method": "pm_1JZDGd2sOmf47Nz9LCckU76B",
"payment_method_details": {
"card": {
"brand": "visa",
@ -265,7 +263,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19GR2sOmf47Nz9oCBIvZzL/rcpt_JeSAQlSUzAZq4SypvsME0HD5lEcc0IS",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDGd2sOmf47Nz91HsbEa5U/rcpt_KDeZXFrj8mqhXX4v6MKFwawzylc2kPA",
"refunded": false,
"refunds": {
"object": "list",
@ -274,7 +272,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19GR2sOmf47Nz9oCBIvZzL/refunds"
"url": "/v1/charges/ch_3JZDGd2sOmf47Nz91HsbEa5U/refunds"
},
"review": null,
"shipping": null,
@ -289,11 +287,11 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19GR2sOmf47Nz9D5IFGnhg"
"url": "/v1/charges?payment_intent=pi_3JZDGd2sOmf47Nz91tgWkK3L"
},
"client_secret": "pi_1J19GR2sOmf47Nz9D5IFGnhg_secret_StfFUPwntJfwxIPmOYW342c78",
"client_secret": "pi_3JZDGd2sOmf47Nz91tgWkK3L_secret_DooP6j5YiNN0kzaXPdTGEeKeR",
"confirmation_method": "manual",
"created": 1623413707,
"created": 1631532247,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
@ -304,7 +302,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19GQ2sOmf47Nz9Y86E5CXf",
"payment_method": "pm_1JZDGd2sOmf47Nz9LCckU76B",
"payment_method_options": {
"card": {
"installments": null,
@ -326,13 +324,13 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:15:08 GMT
recorded_at: Mon, 13 Sep 2021 11:24:09 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents/pi_1J19GR2sOmf47Nz9D5IFGnhg
uri: https://api.stripe.com/v1/payment_intents/pi_3JZDGd2sOmf47Nz91tgWkK3L
body:
encoding: UTF-8
string: description=Invoice+reference%3A+2106001%2FVL
string: description=Invoice+reference%3A+2109001%2FVL
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -341,13 +339,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_E8cT63b7DOTkyf","request_duration_ms":1467}}'
- '{"last_request_metrics":{"request_id":"req_4hAutJ5WkAA9ps","request_duration_ms":1725}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -360,7 +358,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:15:09 GMT
- Mon, 13 Sep 2021 11:24:10 GMT
Content-Type:
- application/json
Content-Length:
@ -380,7 +378,7 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_OU638AhOsctwWF
- req_ysWG3JfyCp5xVD
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
@ -391,7 +389,7 @@ http_interactions:
encoding: UTF-8
string: |
{
"id": "pi_1J19GR2sOmf47Nz9D5IFGnhg",
"id": "pi_3JZDGd2sOmf47Nz91tgWkK3L",
"object": "payment_intent",
"amount": 11500,
"amount_capturable": 0,
@ -405,7 +403,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19GR2sOmf47Nz9oCBIvZzL",
"id": "ch_3JZDGd2sOmf47Nz91HsbEa5U",
"object": "charge",
"amount": 11500,
"amount_captured": 11500,
@ -413,7 +411,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19GS2sOmf47Nz9rHxBgciP",
"balance_transaction": "txn_3JZDGd2sOmf47Nz91MEnox3F",
"billing_details": {
"address": {
"city": null,
@ -429,7 +427,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413707,
"created": 1631532248,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
@ -450,13 +448,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 50,
"risk_score": 12,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19GR2sOmf47Nz9D5IFGnhg",
"payment_method": "pm_1J19GQ2sOmf47Nz9Y86E5CXf",
"payment_intent": "pi_3JZDGd2sOmf47Nz91tgWkK3L",
"payment_method": "pm_1JZDGd2sOmf47Nz9LCckU76B",
"payment_method_details": {
"card": {
"brand": "visa",
@ -480,7 +478,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19GR2sOmf47Nz9oCBIvZzL/rcpt_JeSAQlSUzAZq4SypvsME0HD5lEcc0IS",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDGd2sOmf47Nz91HsbEa5U/rcpt_KDeZXFrj8mqhXX4v6MKFwawzylc2kPA",
"refunded": false,
"refunds": {
"object": "list",
@ -489,7 +487,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19GR2sOmf47Nz9oCBIvZzL/refunds"
"url": "/v1/charges/ch_3JZDGd2sOmf47Nz91HsbEa5U/refunds"
},
"review": null,
"shipping": null,
@ -504,14 +502,14 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19GR2sOmf47Nz9D5IFGnhg"
"url": "/v1/charges?payment_intent=pi_3JZDGd2sOmf47Nz91tgWkK3L"
},
"client_secret": "pi_1J19GR2sOmf47Nz9D5IFGnhg_secret_StfFUPwntJfwxIPmOYW342c78",
"client_secret": "pi_3JZDGd2sOmf47Nz91tgWkK3L_secret_DooP6j5YiNN0kzaXPdTGEeKeR",
"confirmation_method": "manual",
"created": 1623413707,
"created": 1631532247,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": "Invoice reference: 2106001/VL",
"description": "Invoice reference: 2109001/VL",
"invoice": null,
"last_payment_error": null,
"livemode": false,
@ -519,7 +517,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19GQ2sOmf47Nz9Y86E5CXf",
"payment_method": "pm_1JZDGd2sOmf47Nz9LCckU76B",
"payment_method_options": {
"card": {
"installments": null,
@ -541,5 +539,5 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:15:09 GMT
recorded_at: Mon, 13 Sep 2021 11:24:10 GMT
recorded_with: VCR 6.0.0

View File

@ -14,13 +14,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_Qtzi0kqF6AGh3Q","request_duration_ms":523}}'
- '{"last_request_metrics":{"request_id":"req_5TvWs7UmY2UdpH","request_duration_ms":524}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -33,7 +33,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:38 GMT
- Mon, 13 Sep 2021 11:25:25 GMT
Content-Type:
- application/json
Content-Length:
@ -53,18 +53,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_LwmOXnstaUaA6l
- req_UwD4vNrm0xZorM
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '4'
- '6'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pm_1J19C62sOmf47Nz90ly8PIVC",
"id": "pm_1JZDHs2sOmf47Nz9cOqZ4bBg",
"object": "payment_method",
"billing_details": {
"address": {
@ -104,20 +104,20 @@ http_interactions:
},
"wallet": null
},
"created": 1623413438,
"created": 1631532324,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
}
recorded_at: Fri, 11 Jun 2021 12:10:38 GMT
recorded_at: Mon, 13 Sep 2021 11:25:25 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents
body:
encoding: UTF-8
string: payment_method=pm_1J19C62sOmf47Nz90ly8PIVC&amount=2400&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8CzNtM08NVlSGN
string: payment_method=pm_1JZDHs2sOmf47Nz9cOqZ4bBg&amount=2400&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8CzNtM08NVlSGN
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -126,13 +126,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_LwmOXnstaUaA6l","request_duration_ms":669}}'
- '{"last_request_metrics":{"request_id":"req_UwD4vNrm0xZorM","request_duration_ms":649}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -145,11 +145,11 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:40 GMT
- Mon, 13 Sep 2021 11:25:26 GMT
Content-Type:
- application/json
Content-Length:
- '4259'
- '4258'
Connection:
- keep-alive
Access-Control-Allow-Credentials:
@ -165,18 +165,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_2niOSD6nIWAZIB
- req_mhW9POLRyd3Dhd
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '8'
- '10'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pi_1J19C72sOmf47Nz9H32ZvrrU",
"id": "pi_3JZDHt2sOmf47Nz91D3ehMM4",
"object": "payment_intent",
"amount": 2400,
"amount_capturable": 0,
@ -190,7 +190,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19C72sOmf47Nz9aFGRLYwk",
"id": "ch_3JZDHt2sOmf47Nz91hPkhYg9",
"object": "charge",
"amount": 2400,
"amount_captured": 2400,
@ -198,7 +198,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19C72sOmf47Nz9D6XLqCkM",
"balance_transaction": "txn_3JZDHt2sOmf47Nz91S8s9s5v",
"billing_details": {
"address": {
"city": null,
@ -214,7 +214,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413439,
"created": 1631532325,
"currency": "usd",
"customer": "cus_8CzNtM08NVlSGN",
"description": null,
@ -235,13 +235,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 36,
"risk_score": 3,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19C72sOmf47Nz9H32ZvrrU",
"payment_method": "pm_1J19C62sOmf47Nz90ly8PIVC",
"payment_intent": "pi_3JZDHt2sOmf47Nz91D3ehMM4",
"payment_method": "pm_1JZDHs2sOmf47Nz9cOqZ4bBg",
"payment_method_details": {
"card": {
"brand": "visa",
@ -265,7 +265,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19C72sOmf47Nz9aFGRLYwk/rcpt_JeS6JAu6YVFr9TilSFUt95UFoJJqmjc",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDHt2sOmf47Nz91hPkhYg9/rcpt_KDebR8jNcFj6jBQtEg5j7kmeqfkEOJu",
"refunded": false,
"refunds": {
"object": "list",
@ -274,7 +274,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19C72sOmf47Nz9aFGRLYwk/refunds"
"url": "/v1/charges/ch_3JZDHt2sOmf47Nz91hPkhYg9/refunds"
},
"review": null,
"shipping": null,
@ -289,11 +289,11 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19C72sOmf47Nz9H32ZvrrU"
"url": "/v1/charges?payment_intent=pi_3JZDHt2sOmf47Nz91D3ehMM4"
},
"client_secret": "pi_1J19C72sOmf47Nz9H32ZvrrU_secret_0ymuM8JWPsuvxcX2H3ZhEU6s2",
"client_secret": "pi_3JZDHt2sOmf47Nz91D3ehMM4_secret_32yOQ25VnOFnmBaGcRqoAfRgw",
"confirmation_method": "manual",
"created": 1623413439,
"created": 1631532325,
"currency": "usd",
"customer": "cus_8CzNtM08NVlSGN",
"description": null,
@ -304,7 +304,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19C62sOmf47Nz90ly8PIVC",
"payment_method": "pm_1JZDHs2sOmf47Nz9cOqZ4bBg",
"payment_method_options": {
"card": {
"installments": null,
@ -326,13 +326,13 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:10:40 GMT
recorded_at: Mon, 13 Sep 2021 11:25:26 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents/pi_1J19C72sOmf47Nz9H32ZvrrU
uri: https://api.stripe.com/v1/payment_intents/pi_3JZDHt2sOmf47Nz91D3ehMM4
body:
encoding: UTF-8
string: description=Invoice+reference%3A+2106001%2FVL
string: description=Invoice+reference%3A+2109001%2FVL
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -341,13 +341,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_2niOSD6nIWAZIB","request_duration_ms":1485}}'
- '{"last_request_metrics":{"request_id":"req_mhW9POLRyd3Dhd","request_duration_ms":1607}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -360,11 +360,11 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:40 GMT
- Mon, 13 Sep 2021 11:25:27 GMT
Content-Type:
- application/json
Content-Length:
- '4286'
- '4285'
Connection:
- keep-alive
Access-Control-Allow-Credentials:
@ -380,7 +380,7 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_L7oB3NXiThfKHq
- req_TcOgzUQyxdYFzW
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
@ -391,7 +391,7 @@ http_interactions:
encoding: UTF-8
string: |
{
"id": "pi_1J19C72sOmf47Nz9H32ZvrrU",
"id": "pi_3JZDHt2sOmf47Nz91D3ehMM4",
"object": "payment_intent",
"amount": 2400,
"amount_capturable": 0,
@ -405,7 +405,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19C72sOmf47Nz9aFGRLYwk",
"id": "ch_3JZDHt2sOmf47Nz91hPkhYg9",
"object": "charge",
"amount": 2400,
"amount_captured": 2400,
@ -413,7 +413,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19C72sOmf47Nz9D6XLqCkM",
"balance_transaction": "txn_3JZDHt2sOmf47Nz91S8s9s5v",
"billing_details": {
"address": {
"city": null,
@ -429,7 +429,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413439,
"created": 1631532325,
"currency": "usd",
"customer": "cus_8CzNtM08NVlSGN",
"description": null,
@ -450,13 +450,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 36,
"risk_score": 3,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19C72sOmf47Nz9H32ZvrrU",
"payment_method": "pm_1J19C62sOmf47Nz90ly8PIVC",
"payment_intent": "pi_3JZDHt2sOmf47Nz91D3ehMM4",
"payment_method": "pm_1JZDHs2sOmf47Nz9cOqZ4bBg",
"payment_method_details": {
"card": {
"brand": "visa",
@ -480,7 +480,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19C72sOmf47Nz9aFGRLYwk/rcpt_JeS6JAu6YVFr9TilSFUt95UFoJJqmjc",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDHt2sOmf47Nz91hPkhYg9/rcpt_KDebR8jNcFj6jBQtEg5j7kmeqfkEOJu",
"refunded": false,
"refunds": {
"object": "list",
@ -489,7 +489,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19C72sOmf47Nz9aFGRLYwk/refunds"
"url": "/v1/charges/ch_3JZDHt2sOmf47Nz91hPkhYg9/refunds"
},
"review": null,
"shipping": null,
@ -504,14 +504,14 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19C72sOmf47Nz9H32ZvrrU"
"url": "/v1/charges?payment_intent=pi_3JZDHt2sOmf47Nz91D3ehMM4"
},
"client_secret": "pi_1J19C72sOmf47Nz9H32ZvrrU_secret_0ymuM8JWPsuvxcX2H3ZhEU6s2",
"client_secret": "pi_3JZDHt2sOmf47Nz91D3ehMM4_secret_32yOQ25VnOFnmBaGcRqoAfRgw",
"confirmation_method": "manual",
"created": 1623413439,
"created": 1631532325,
"currency": "usd",
"customer": "cus_8CzNtM08NVlSGN",
"description": "Invoice reference: 2106001/VL",
"description": "Invoice reference: 2109001/VL",
"invoice": null,
"last_payment_error": null,
"livemode": false,
@ -519,7 +519,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19C62sOmf47Nz90ly8PIVC",
"payment_method": "pm_1JZDHs2sOmf47Nz9cOqZ4bBg",
"payment_method_options": {
"card": {
"installments": null,
@ -541,5 +541,5 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:10:41 GMT
recorded_at: Mon, 13 Sep 2021 11:25:27 GMT
recorded_with: VCR 6.0.0

View File

@ -14,13 +14,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_CTkdNA8UVkIfpV","request_duration_ms":360}}'
- '{"last_request_metrics":{"request_id":"req_74fhBmPb5JM90V","request_duration_ms":347}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -33,7 +33,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:11 GMT
- Mon, 13 Sep 2021 11:25:21 GMT
Content-Type:
- application/json
Content-Length:
@ -53,18 +53,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_0UbkJM8MshuJWR
- req_qA7iTXatU8qi7j
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '4'
- '6'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pm_1J19Be2sOmf47Nz9JSvCV9Tb",
"id": "pm_1JZDHo2sOmf47Nz9QRMxej5B",
"object": "payment_method",
"billing_details": {
"address": {
@ -104,20 +104,20 @@ http_interactions:
},
"wallet": null
},
"created": 1623413411,
"created": 1631532321,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
}
recorded_at: Fri, 11 Jun 2021 12:10:11 GMT
recorded_at: Mon, 13 Sep 2021 11:25:21 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents
body:
encoding: UTF-8
string: payment_method=pm_1J19Be2sOmf47Nz9JSvCV9Tb&amount=1000&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8CzKe50I0J1gaI
string: payment_method=pm_1JZDHo2sOmf47Nz9QRMxej5B&amount=1000&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8CzKe50I0J1gaI
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -126,13 +126,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_0UbkJM8MshuJWR","request_duration_ms":648}}'
- '{"last_request_metrics":{"request_id":"req_qA7iTXatU8qi7j","request_duration_ms":690}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -145,7 +145,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:12 GMT
- Mon, 13 Sep 2021 11:25:22 GMT
Content-Type:
- application/json
Content-Length:
@ -165,18 +165,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_VTneGxjZI1u1PD
- req_yaOKxPsYbm1Wpe
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '8'
- '10'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pi_1J19Bf2sOmf47Nz9DiQ0cPCK",
"id": "pi_3JZDHp2sOmf47Nz90oM1JY8H",
"object": "payment_intent",
"amount": 1000,
"amount_capturable": 0,
@ -190,7 +190,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19Bf2sOmf47Nz9TGxG8k6F",
"id": "ch_3JZDHp2sOmf47Nz90de6bS6N",
"object": "charge",
"amount": 1000,
"amount_captured": 1000,
@ -198,7 +198,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19Bg2sOmf47Nz9klgYeXZ6",
"balance_transaction": "txn_3JZDHp2sOmf47Nz90ckFwi4X",
"billing_details": {
"address": {
"city": null,
@ -214,7 +214,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413411,
"created": 1631532321,
"currency": "usd",
"customer": "cus_8CzKe50I0J1gaI",
"description": null,
@ -235,13 +235,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 6,
"risk_score": 7,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19Bf2sOmf47Nz9DiQ0cPCK",
"payment_method": "pm_1J19Be2sOmf47Nz9JSvCV9Tb",
"payment_intent": "pi_3JZDHp2sOmf47Nz90oM1JY8H",
"payment_method": "pm_1JZDHo2sOmf47Nz9QRMxej5B",
"payment_method_details": {
"card": {
"brand": "visa",
@ -265,7 +265,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19Bf2sOmf47Nz9TGxG8k6F/rcpt_JeS5VJUmmz6o7Sg3YxpS2PoSeoXLLdg",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDHp2sOmf47Nz90de6bS6N/rcpt_KDebtcSulKsJmqfWP8JVsJBxyygoYaN",
"refunded": false,
"refunds": {
"object": "list",
@ -274,7 +274,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19Bf2sOmf47Nz9TGxG8k6F/refunds"
"url": "/v1/charges/ch_3JZDHp2sOmf47Nz90de6bS6N/refunds"
},
"review": null,
"shipping": null,
@ -289,11 +289,11 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19Bf2sOmf47Nz9DiQ0cPCK"
"url": "/v1/charges?payment_intent=pi_3JZDHp2sOmf47Nz90oM1JY8H"
},
"client_secret": "pi_1J19Bf2sOmf47Nz9DiQ0cPCK_secret_sO1O8SgzjiZ0sjuVhRTmIjrNd",
"client_secret": "pi_3JZDHp2sOmf47Nz90oM1JY8H_secret_anKmcF8avK0Dm3umVApKUy4TZ",
"confirmation_method": "manual",
"created": 1623413411,
"created": 1631532321,
"currency": "usd",
"customer": "cus_8CzKe50I0J1gaI",
"description": null,
@ -304,7 +304,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19Be2sOmf47Nz9JSvCV9Tb",
"payment_method": "pm_1JZDHo2sOmf47Nz9QRMxej5B",
"payment_method_options": {
"card": {
"installments": null,
@ -326,13 +326,13 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:10:12 GMT
recorded_at: Mon, 13 Sep 2021 11:25:22 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents/pi_1J19Bf2sOmf47Nz9DiQ0cPCK
uri: https://api.stripe.com/v1/payment_intents/pi_3JZDHp2sOmf47Nz90oM1JY8H
body:
encoding: UTF-8
string: description=Invoice+reference%3A+2106001%2FVL
string: description=Invoice+reference%3A+2109001%2FVL
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -341,13 +341,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_VTneGxjZI1u1PD","request_duration_ms":1667}}'
- '{"last_request_metrics":{"request_id":"req_yaOKxPsYbm1Wpe","request_duration_ms":1466}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -360,7 +360,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:13 GMT
- Mon, 13 Sep 2021 11:25:23 GMT
Content-Type:
- application/json
Content-Length:
@ -380,7 +380,7 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_C5jiry9wUrfSUk
- req_5TvWs7UmY2UdpH
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
@ -391,7 +391,7 @@ http_interactions:
encoding: UTF-8
string: |
{
"id": "pi_1J19Bf2sOmf47Nz9DiQ0cPCK",
"id": "pi_3JZDHp2sOmf47Nz90oM1JY8H",
"object": "payment_intent",
"amount": 1000,
"amount_capturable": 0,
@ -405,7 +405,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19Bf2sOmf47Nz9TGxG8k6F",
"id": "ch_3JZDHp2sOmf47Nz90de6bS6N",
"object": "charge",
"amount": 1000,
"amount_captured": 1000,
@ -413,7 +413,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19Bg2sOmf47Nz9klgYeXZ6",
"balance_transaction": "txn_3JZDHp2sOmf47Nz90ckFwi4X",
"billing_details": {
"address": {
"city": null,
@ -429,7 +429,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413411,
"created": 1631532321,
"currency": "usd",
"customer": "cus_8CzKe50I0J1gaI",
"description": null,
@ -450,13 +450,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 6,
"risk_score": 7,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19Bf2sOmf47Nz9DiQ0cPCK",
"payment_method": "pm_1J19Be2sOmf47Nz9JSvCV9Tb",
"payment_intent": "pi_3JZDHp2sOmf47Nz90oM1JY8H",
"payment_method": "pm_1JZDHo2sOmf47Nz9QRMxej5B",
"payment_method_details": {
"card": {
"brand": "visa",
@ -480,7 +480,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19Bf2sOmf47Nz9TGxG8k6F/rcpt_JeS5VJUmmz6o7Sg3YxpS2PoSeoXLLdg",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDHp2sOmf47Nz90de6bS6N/rcpt_KDebtcSulKsJmqfWP8JVsJBxyygoYaN",
"refunded": false,
"refunds": {
"object": "list",
@ -489,7 +489,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19Bf2sOmf47Nz9TGxG8k6F/refunds"
"url": "/v1/charges/ch_3JZDHp2sOmf47Nz90de6bS6N/refunds"
},
"review": null,
"shipping": null,
@ -504,14 +504,14 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19Bf2sOmf47Nz9DiQ0cPCK"
"url": "/v1/charges?payment_intent=pi_3JZDHp2sOmf47Nz90oM1JY8H"
},
"client_secret": "pi_1J19Bf2sOmf47Nz9DiQ0cPCK_secret_sO1O8SgzjiZ0sjuVhRTmIjrNd",
"client_secret": "pi_3JZDHp2sOmf47Nz90oM1JY8H_secret_anKmcF8avK0Dm3umVApKUy4TZ",
"confirmation_method": "manual",
"created": 1623413411,
"created": 1631532321,
"currency": "usd",
"customer": "cus_8CzKe50I0J1gaI",
"description": "Invoice reference: 2106001/VL",
"description": "Invoice reference: 2109001/VL",
"invoice": null,
"last_payment_error": null,
"livemode": false,
@ -519,7 +519,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19Be2sOmf47Nz9JSvCV9Tb",
"payment_method": "pm_1JZDHo2sOmf47Nz9QRMxej5B",
"payment_method_options": {
"card": {
"installments": null,
@ -541,5 +541,5 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:10:13 GMT
recorded_at: Mon, 13 Sep 2021 11:25:23 GMT
recorded_with: VCR 6.0.0

View File

@ -14,13 +14,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_C5jiry9wUrfSUk","request_duration_ms":465}}'
- '{"last_request_metrics":{"request_id":"req_GD1Z3hXLp0GqJ1","request_duration_ms":329}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -33,7 +33,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:14 GMT
- Mon, 13 Sep 2021 11:25:55 GMT
Content-Type:
- application/json
Content-Length:
@ -53,18 +53,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_6u8nwFE3OSZsT4
- req_rJM7Tj1DPqPulJ
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '4'
- '6'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pm_1J19Bi2sOmf47Nz9O7ZqNddc",
"id": "pm_1JZDIN2sOmf47Nz9f0AEfh00",
"object": "payment_method",
"billing_details": {
"address": {
@ -104,20 +104,20 @@ http_interactions:
},
"wallet": null
},
"created": 1623413414,
"created": 1631532355,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
}
recorded_at: Fri, 11 Jun 2021 12:10:14 GMT
recorded_at: Mon, 13 Sep 2021 11:25:55 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents
body:
encoding: UTF-8
string: payment_method=pm_1J19Bi2sOmf47Nz9O7ZqNddc&amount=3200&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8Di1wjdVktv5kt
string: payment_method=pm_1JZDIN2sOmf47Nz9f0AEfh00&amount=3200&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8Di1wjdVktv5kt
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -126,13 +126,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_6u8nwFE3OSZsT4","request_duration_ms":597}}'
- '{"last_request_metrics":{"request_id":"req_rJM7Tj1DPqPulJ","request_duration_ms":555}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -145,7 +145,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:15 GMT
- Mon, 13 Sep 2021 11:25:57 GMT
Content-Type:
- application/json
Content-Length:
@ -165,7 +165,7 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_mjdUP4FJgd6Dm2
- req_IZgIUq8bIVGJqo
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
@ -177,13 +177,13 @@ http_interactions:
string: |
{
"error": {
"charge": "ch_1J19Bj2sOmf47Nz9n99oJJbD",
"charge": "ch_3JZDIO2sOmf47Nz91AFXiCrj",
"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_1J19Bi2sOmf47Nz9SGiyMLkI",
"id": "pi_3JZDIO2sOmf47Nz910bWXahH",
"object": "payment_intent",
"amount": 3200,
"amount_capturable": 0,
@ -197,7 +197,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19Bj2sOmf47Nz9n99oJJbD",
"id": "ch_3JZDIO2sOmf47Nz91AFXiCrj",
"object": "charge",
"amount": 3200,
"amount_captured": 0,
@ -221,7 +221,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": false,
"created": 1623413415,
"created": 1631532356,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
@ -242,13 +242,13 @@ http_interactions:
"network_status": "declined_by_network",
"reason": "generic_decline",
"risk_level": "normal",
"risk_score": 28,
"risk_score": 34,
"seller_message": "The bank did not return any further details with this decline.",
"type": "issuer_declined"
},
"paid": false,
"payment_intent": "pi_1J19Bi2sOmf47Nz9SGiyMLkI",
"payment_method": "pm_1J19Bi2sOmf47Nz9O7ZqNddc",
"payment_intent": "pi_3JZDIO2sOmf47Nz910bWXahH",
"payment_method": "pm_1JZDIN2sOmf47Nz9f0AEfh00",
"payment_method_details": {
"card": {
"brand": "visa",
@ -281,7 +281,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19Bj2sOmf47Nz9n99oJJbD/refunds"
"url": "/v1/charges/ch_3JZDIO2sOmf47Nz91AFXiCrj/refunds"
},
"review": null,
"shipping": null,
@ -296,23 +296,23 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19Bi2sOmf47Nz9SGiyMLkI"
"url": "/v1/charges?payment_intent=pi_3JZDIO2sOmf47Nz910bWXahH"
},
"client_secret": "pi_1J19Bi2sOmf47Nz9SGiyMLkI_secret_uWpiwOiTPrRaljspJWKFTDblC",
"client_secret": "pi_3JZDIO2sOmf47Nz910bWXahH_secret_kPXjVYROVeT9wM3NFM2PrtDRX",
"confirmation_method": "manual",
"created": 1623413414,
"created": 1631532356,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
"invoice": null,
"last_payment_error": {
"charge": "ch_1J19Bj2sOmf47Nz9n99oJJbD",
"charge": "ch_3JZDIO2sOmf47Nz91AFXiCrj",
"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_1J19Bi2sOmf47Nz9O7ZqNddc",
"id": "pm_1JZDIN2sOmf47Nz9f0AEfh00",
"object": "payment_method",
"billing_details": {
"address": {
@ -352,7 +352,7 @@ http_interactions:
},
"wallet": null
},
"created": 1623413414,
"created": 1631532355,
"customer": null,
"livemode": false,
"metadata": {
@ -389,7 +389,7 @@ http_interactions:
"transfer_group": null
},
"payment_method": {
"id": "pm_1J19Bi2sOmf47Nz9O7ZqNddc",
"id": "pm_1JZDIN2sOmf47Nz9f0AEfh00",
"object": "payment_method",
"billing_details": {
"address": {
@ -429,7 +429,7 @@ http_interactions:
},
"wallet": null
},
"created": 1623413414,
"created": 1631532355,
"customer": null,
"livemode": false,
"metadata": {
@ -439,5 +439,5 @@ http_interactions:
"type": "card_error"
}
}
recorded_at: Fri, 11 Jun 2021 12:10:15 GMT
recorded_at: Mon, 13 Sep 2021 11:25:57 GMT
recorded_with: VCR 6.0.0

View File

@ -14,13 +14,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_iLsFVasH8kGMo7","request_duration_ms":623}}'
- '{"last_request_metrics":{"request_id":"req_amT9NxCRaztTRy","request_duration_ms":606}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -33,7 +33,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:35 GMT
- Mon, 13 Sep 2021 11:25:35 GMT
Content-Type:
- application/json
Content-Length:
@ -53,18 +53,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_kYPWtw2ej2J6VG
- req_gMBM6uE4HlV90j
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '4'
- '6'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pm_1J19C32sOmf47Nz9HKbXgdkN",
"id": "pm_1JZDI22sOmf47Nz9OFc3vyXK",
"object": "payment_method",
"billing_details": {
"address": {
@ -104,20 +104,20 @@ http_interactions:
},
"wallet": null
},
"created": 1623413435,
"created": 1631532334,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
}
recorded_at: Fri, 11 Jun 2021 12:10:35 GMT
recorded_at: Mon, 13 Sep 2021 11:25:35 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents
body:
encoding: UTF-8
string: payment_method=pm_1J19C32sOmf47Nz9HKbXgdkN&amount=3200&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8Di1wjdVktv5kt
string: payment_method=pm_1JZDI22sOmf47Nz9OFc3vyXK&amount=3200&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8Di1wjdVktv5kt
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -126,13 +126,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_kYPWtw2ej2J6VG","request_duration_ms":589}}'
- '{"last_request_metrics":{"request_id":"req_gMBM6uE4HlV90j","request_duration_ms":698}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -145,7 +145,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:37 GMT
- Mon, 13 Sep 2021 11:25:36 GMT
Content-Type:
- application/json
Content-Length:
@ -165,18 +165,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_eegs9aegAiqL5L
- req_JZtoC3OckdCMFv
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '8'
- '10'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pi_1J19C42sOmf47Nz9IKXd4HuT",
"id": "pi_3JZDI32sOmf47Nz903ola4BM",
"object": "payment_intent",
"amount": 3200,
"amount_capturable": 0,
@ -190,7 +190,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19C42sOmf47Nz9zZ3DgNMC",
"id": "ch_3JZDI32sOmf47Nz90eSrwzpy",
"object": "charge",
"amount": 3200,
"amount_captured": 3200,
@ -198,7 +198,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19C42sOmf47Nz9UrlLJzDe",
"balance_transaction": "txn_3JZDI32sOmf47Nz90SFkzjRK",
"billing_details": {
"address": {
"city": null,
@ -214,7 +214,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413436,
"created": 1631532335,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
@ -235,13 +235,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 43,
"risk_score": 39,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19C42sOmf47Nz9IKXd4HuT",
"payment_method": "pm_1J19C32sOmf47Nz9HKbXgdkN",
"payment_intent": "pi_3JZDI32sOmf47Nz903ola4BM",
"payment_method": "pm_1JZDI22sOmf47Nz9OFc3vyXK",
"payment_method_details": {
"card": {
"brand": "visa",
@ -265,7 +265,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19C42sOmf47Nz9zZ3DgNMC/rcpt_JeS6yZgl2xYi71QATPHJs6AriBq2gUB",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDI32sOmf47Nz90eSrwzpy/rcpt_KDebV416ITY20HqMKlEGMbrT4KRJnk4",
"refunded": false,
"refunds": {
"object": "list",
@ -274,7 +274,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19C42sOmf47Nz9zZ3DgNMC/refunds"
"url": "/v1/charges/ch_3JZDI32sOmf47Nz90eSrwzpy/refunds"
},
"review": null,
"shipping": null,
@ -289,11 +289,11 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19C42sOmf47Nz9IKXd4HuT"
"url": "/v1/charges?payment_intent=pi_3JZDI32sOmf47Nz903ola4BM"
},
"client_secret": "pi_1J19C42sOmf47Nz9IKXd4HuT_secret_ACN3JLLS2l9eBC0mzPgVewF1F",
"client_secret": "pi_3JZDI32sOmf47Nz903ola4BM_secret_xplZZwGlWQUFX0yhQ8EXru0bU",
"confirmation_method": "manual",
"created": 1623413436,
"created": 1631532335,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
@ -304,7 +304,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19C32sOmf47Nz9HKbXgdkN",
"payment_method": "pm_1JZDI22sOmf47Nz9OFc3vyXK",
"payment_method_options": {
"card": {
"installments": null,
@ -326,13 +326,13 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:10:37 GMT
recorded_at: Mon, 13 Sep 2021 11:25:36 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents/pi_1J19C42sOmf47Nz9IKXd4HuT
uri: https://api.stripe.com/v1/payment_intents/pi_3JZDI32sOmf47Nz903ola4BM
body:
encoding: UTF-8
string: description=Invoice+reference%3A+2106001%2FVL
string: description=Invoice+reference%3A+2109001%2FVL
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -341,13 +341,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_eegs9aegAiqL5L","request_duration_ms":1613}}'
- '{"last_request_metrics":{"request_id":"req_JZtoC3OckdCMFv","request_duration_ms":1514}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -360,7 +360,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:37 GMT
- Mon, 13 Sep 2021 11:25:37 GMT
Content-Type:
- application/json
Content-Length:
@ -380,7 +380,7 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_Qtzi0kqF6AGh3Q
- req_7tiQl4FwRUcoiN
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
@ -391,7 +391,7 @@ http_interactions:
encoding: UTF-8
string: |
{
"id": "pi_1J19C42sOmf47Nz9IKXd4HuT",
"id": "pi_3JZDI32sOmf47Nz903ola4BM",
"object": "payment_intent",
"amount": 3200,
"amount_capturable": 0,
@ -405,7 +405,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19C42sOmf47Nz9zZ3DgNMC",
"id": "ch_3JZDI32sOmf47Nz90eSrwzpy",
"object": "charge",
"amount": 3200,
"amount_captured": 3200,
@ -413,7 +413,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19C42sOmf47Nz9UrlLJzDe",
"balance_transaction": "txn_3JZDI32sOmf47Nz90SFkzjRK",
"billing_details": {
"address": {
"city": null,
@ -429,7 +429,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413436,
"created": 1631532335,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
@ -450,13 +450,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 43,
"risk_score": 39,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19C42sOmf47Nz9IKXd4HuT",
"payment_method": "pm_1J19C32sOmf47Nz9HKbXgdkN",
"payment_intent": "pi_3JZDI32sOmf47Nz903ola4BM",
"payment_method": "pm_1JZDI22sOmf47Nz9OFc3vyXK",
"payment_method_details": {
"card": {
"brand": "visa",
@ -480,7 +480,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19C42sOmf47Nz9zZ3DgNMC/rcpt_JeS6yZgl2xYi71QATPHJs6AriBq2gUB",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDI32sOmf47Nz90eSrwzpy/rcpt_KDebV416ITY20HqMKlEGMbrT4KRJnk4",
"refunded": false,
"refunds": {
"object": "list",
@ -489,7 +489,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19C42sOmf47Nz9zZ3DgNMC/refunds"
"url": "/v1/charges/ch_3JZDI32sOmf47Nz90eSrwzpy/refunds"
},
"review": null,
"shipping": null,
@ -504,14 +504,14 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19C42sOmf47Nz9IKXd4HuT"
"url": "/v1/charges?payment_intent=pi_3JZDI32sOmf47Nz903ola4BM"
},
"client_secret": "pi_1J19C42sOmf47Nz9IKXd4HuT_secret_ACN3JLLS2l9eBC0mzPgVewF1F",
"client_secret": "pi_3JZDI32sOmf47Nz903ola4BM_secret_xplZZwGlWQUFX0yhQ8EXru0bU",
"confirmation_method": "manual",
"created": 1623413436,
"created": 1631532335,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": "Invoice reference: 2106001/VL",
"description": "Invoice reference: 2109001/VL",
"invoice": null,
"last_payment_error": null,
"livemode": false,
@ -519,7 +519,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19C32sOmf47Nz9HKbXgdkN",
"payment_method": "pm_1JZDI22sOmf47Nz9OFc3vyXK",
"payment_method_options": {
"card": {
"installments": null,
@ -541,5 +541,5 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:10:37 GMT
recorded_at: Mon, 13 Sep 2021 11:25:37 GMT
recorded_with: VCR 6.0.0

View File

@ -14,13 +14,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_tdtxVNNKxaRHxE","request_duration_ms":2}}'
- '{"last_request_metrics":{"request_id":"req_ysWG3JfyCp5xVD","request_duration_ms":520}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -33,7 +33,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:15:10 GMT
- Mon, 13 Sep 2021 11:24:10 GMT
Content-Type:
- application/json
Content-Length:
@ -53,18 +53,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_sPeoJkITBeFrHQ
- req_7RNGSU2vySHdHz
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '4'
- '6'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pm_1J19GT2sOmf47Nz98lwM2AzV",
"id": "pm_1JZDGg2sOmf47Nz9pfmMaPtb",
"object": "payment_method",
"billing_details": {
"address": {
@ -104,20 +104,20 @@ http_interactions:
},
"wallet": null
},
"created": 1623413710,
"created": 1631532250,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
}
recorded_at: Fri, 11 Jun 2021 12:15:10 GMT
recorded_at: Mon, 13 Sep 2021 11:24:10 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents
body:
encoding: UTF-8
string: payment_method=pm_1J19GT2sOmf47Nz98lwM2AzV&amount=4200&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8Di1wjdVktv5kt
string: payment_method=pm_1JZDGg2sOmf47Nz9pfmMaPtb&amount=4200&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8Di1wjdVktv5kt
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -126,13 +126,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_sPeoJkITBeFrHQ","request_duration_ms":672}}'
- '{"last_request_metrics":{"request_id":"req_7RNGSU2vySHdHz","request_duration_ms":628}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -145,11 +145,11 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:15:11 GMT
- Mon, 13 Sep 2021 11:24:12 GMT
Content-Type:
- application/json
Content-Length:
- '4259'
- '4258'
Connection:
- keep-alive
Access-Control-Allow-Credentials:
@ -165,18 +165,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_nfTsL4x7hjHtX7
- req_NgGOJxEFd8THv8
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '8'
- '10'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pi_1J19GU2sOmf47Nz9c91GTavq",
"id": "pi_3JZDGh2sOmf47Nz91FT4yZ2t",
"object": "payment_intent",
"amount": 4200,
"amount_capturable": 0,
@ -190,7 +190,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19GV2sOmf47Nz9dBSG8c8F",
"id": "ch_3JZDGh2sOmf47Nz91FoAsBFe",
"object": "charge",
"amount": 4200,
"amount_captured": 4200,
@ -198,7 +198,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19GV2sOmf47Nz9QdwG8Nn7",
"balance_transaction": "txn_3JZDGh2sOmf47Nz91yuRvukb",
"billing_details": {
"address": {
"city": null,
@ -214,7 +214,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413711,
"created": 1631532251,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
@ -235,13 +235,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 38,
"risk_score": 2,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19GU2sOmf47Nz9c91GTavq",
"payment_method": "pm_1J19GT2sOmf47Nz98lwM2AzV",
"payment_intent": "pi_3JZDGh2sOmf47Nz91FT4yZ2t",
"payment_method": "pm_1JZDGg2sOmf47Nz9pfmMaPtb",
"payment_method_details": {
"card": {
"brand": "visa",
@ -265,7 +265,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19GV2sOmf47Nz9dBSG8c8F/rcpt_JeSAp69l6Sv5QMWGfH7Z9UgRmjgh7Kp",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDGh2sOmf47Nz91FoAsBFe/rcpt_KDeZ4pRoBzCyvhebh2wUzvr5fmdZdtD",
"refunded": false,
"refunds": {
"object": "list",
@ -274,7 +274,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19GV2sOmf47Nz9dBSG8c8F/refunds"
"url": "/v1/charges/ch_3JZDGh2sOmf47Nz91FoAsBFe/refunds"
},
"review": null,
"shipping": null,
@ -289,11 +289,11 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19GU2sOmf47Nz9c91GTavq"
"url": "/v1/charges?payment_intent=pi_3JZDGh2sOmf47Nz91FT4yZ2t"
},
"client_secret": "pi_1J19GU2sOmf47Nz9c91GTavq_secret_v9nhUxHNKVUFRXio5geVYxKTi",
"client_secret": "pi_3JZDGh2sOmf47Nz91FT4yZ2t_secret_F3QBmBEtZjcaKblNLMUnLO6hD",
"confirmation_method": "manual",
"created": 1623413710,
"created": 1631532251,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
@ -304,7 +304,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19GT2sOmf47Nz98lwM2AzV",
"payment_method": "pm_1JZDGg2sOmf47Nz9pfmMaPtb",
"payment_method_options": {
"card": {
"installments": null,
@ -326,5 +326,5 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:15:11 GMT
recorded_at: Mon, 13 Sep 2021 11:24:12 GMT
recorded_with: VCR 6.0.0

View File

@ -13,12 +13,14 @@ http_interactions:
- Bearer sk_test_testfaketestfaketestfake
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_NgGOJxEFd8THv8","request_duration_ms":1772}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -31,7 +33,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:08:43 GMT
- Mon, 13 Sep 2021 11:24:13 GMT
Content-Type:
- application/json
Content-Length:
@ -51,18 +53,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_7h6cmDUYO6gEil
- req_px5zsAdlzgwwSe
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '4'
- '6'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pm_1J19AE2sOmf47Nz9gRvdc0YH",
"id": "pm_1JZDGj2sOmf47Nz9S8jhZkFt",
"object": "payment_method",
"billing_details": {
"address": {
@ -102,20 +104,20 @@ http_interactions:
},
"wallet": null
},
"created": 1623413323,
"created": 1631532253,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
}
recorded_at: Fri, 11 Jun 2021 12:08:43 GMT
recorded_at: Mon, 13 Sep 2021 11:24:13 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents
body:
encoding: UTF-8
string: payment_method=pm_1J19AE2sOmf47Nz9gRvdc0YH&amount=1500&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8CzHcwBJtlA3IL
string: payment_method=pm_1JZDGj2sOmf47Nz9S8jhZkFt&amount=1500&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8CzHcwBJtlA3IL
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -124,13 +126,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_7h6cmDUYO6gEil","request_duration_ms":701}}'
- '{"last_request_metrics":{"request_id":"req_px5zsAdlzgwwSe","request_duration_ms":619}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -143,11 +145,11 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:08:44 GMT
- Mon, 13 Sep 2021 11:24:15 GMT
Content-Type:
- application/json
Content-Length:
- '4258'
- '4259'
Connection:
- keep-alive
Access-Control-Allow-Credentials:
@ -163,18 +165,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_JnNw9qW6iIfVwV
- req_EMDO1Z1Uux0kJb
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '8'
- '10'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pi_1J19AF2sOmf47Nz9YtcTxgsy",
"id": "pi_3JZDGj2sOmf47Nz90n2aOsuM",
"object": "payment_intent",
"amount": 1500,
"amount_capturable": 0,
@ -188,7 +190,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19AF2sOmf47Nz9ePKivBN8",
"id": "ch_3JZDGj2sOmf47Nz90qQzwGqL",
"object": "charge",
"amount": 1500,
"amount_captured": 1500,
@ -196,7 +198,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19AG2sOmf47Nz9GR2bkWKA",
"balance_transaction": "txn_3JZDGj2sOmf47Nz90fOwfgv5",
"billing_details": {
"address": {
"city": null,
@ -212,7 +214,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413323,
"created": 1631532254,
"currency": "usd",
"customer": "cus_8CzHcwBJtlA3IL",
"description": null,
@ -233,13 +235,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 0,
"risk_score": 22,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19AF2sOmf47Nz9YtcTxgsy",
"payment_method": "pm_1J19AE2sOmf47Nz9gRvdc0YH",
"payment_intent": "pi_3JZDGj2sOmf47Nz90n2aOsuM",
"payment_method": "pm_1JZDGj2sOmf47Nz9S8jhZkFt",
"payment_method_details": {
"card": {
"brand": "visa",
@ -263,7 +265,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19AF2sOmf47Nz9ePKivBN8/rcpt_JeS4TGjI8HE8PYOUjp8hx1pvZEyPRYo",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDGj2sOmf47Nz90qQzwGqL/rcpt_KDeZMofbRKdRjLxxUw4LZO1LIDJP1sR",
"refunded": false,
"refunds": {
"object": "list",
@ -272,7 +274,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19AF2sOmf47Nz9ePKivBN8/refunds"
"url": "/v1/charges/ch_3JZDGj2sOmf47Nz90qQzwGqL/refunds"
},
"review": null,
"shipping": null,
@ -287,11 +289,11 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19AF2sOmf47Nz9YtcTxgsy"
"url": "/v1/charges?payment_intent=pi_3JZDGj2sOmf47Nz90n2aOsuM"
},
"client_secret": "pi_1J19AF2sOmf47Nz9YtcTxgsy_secret_wmBrh49rseqoeNCeTs9JI0cYl",
"client_secret": "pi_3JZDGj2sOmf47Nz90n2aOsuM_secret_WR5cdTATWgOShT8ZHInabONRL",
"confirmation_method": "manual",
"created": 1623413323,
"created": 1631532253,
"currency": "usd",
"customer": "cus_8CzHcwBJtlA3IL",
"description": null,
@ -302,7 +304,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19AE2sOmf47Nz9gRvdc0YH",
"payment_method": "pm_1JZDGj2sOmf47Nz9S8jhZkFt",
"payment_method_options": {
"card": {
"installments": null,
@ -324,13 +326,13 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:08:44 GMT
recorded_at: Mon, 13 Sep 2021 11:24:15 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents/pi_1J19AF2sOmf47Nz9YtcTxgsy
uri: https://api.stripe.com/v1/payment_intents/pi_3JZDGj2sOmf47Nz90n2aOsuM
body:
encoding: UTF-8
string: description=Invoice+reference%3A+2106001%2FVL
string: description=Invoice+reference%3A+2109001%2FVL
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -339,13 +341,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_JnNw9qW6iIfVwV","request_duration_ms":1414}}'
- '{"last_request_metrics":{"request_id":"req_EMDO1Z1Uux0kJb","request_duration_ms":1528}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -358,11 +360,11 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:08:45 GMT
- Mon, 13 Sep 2021 11:24:15 GMT
Content-Type:
- application/json
Content-Length:
- '4285'
- '4286'
Connection:
- keep-alive
Access-Control-Allow-Credentials:
@ -378,7 +380,7 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_tdtxVNNKxaRHxE
- req_Xmih0ndHQjzde4
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
@ -389,7 +391,7 @@ http_interactions:
encoding: UTF-8
string: |
{
"id": "pi_1J19AF2sOmf47Nz9YtcTxgsy",
"id": "pi_3JZDGj2sOmf47Nz90n2aOsuM",
"object": "payment_intent",
"amount": 1500,
"amount_capturable": 0,
@ -403,7 +405,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19AF2sOmf47Nz9ePKivBN8",
"id": "ch_3JZDGj2sOmf47Nz90qQzwGqL",
"object": "charge",
"amount": 1500,
"amount_captured": 1500,
@ -411,7 +413,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19AG2sOmf47Nz9GR2bkWKA",
"balance_transaction": "txn_3JZDGj2sOmf47Nz90fOwfgv5",
"billing_details": {
"address": {
"city": null,
@ -427,7 +429,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413323,
"created": 1631532254,
"currency": "usd",
"customer": "cus_8CzHcwBJtlA3IL",
"description": null,
@ -448,13 +450,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 0,
"risk_score": 22,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19AF2sOmf47Nz9YtcTxgsy",
"payment_method": "pm_1J19AE2sOmf47Nz9gRvdc0YH",
"payment_intent": "pi_3JZDGj2sOmf47Nz90n2aOsuM",
"payment_method": "pm_1JZDGj2sOmf47Nz9S8jhZkFt",
"payment_method_details": {
"card": {
"brand": "visa",
@ -478,7 +480,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19AF2sOmf47Nz9ePKivBN8/rcpt_JeS4TGjI8HE8PYOUjp8hx1pvZEyPRYo",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDGj2sOmf47Nz90qQzwGqL/rcpt_KDeZMofbRKdRjLxxUw4LZO1LIDJP1sR",
"refunded": false,
"refunds": {
"object": "list",
@ -487,7 +489,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19AF2sOmf47Nz9ePKivBN8/refunds"
"url": "/v1/charges/ch_3JZDGj2sOmf47Nz90qQzwGqL/refunds"
},
"review": null,
"shipping": null,
@ -502,14 +504,14 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19AF2sOmf47Nz9YtcTxgsy"
"url": "/v1/charges?payment_intent=pi_3JZDGj2sOmf47Nz90n2aOsuM"
},
"client_secret": "pi_1J19AF2sOmf47Nz9YtcTxgsy_secret_wmBrh49rseqoeNCeTs9JI0cYl",
"client_secret": "pi_3JZDGj2sOmf47Nz90n2aOsuM_secret_WR5cdTATWgOShT8ZHInabONRL",
"confirmation_method": "manual",
"created": 1623413323,
"created": 1631532253,
"currency": "usd",
"customer": "cus_8CzHcwBJtlA3IL",
"description": "Invoice reference: 2106001/VL",
"description": "Invoice reference: 2109001/VL",
"invoice": null,
"last_payment_error": null,
"livemode": false,
@ -517,7 +519,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19AE2sOmf47Nz9gRvdc0YH",
"payment_method": "pm_1JZDGj2sOmf47Nz9S8jhZkFt",
"payment_method_options": {
"card": {
"installments": null,
@ -539,5 +541,5 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:08:45 GMT
recorded_at: Mon, 13 Sep 2021 11:24:15 GMT
recorded_with: VCR 6.0.0

View File

@ -14,13 +14,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_XakpVhlXhUOPhF","request_duration_ms":486}}'
- '{"last_request_metrics":{"request_id":"req_7tiQl4FwRUcoiN","request_duration_ms":549}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -33,7 +33,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:23 GMT
- Mon, 13 Sep 2021 11:25:38 GMT
Content-Type:
- application/json
Content-Length:
@ -53,18 +53,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_1zLewxbxeOTCH1
- req_EfPQAwZ9RxJvOI
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '4'
- '6'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pm_1J19Br2sOmf47Nz91LRiLxIn",
"id": "pm_1JZDI62sOmf47Nz9Df4HRjcA",
"object": "payment_method",
"billing_details": {
"address": {
@ -104,20 +104,20 @@ http_interactions:
},
"wallet": null
},
"created": 1623413423,
"created": 1631532338,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
}
recorded_at: Fri, 11 Jun 2021 12:10:23 GMT
recorded_at: Mon, 13 Sep 2021 11:25:38 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents
body:
encoding: UTF-8
string: payment_method=pm_1J19Br2sOmf47Nz91LRiLxIn&amount=1000&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8CzNtM08NVlSGN
string: payment_method=pm_1JZDI62sOmf47Nz9Df4HRjcA&amount=1000&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8CzNtM08NVlSGN
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -126,13 +126,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_1zLewxbxeOTCH1","request_duration_ms":696}}'
- '{"last_request_metrics":{"request_id":"req_EfPQAwZ9RxJvOI","request_duration_ms":628}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -145,7 +145,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:25 GMT
- Mon, 13 Sep 2021 11:25:40 GMT
Content-Type:
- application/json
Content-Length:
@ -165,18 +165,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_4B0ohox4ApLjL5
- req_ysC1iosOiv3KS6
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '8'
- '10'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pi_1J19Br2sOmf47Nz9wnqf26kJ",
"id": "pi_3JZDI62sOmf47Nz91lNS1dRI",
"object": "payment_intent",
"amount": 1000,
"amount_capturable": 0,
@ -190,7 +190,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19Bs2sOmf47Nz9cZkztkKK",
"id": "ch_3JZDI62sOmf47Nz91SwGR8Tv",
"object": "charge",
"amount": 1000,
"amount_captured": 1000,
@ -198,7 +198,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19Bs2sOmf47Nz9dHOBJpyh",
"balance_transaction": "txn_3JZDI62sOmf47Nz91fDRdKR3",
"billing_details": {
"address": {
"city": null,
@ -214,7 +214,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413424,
"created": 1631532339,
"currency": "usd",
"customer": "cus_8CzNtM08NVlSGN",
"description": null,
@ -235,13 +235,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 29,
"risk_score": 44,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19Br2sOmf47Nz9wnqf26kJ",
"payment_method": "pm_1J19Br2sOmf47Nz91LRiLxIn",
"payment_intent": "pi_3JZDI62sOmf47Nz91lNS1dRI",
"payment_method": "pm_1JZDI62sOmf47Nz9Df4HRjcA",
"payment_method_details": {
"card": {
"brand": "visa",
@ -265,7 +265,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19Bs2sOmf47Nz9cZkztkKK/rcpt_JeS67BPPDm2r7prt6gvsuPELdNNM49t",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDI62sOmf47Nz91SwGR8Tv/rcpt_KDebrtCiuK3rigtCFPtLQ0rsbEb2Wex",
"refunded": false,
"refunds": {
"object": "list",
@ -274,7 +274,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19Bs2sOmf47Nz9cZkztkKK/refunds"
"url": "/v1/charges/ch_3JZDI62sOmf47Nz91SwGR8Tv/refunds"
},
"review": null,
"shipping": null,
@ -289,11 +289,11 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19Br2sOmf47Nz9wnqf26kJ"
"url": "/v1/charges?payment_intent=pi_3JZDI62sOmf47Nz91lNS1dRI"
},
"client_secret": "pi_1J19Br2sOmf47Nz9wnqf26kJ_secret_CWZsKD4LulCITqndQFtOrG0Iu",
"client_secret": "pi_3JZDI62sOmf47Nz91lNS1dRI_secret_Q9rbILLuXE6YsRS2UL8O2a4qv",
"confirmation_method": "manual",
"created": 1623413423,
"created": 1631532338,
"currency": "usd",
"customer": "cus_8CzNtM08NVlSGN",
"description": null,
@ -304,7 +304,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19Br2sOmf47Nz91LRiLxIn",
"payment_method": "pm_1JZDI62sOmf47Nz9Df4HRjcA",
"payment_method_options": {
"card": {
"installments": null,
@ -326,13 +326,13 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:10:25 GMT
recorded_at: Mon, 13 Sep 2021 11:25:40 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents/pi_1J19Br2sOmf47Nz9wnqf26kJ
uri: https://api.stripe.com/v1/payment_intents/pi_3JZDI62sOmf47Nz91lNS1dRI
body:
encoding: UTF-8
string: description=Invoice+reference%3A+2106001%2FVL
string: description=Invoice+reference%3A+2109001%2FVL
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -341,13 +341,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_4B0ohox4ApLjL5","request_duration_ms":1770}}'
- '{"last_request_metrics":{"request_id":"req_ysC1iosOiv3KS6","request_duration_ms":1745}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -360,7 +360,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:26 GMT
- Mon, 13 Sep 2021 11:25:41 GMT
Content-Type:
- application/json
Content-Length:
@ -380,7 +380,7 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_I9Ty57VyxHpuf5
- req_tlpIDMIqln9wab
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
@ -391,7 +391,7 @@ http_interactions:
encoding: UTF-8
string: |
{
"id": "pi_1J19Br2sOmf47Nz9wnqf26kJ",
"id": "pi_3JZDI62sOmf47Nz91lNS1dRI",
"object": "payment_intent",
"amount": 1000,
"amount_capturable": 0,
@ -405,7 +405,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19Bs2sOmf47Nz9cZkztkKK",
"id": "ch_3JZDI62sOmf47Nz91SwGR8Tv",
"object": "charge",
"amount": 1000,
"amount_captured": 1000,
@ -413,7 +413,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19Bs2sOmf47Nz9dHOBJpyh",
"balance_transaction": "txn_3JZDI62sOmf47Nz91fDRdKR3",
"billing_details": {
"address": {
"city": null,
@ -429,7 +429,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413424,
"created": 1631532339,
"currency": "usd",
"customer": "cus_8CzNtM08NVlSGN",
"description": null,
@ -450,13 +450,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 29,
"risk_score": 44,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19Br2sOmf47Nz9wnqf26kJ",
"payment_method": "pm_1J19Br2sOmf47Nz91LRiLxIn",
"payment_intent": "pi_3JZDI62sOmf47Nz91lNS1dRI",
"payment_method": "pm_1JZDI62sOmf47Nz9Df4HRjcA",
"payment_method_details": {
"card": {
"brand": "visa",
@ -480,7 +480,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19Bs2sOmf47Nz9cZkztkKK/rcpt_JeS67BPPDm2r7prt6gvsuPELdNNM49t",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDI62sOmf47Nz91SwGR8Tv/rcpt_KDebrtCiuK3rigtCFPtLQ0rsbEb2Wex",
"refunded": false,
"refunds": {
"object": "list",
@ -489,7 +489,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19Bs2sOmf47Nz9cZkztkKK/refunds"
"url": "/v1/charges/ch_3JZDI62sOmf47Nz91SwGR8Tv/refunds"
},
"review": null,
"shipping": null,
@ -504,14 +504,14 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19Br2sOmf47Nz9wnqf26kJ"
"url": "/v1/charges?payment_intent=pi_3JZDI62sOmf47Nz91lNS1dRI"
},
"client_secret": "pi_1J19Br2sOmf47Nz9wnqf26kJ_secret_CWZsKD4LulCITqndQFtOrG0Iu",
"client_secret": "pi_3JZDI62sOmf47Nz91lNS1dRI_secret_Q9rbILLuXE6YsRS2UL8O2a4qv",
"confirmation_method": "manual",
"created": 1623413423,
"created": 1631532338,
"currency": "usd",
"customer": "cus_8CzNtM08NVlSGN",
"description": "Invoice reference: 2106001/VL",
"description": "Invoice reference: 2109001/VL",
"invoice": null,
"last_payment_error": null,
"livemode": false,
@ -519,7 +519,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19Br2sOmf47Nz91LRiLxIn",
"payment_method": "pm_1JZDI62sOmf47Nz9Df4HRjcA",
"payment_method_options": {
"card": {
"installments": null,
@ -541,5 +541,5 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:10:26 GMT
recorded_at: Mon, 13 Sep 2021 11:25:41 GMT
recorded_with: VCR 6.0.0

View File

@ -14,13 +14,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_opRsb0WDIwJxrZ","request_duration_ms":461}}'
- '{"last_request_metrics":{"request_id":"req_TcOgzUQyxdYFzW","request_duration_ms":573}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -33,7 +33,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:20 GMT
- Mon, 13 Sep 2021 11:25:29 GMT
Content-Type:
- application/json
Content-Length:
@ -53,18 +53,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_HoOhn7MKpeBtUk
- req_jkDRmPeTCWeUgo
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '4'
- '6'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pm_1J19Bo2sOmf47Nz9oXBxhBZR",
"id": "pm_1JZDHw2sOmf47Nz9ZDRFtdlo",
"object": "payment_method",
"billing_details": {
"address": {
@ -104,20 +104,20 @@ http_interactions:
},
"wallet": null
},
"created": 1623413420,
"created": 1631532328,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
}
recorded_at: Fri, 11 Jun 2021 12:10:20 GMT
recorded_at: Mon, 13 Sep 2021 11:25:29 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents
body:
encoding: UTF-8
string: payment_method=pm_1J19Bo2sOmf47Nz9oXBxhBZR&amount=5100&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8Di1wjdVktv5kt
string: payment_method=pm_1JZDHw2sOmf47Nz9ZDRFtdlo&amount=5100&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8Di1wjdVktv5kt
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -126,13 +126,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_HoOhn7MKpeBtUk","request_duration_ms":633}}'
- '{"last_request_metrics":{"request_id":"req_jkDRmPeTCWeUgo","request_duration_ms":717}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -145,11 +145,11 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:21 GMT
- Mon, 13 Sep 2021 11:25:30 GMT
Content-Type:
- application/json
Content-Length:
- '4259'
- '4258'
Connection:
- keep-alive
Access-Control-Allow-Credentials:
@ -165,18 +165,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_3FnQstJP9Rp9XR
- req_gvhFnRWBMHFVtl
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '8'
- '10'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pi_1J19Bo2sOmf47Nz9Jq9dKoTj",
"id": "pi_3JZDHx2sOmf47Nz90D14Mzxr",
"object": "payment_intent",
"amount": 5100,
"amount_capturable": 0,
@ -190,7 +190,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19Bp2sOmf47Nz9Ps4JF3xJ",
"id": "ch_3JZDHx2sOmf47Nz9010NdfRt",
"object": "charge",
"amount": 5100,
"amount_captured": 5100,
@ -198,7 +198,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19Bp2sOmf47Nz9PuVT48Lc",
"balance_transaction": "txn_3JZDHx2sOmf47Nz90DwzJqqB",
"billing_details": {
"address": {
"city": null,
@ -214,7 +214,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413421,
"created": 1631532329,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
@ -235,13 +235,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 11,
"risk_score": 4,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19Bo2sOmf47Nz9Jq9dKoTj",
"payment_method": "pm_1J19Bo2sOmf47Nz9oXBxhBZR",
"payment_intent": "pi_3JZDHx2sOmf47Nz90D14Mzxr",
"payment_method": "pm_1JZDHw2sOmf47Nz9ZDRFtdlo",
"payment_method_details": {
"card": {
"brand": "visa",
@ -265,7 +265,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19Bp2sOmf47Nz9Ps4JF3xJ/rcpt_JeS6R68FYH6P28VDGne8v1k1Jx1Hj3j",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDHx2sOmf47Nz9010NdfRt/rcpt_KDebvUvRBB01FEzD9m2pazfqrfF28ot",
"refunded": false,
"refunds": {
"object": "list",
@ -274,7 +274,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19Bp2sOmf47Nz9Ps4JF3xJ/refunds"
"url": "/v1/charges/ch_3JZDHx2sOmf47Nz9010NdfRt/refunds"
},
"review": null,
"shipping": null,
@ -289,11 +289,11 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19Bo2sOmf47Nz9Jq9dKoTj"
"url": "/v1/charges?payment_intent=pi_3JZDHx2sOmf47Nz90D14Mzxr"
},
"client_secret": "pi_1J19Bo2sOmf47Nz9Jq9dKoTj_secret_lqAV5Z0ilLrwtlpcYp9L6yiBJ",
"client_secret": "pi_3JZDHx2sOmf47Nz90D14Mzxr_secret_yHm5wrDM1vfI05FYmWdqtgAdJ",
"confirmation_method": "manual",
"created": 1623413420,
"created": 1631532329,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
@ -304,7 +304,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19Bo2sOmf47Nz9oXBxhBZR",
"payment_method": "pm_1JZDHw2sOmf47Nz9ZDRFtdlo",
"payment_method_options": {
"card": {
"installments": null,
@ -326,13 +326,13 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:10:22 GMT
recorded_at: Mon, 13 Sep 2021 11:25:30 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents/pi_1J19Bo2sOmf47Nz9Jq9dKoTj
uri: https://api.stripe.com/v1/payment_intents/pi_3JZDHx2sOmf47Nz90D14Mzxr
body:
encoding: UTF-8
string: description=Invoice+reference%3A+2106001%2FVL
string: description=Invoice+reference%3A+2109001%2FVL
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -341,13 +341,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_3FnQstJP9Rp9XR","request_duration_ms":1530}}'
- '{"last_request_metrics":{"request_id":"req_gvhFnRWBMHFVtl","request_duration_ms":1461}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -360,11 +360,11 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:22 GMT
- Mon, 13 Sep 2021 11:25:31 GMT
Content-Type:
- application/json
Content-Length:
- '4286'
- '4285'
Connection:
- keep-alive
Access-Control-Allow-Credentials:
@ -380,7 +380,7 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_XakpVhlXhUOPhF
- req_Gw7cg6OuiAXjH4
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
@ -391,7 +391,7 @@ http_interactions:
encoding: UTF-8
string: |
{
"id": "pi_1J19Bo2sOmf47Nz9Jq9dKoTj",
"id": "pi_3JZDHx2sOmf47Nz90D14Mzxr",
"object": "payment_intent",
"amount": 5100,
"amount_capturable": 0,
@ -405,7 +405,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19Bp2sOmf47Nz9Ps4JF3xJ",
"id": "ch_3JZDHx2sOmf47Nz9010NdfRt",
"object": "charge",
"amount": 5100,
"amount_captured": 5100,
@ -413,7 +413,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19Bp2sOmf47Nz9PuVT48Lc",
"balance_transaction": "txn_3JZDHx2sOmf47Nz90DwzJqqB",
"billing_details": {
"address": {
"city": null,
@ -429,7 +429,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413421,
"created": 1631532329,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
@ -450,13 +450,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 11,
"risk_score": 4,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19Bo2sOmf47Nz9Jq9dKoTj",
"payment_method": "pm_1J19Bo2sOmf47Nz9oXBxhBZR",
"payment_intent": "pi_3JZDHx2sOmf47Nz90D14Mzxr",
"payment_method": "pm_1JZDHw2sOmf47Nz9ZDRFtdlo",
"payment_method_details": {
"card": {
"brand": "visa",
@ -480,7 +480,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19Bp2sOmf47Nz9Ps4JF3xJ/rcpt_JeS6R68FYH6P28VDGne8v1k1Jx1Hj3j",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDHx2sOmf47Nz9010NdfRt/rcpt_KDebvUvRBB01FEzD9m2pazfqrfF28ot",
"refunded": false,
"refunds": {
"object": "list",
@ -489,7 +489,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19Bp2sOmf47Nz9Ps4JF3xJ/refunds"
"url": "/v1/charges/ch_3JZDHx2sOmf47Nz9010NdfRt/refunds"
},
"review": null,
"shipping": null,
@ -504,14 +504,14 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19Bo2sOmf47Nz9Jq9dKoTj"
"url": "/v1/charges?payment_intent=pi_3JZDHx2sOmf47Nz90D14Mzxr"
},
"client_secret": "pi_1J19Bo2sOmf47Nz9Jq9dKoTj_secret_lqAV5Z0ilLrwtlpcYp9L6yiBJ",
"client_secret": "pi_3JZDHx2sOmf47Nz90D14Mzxr_secret_yHm5wrDM1vfI05FYmWdqtgAdJ",
"confirmation_method": "manual",
"created": 1623413420,
"created": 1631532329,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": "Invoice reference: 2106001/VL",
"description": "Invoice reference: 2109001/VL",
"invoice": null,
"last_payment_error": null,
"livemode": false,
@ -519,7 +519,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19Bo2sOmf47Nz9oXBxhBZR",
"payment_method": "pm_1JZDHw2sOmf47Nz9ZDRFtdlo",
"payment_method_options": {
"card": {
"installments": null,
@ -541,5 +541,5 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:10:22 GMT
recorded_at: Mon, 13 Sep 2021 11:25:31 GMT
recorded_with: VCR 6.0.0

View File

@ -2,7 +2,7 @@
http_interactions:
- request:
method: get
uri: https://api.stripe.com/v1/payment_intents/pi_1J19Bk2sOmf47Nz9U2nrdVpa
uri: https://api.stripe.com/v1/payment_intents/pi_3JZDIB2sOmf47Nz91NCWzYP6
body:
encoding: US-ASCII
string: ''
@ -14,13 +14,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_CkEyaZtZeZiTlr","request_duration_ms":536}}'
- '{"last_request_metrics":{"request_id":"req_TAv2FNDcsNhZ0x","request_duration_ms":477}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -33,7 +33,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:19 GMT
- Mon, 13 Sep 2021 11:25:46 GMT
Content-Type:
- application/json
Content-Length:
@ -53,7 +53,7 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_opRsb0WDIwJxrZ
- req_kM3vfzGXrrL9Yq
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
@ -64,7 +64,7 @@ http_interactions:
encoding: UTF-8
string: |
{
"id": "pi_1J19Bk2sOmf47Nz9U2nrdVpa",
"id": "pi_3JZDIB2sOmf47Nz91NCWzYP6",
"object": "payment_intent",
"amount": 3825,
"amount_capturable": 0,
@ -78,7 +78,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19Bl2sOmf47Nz9d9lBfGrS",
"id": "ch_3JZDIB2sOmf47Nz91buHMX2j",
"object": "charge",
"amount": 3825,
"amount_captured": 3825,
@ -86,7 +86,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19Bl2sOmf47Nz9D4BAY7cR",
"balance_transaction": "txn_3JZDIB2sOmf47Nz9120KuoH9",
"billing_details": {
"address": {
"city": null,
@ -102,7 +102,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413417,
"created": 1631532343,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
@ -123,13 +123,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 26,
"risk_score": 32,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19Bk2sOmf47Nz9U2nrdVpa",
"payment_method": "pm_1J19Bk2sOmf47Nz9z6WoYUpM",
"payment_intent": "pi_3JZDIB2sOmf47Nz91NCWzYP6",
"payment_method": "pm_1JZDIA2sOmf47Nz9rl1nigpQ",
"payment_method_details": {
"card": {
"brand": "visa",
@ -153,7 +153,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19Bl2sOmf47Nz9d9lBfGrS/rcpt_JeS5Ro6whGQ5fxOg5qfb78oSXn36JTU",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDIB2sOmf47Nz91buHMX2j/rcpt_KDebb83SAs8TQggfARcBOMotuxQ1Vxj",
"refunded": false,
"refunds": {
"object": "list",
@ -162,7 +162,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19Bl2sOmf47Nz9d9lBfGrS/refunds"
"url": "/v1/charges/ch_3JZDIB2sOmf47Nz91buHMX2j/refunds"
},
"review": null,
"shipping": null,
@ -177,14 +177,14 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19Bk2sOmf47Nz9U2nrdVpa"
"url": "/v1/charges?payment_intent=pi_3JZDIB2sOmf47Nz91NCWzYP6"
},
"client_secret": "pi_1J19Bk2sOmf47Nz9U2nrdVpa_secret_PteyL7O8ejWSUdzx4VA2OnPjS",
"client_secret": "pi_3JZDIB2sOmf47Nz91NCWzYP6_secret_oIY9Vwdf4coECaCgx0zgmkYMF",
"confirmation_method": "manual",
"created": 1623413416,
"created": 1631532343,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": "Invoice reference: 2106001/VL",
"description": "Invoice reference: 2109001/VL",
"invoice": null,
"last_payment_error": null,
"livemode": false,
@ -192,7 +192,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19Bk2sOmf47Nz9z6WoYUpM",
"payment_method": "pm_1JZDIA2sOmf47Nz9rl1nigpQ",
"payment_method_options": {
"card": {
"installments": null,
@ -214,5 +214,5 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:10:19 GMT
recorded_at: Mon, 13 Sep 2021 11:25:46 GMT
recorded_with: VCR 6.0.0

View File

@ -14,13 +14,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_6u8nwFE3OSZsT4","request_duration_ms":597}}'
- '{"last_request_metrics":{"request_id":"req_tlpIDMIqln9wab","request_duration_ms":616}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -33,7 +33,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:16 GMT
- Mon, 13 Sep 2021 11:25:42 GMT
Content-Type:
- application/json
Content-Length:
@ -53,18 +53,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_7R5xUaJImmVkvi
- req_nAADKjXEme5vlz
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '4'
- '6'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pm_1J19Bk2sOmf47Nz9z6WoYUpM",
"id": "pm_1JZDIA2sOmf47Nz9rl1nigpQ",
"object": "payment_method",
"billing_details": {
"address": {
@ -104,20 +104,20 @@ http_interactions:
},
"wallet": null
},
"created": 1623413416,
"created": 1631532342,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
}
recorded_at: Fri, 11 Jun 2021 12:10:16 GMT
recorded_at: Mon, 13 Sep 2021 11:25:42 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents
body:
encoding: UTF-8
string: payment_method=pm_1J19Bk2sOmf47Nz9z6WoYUpM&amount=3825&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8Di1wjdVktv5kt
string: payment_method=pm_1JZDIA2sOmf47Nz9rl1nigpQ&amount=3825&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8Di1wjdVktv5kt
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -126,13 +126,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_7R5xUaJImmVkvi","request_duration_ms":661}}'
- '{"last_request_metrics":{"request_id":"req_nAADKjXEme5vlz","request_duration_ms":583}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -145,7 +145,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:18 GMT
- Mon, 13 Sep 2021 11:25:44 GMT
Content-Type:
- application/json
Content-Length:
@ -165,18 +165,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_acflCvRWyIVOtM
- req_9IAUcJuiq87CeO
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '8'
- '10'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pi_1J19Bk2sOmf47Nz9U2nrdVpa",
"id": "pi_3JZDIB2sOmf47Nz91NCWzYP6",
"object": "payment_intent",
"amount": 3825,
"amount_capturable": 0,
@ -190,7 +190,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19Bl2sOmf47Nz9d9lBfGrS",
"id": "ch_3JZDIB2sOmf47Nz91buHMX2j",
"object": "charge",
"amount": 3825,
"amount_captured": 3825,
@ -198,7 +198,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19Bl2sOmf47Nz9D4BAY7cR",
"balance_transaction": "txn_3JZDIB2sOmf47Nz9120KuoH9",
"billing_details": {
"address": {
"city": null,
@ -214,7 +214,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413417,
"created": 1631532343,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
@ -235,13 +235,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 26,
"risk_score": 32,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19Bk2sOmf47Nz9U2nrdVpa",
"payment_method": "pm_1J19Bk2sOmf47Nz9z6WoYUpM",
"payment_intent": "pi_3JZDIB2sOmf47Nz91NCWzYP6",
"payment_method": "pm_1JZDIA2sOmf47Nz9rl1nigpQ",
"payment_method_details": {
"card": {
"brand": "visa",
@ -265,7 +265,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19Bl2sOmf47Nz9d9lBfGrS/rcpt_JeS5Ro6whGQ5fxOg5qfb78oSXn36JTU",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDIB2sOmf47Nz91buHMX2j/rcpt_KDebb83SAs8TQggfARcBOMotuxQ1Vxj",
"refunded": false,
"refunds": {
"object": "list",
@ -274,7 +274,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19Bl2sOmf47Nz9d9lBfGrS/refunds"
"url": "/v1/charges/ch_3JZDIB2sOmf47Nz91buHMX2j/refunds"
},
"review": null,
"shipping": null,
@ -289,11 +289,11 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19Bk2sOmf47Nz9U2nrdVpa"
"url": "/v1/charges?payment_intent=pi_3JZDIB2sOmf47Nz91NCWzYP6"
},
"client_secret": "pi_1J19Bk2sOmf47Nz9U2nrdVpa_secret_PteyL7O8ejWSUdzx4VA2OnPjS",
"client_secret": "pi_3JZDIB2sOmf47Nz91NCWzYP6_secret_oIY9Vwdf4coECaCgx0zgmkYMF",
"confirmation_method": "manual",
"created": 1623413416,
"created": 1631532343,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
@ -304,7 +304,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19Bk2sOmf47Nz9z6WoYUpM",
"payment_method": "pm_1JZDIA2sOmf47Nz9rl1nigpQ",
"payment_method_options": {
"card": {
"installments": null,
@ -326,13 +326,13 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:10:18 GMT
recorded_at: Mon, 13 Sep 2021 11:25:44 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents/pi_1J19Bk2sOmf47Nz9U2nrdVpa
uri: https://api.stripe.com/v1/payment_intents/pi_3JZDIB2sOmf47Nz91NCWzYP6
body:
encoding: UTF-8
string: description=Invoice+reference%3A+2106001%2FVL
string: description=Invoice+reference%3A+2109001%2FVL
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -341,13 +341,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_acflCvRWyIVOtM","request_duration_ms":1774}}'
- '{"last_request_metrics":{"request_id":"req_9IAUcJuiq87CeO","request_duration_ms":1477}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -360,7 +360,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:18 GMT
- Mon, 13 Sep 2021 11:25:44 GMT
Content-Type:
- application/json
Content-Length:
@ -380,7 +380,7 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_CkEyaZtZeZiTlr
- req_TAv2FNDcsNhZ0x
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
@ -391,7 +391,7 @@ http_interactions:
encoding: UTF-8
string: |
{
"id": "pi_1J19Bk2sOmf47Nz9U2nrdVpa",
"id": "pi_3JZDIB2sOmf47Nz91NCWzYP6",
"object": "payment_intent",
"amount": 3825,
"amount_capturable": 0,
@ -405,7 +405,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19Bl2sOmf47Nz9d9lBfGrS",
"id": "ch_3JZDIB2sOmf47Nz91buHMX2j",
"object": "charge",
"amount": 3825,
"amount_captured": 3825,
@ -413,7 +413,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19Bl2sOmf47Nz9D4BAY7cR",
"balance_transaction": "txn_3JZDIB2sOmf47Nz9120KuoH9",
"billing_details": {
"address": {
"city": null,
@ -429,7 +429,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413417,
"created": 1631532343,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
@ -450,13 +450,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 26,
"risk_score": 32,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19Bk2sOmf47Nz9U2nrdVpa",
"payment_method": "pm_1J19Bk2sOmf47Nz9z6WoYUpM",
"payment_intent": "pi_3JZDIB2sOmf47Nz91NCWzYP6",
"payment_method": "pm_1JZDIA2sOmf47Nz9rl1nigpQ",
"payment_method_details": {
"card": {
"brand": "visa",
@ -480,7 +480,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19Bl2sOmf47Nz9d9lBfGrS/rcpt_JeS5Ro6whGQ5fxOg5qfb78oSXn36JTU",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDIB2sOmf47Nz91buHMX2j/rcpt_KDebb83SAs8TQggfARcBOMotuxQ1Vxj",
"refunded": false,
"refunds": {
"object": "list",
@ -489,7 +489,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19Bl2sOmf47Nz9d9lBfGrS/refunds"
"url": "/v1/charges/ch_3JZDIB2sOmf47Nz91buHMX2j/refunds"
},
"review": null,
"shipping": null,
@ -504,14 +504,14 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19Bk2sOmf47Nz9U2nrdVpa"
"url": "/v1/charges?payment_intent=pi_3JZDIB2sOmf47Nz91NCWzYP6"
},
"client_secret": "pi_1J19Bk2sOmf47Nz9U2nrdVpa_secret_PteyL7O8ejWSUdzx4VA2OnPjS",
"client_secret": "pi_3JZDIB2sOmf47Nz91NCWzYP6_secret_oIY9Vwdf4coECaCgx0zgmkYMF",
"confirmation_method": "manual",
"created": 1623413416,
"created": 1631532343,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": "Invoice reference: 2106001/VL",
"description": "Invoice reference: 2109001/VL",
"invoice": null,
"last_payment_error": null,
"livemode": false,
@ -519,7 +519,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19Bk2sOmf47Nz9z6WoYUpM",
"payment_method": "pm_1JZDIA2sOmf47Nz9rl1nigpQ",
"payment_method_options": {
"card": {
"installments": null,
@ -541,5 +541,5 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:10:18 GMT
recorded_at: Mon, 13 Sep 2021 11:25:44 GMT
recorded_with: VCR 6.0.0

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -14,13 +14,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_gqkPH6CSd618Au","request_duration_ms":1478}}'
- '{"last_request_metrics":{"request_id":"req_Gw7cg6OuiAXjH4","request_duration_ms":571}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -33,7 +33,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:34 GMT
- Mon, 13 Sep 2021 11:25:32 GMT
Content-Type:
- application/json
Content-Length:
@ -53,18 +53,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_FcgDWIq3kqS48H
- req_OexXpoPr6h8ZiV
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '4'
- '6'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pm_1J19C12sOmf47Nz99tmSZZBw",
"id": "pm_1JZDI02sOmf47Nz9a7NtZua2",
"object": "payment_method",
"billing_details": {
"address": {
@ -104,14 +104,14 @@ http_interactions:
},
"wallet": null
},
"created": 1623413434,
"created": 1631532332,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
}
recorded_at: Fri, 11 Jun 2021 12:10:34 GMT
recorded_at: Mon, 13 Sep 2021 11:25:32 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_methods
@ -126,13 +126,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_FcgDWIq3kqS48H","request_duration_ms":729}}'
- '{"last_request_metrics":{"request_id":"req_OexXpoPr6h8ZiV","request_duration_ms":652}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -145,7 +145,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:35 GMT
- Mon, 13 Sep 2021 11:25:33 GMT
Content-Type:
- application/json
Content-Length:
@ -165,18 +165,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_iLsFVasH8kGMo7
- req_amT9NxCRaztTRy
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '4'
- '6'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pm_1J19C22sOmf47Nz9mziFAxkf",
"id": "pm_1JZDI02sOmf47Nz9NXwYnE70",
"object": "payment_method",
"billing_details": {
"address": {
@ -216,12 +216,12 @@ http_interactions:
},
"wallet": null
},
"created": 1623413434,
"created": 1631532333,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
}
recorded_at: Fri, 11 Jun 2021 12:10:35 GMT
recorded_at: Mon, 13 Sep 2021 11:25:33 GMT
recorded_with: VCR 6.0.0

View File

@ -14,13 +14,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_L7oB3NXiThfKHq","request_duration_ms":495}}'
- '{"last_request_metrics":{"request_id":"req_ff4C1pdGb6nknP","request_duration_ms":319}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -33,7 +33,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:43 GMT
- Mon, 13 Sep 2021 11:24:43 GMT
Content-Type:
- application/json
Content-Length:
@ -53,18 +53,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_fSlilY4QmcRBrG
- req_zkF6VNi3JZKVcz
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '4'
- '6'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pm_1J19CA2sOmf47Nz9QAcGcmzm",
"id": "pm_1JZDHD2sOmf47Nz9gkV8x8n4",
"object": "payment_method",
"billing_details": {
"address": {
@ -104,20 +104,20 @@ http_interactions:
},
"wallet": null
},
"created": 1623413443,
"created": 1631532283,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
}
recorded_at: Fri, 11 Jun 2021 12:10:43 GMT
recorded_at: Mon, 13 Sep 2021 11:24:43 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents
body:
encoding: UTF-8
string: payment_method=pm_1J19CA2sOmf47Nz9QAcGcmzm&amount=42350&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8CzNtM08NVlSGN
string: payment_method=pm_1JZDHD2sOmf47Nz9gkV8x8n4&amount=42350&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8CzNtM08NVlSGN
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -126,13 +126,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_fSlilY4QmcRBrG","request_duration_ms":667}}'
- '{"last_request_metrics":{"request_id":"req_zkF6VNi3JZKVcz","request_duration_ms":634}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -145,7 +145,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:44 GMT
- Mon, 13 Sep 2021 11:24:44 GMT
Content-Type:
- application/json
Content-Length:
@ -165,18 +165,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_qczTpZHX696x1C
- req_bVppWmvepCz8gz
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '8'
- '10'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pi_1J19CB2sOmf47Nz95Pnue8GO",
"id": "pi_3JZDHD2sOmf47Nz91JXycB07",
"object": "payment_intent",
"amount": 42350,
"amount_capturable": 0,
@ -190,7 +190,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19CC2sOmf47Nz9zKzuGzaE",
"id": "ch_3JZDHD2sOmf47Nz91XBq9JsI",
"object": "charge",
"amount": 42350,
"amount_captured": 42350,
@ -198,7 +198,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19CC2sOmf47Nz9Ho6vuXlz",
"balance_transaction": "txn_3JZDHD2sOmf47Nz91huJwldE",
"billing_details": {
"address": {
"city": null,
@ -214,7 +214,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413444,
"created": 1631532284,
"currency": "usd",
"customer": "cus_8CzNtM08NVlSGN",
"description": null,
@ -235,13 +235,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 25,
"risk_score": 50,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19CB2sOmf47Nz95Pnue8GO",
"payment_method": "pm_1J19CA2sOmf47Nz9QAcGcmzm",
"payment_intent": "pi_3JZDHD2sOmf47Nz91JXycB07",
"payment_method": "pm_1JZDHD2sOmf47Nz9gkV8x8n4",
"payment_method_details": {
"card": {
"brand": "visa",
@ -265,7 +265,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19CC2sOmf47Nz9zKzuGzaE/rcpt_JeS6wGn2PItr5O1sd4ygQPfg69amR09",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDHD2sOmf47Nz91XBq9JsI/rcpt_KDeaNSPiSQQ4UERuDdFE7z2YTr8L0ko",
"refunded": false,
"refunds": {
"object": "list",
@ -274,7 +274,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19CC2sOmf47Nz9zKzuGzaE/refunds"
"url": "/v1/charges/ch_3JZDHD2sOmf47Nz91XBq9JsI/refunds"
},
"review": null,
"shipping": null,
@ -289,11 +289,11 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19CB2sOmf47Nz95Pnue8GO"
"url": "/v1/charges?payment_intent=pi_3JZDHD2sOmf47Nz91JXycB07"
},
"client_secret": "pi_1J19CB2sOmf47Nz95Pnue8GO_secret_3BnhHPZLeU5k60tmFnNxF7rHD",
"client_secret": "pi_3JZDHD2sOmf47Nz91JXycB07_secret_OnlohZCUv9xzfGxr4pI9OhXkz",
"confirmation_method": "manual",
"created": 1623413443,
"created": 1631532283,
"currency": "usd",
"customer": "cus_8CzNtM08NVlSGN",
"description": null,
@ -304,7 +304,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19CA2sOmf47Nz9QAcGcmzm",
"payment_method": "pm_1JZDHD2sOmf47Nz9gkV8x8n4",
"payment_method_options": {
"card": {
"installments": null,
@ -326,13 +326,13 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:10:45 GMT
recorded_at: Mon, 13 Sep 2021 11:24:44 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents/pi_1J19CB2sOmf47Nz95Pnue8GO
uri: https://api.stripe.com/v1/payment_intents/pi_3JZDHD2sOmf47Nz91JXycB07
body:
encoding: UTF-8
string: description=Invoice+reference%3A+2106001%2FVL
string: description=Invoice+reference%3A+2109001%2FVL
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -341,13 +341,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_qczTpZHX696x1C","request_duration_ms":1604}}'
- '{"last_request_metrics":{"request_id":"req_bVppWmvepCz8gz","request_duration_ms":1476}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -360,7 +360,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:45 GMT
- Mon, 13 Sep 2021 11:24:45 GMT
Content-Type:
- application/json
Content-Length:
@ -380,7 +380,7 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_LGyzZDOSFlxowU
- req_I5CpmWBpZ1WAf8
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
@ -391,7 +391,7 @@ http_interactions:
encoding: UTF-8
string: |
{
"id": "pi_1J19CB2sOmf47Nz95Pnue8GO",
"id": "pi_3JZDHD2sOmf47Nz91JXycB07",
"object": "payment_intent",
"amount": 42350,
"amount_capturable": 0,
@ -405,7 +405,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19CC2sOmf47Nz9zKzuGzaE",
"id": "ch_3JZDHD2sOmf47Nz91XBq9JsI",
"object": "charge",
"amount": 42350,
"amount_captured": 42350,
@ -413,7 +413,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19CC2sOmf47Nz9Ho6vuXlz",
"balance_transaction": "txn_3JZDHD2sOmf47Nz91huJwldE",
"billing_details": {
"address": {
"city": null,
@ -429,7 +429,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413444,
"created": 1631532284,
"currency": "usd",
"customer": "cus_8CzNtM08NVlSGN",
"description": null,
@ -450,13 +450,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 25,
"risk_score": 50,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19CB2sOmf47Nz95Pnue8GO",
"payment_method": "pm_1J19CA2sOmf47Nz9QAcGcmzm",
"payment_intent": "pi_3JZDHD2sOmf47Nz91JXycB07",
"payment_method": "pm_1JZDHD2sOmf47Nz9gkV8x8n4",
"payment_method_details": {
"card": {
"brand": "visa",
@ -480,7 +480,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19CC2sOmf47Nz9zKzuGzaE/rcpt_JeS6wGn2PItr5O1sd4ygQPfg69amR09",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDHD2sOmf47Nz91XBq9JsI/rcpt_KDeaNSPiSQQ4UERuDdFE7z2YTr8L0ko",
"refunded": false,
"refunds": {
"object": "list",
@ -489,7 +489,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19CC2sOmf47Nz9zKzuGzaE/refunds"
"url": "/v1/charges/ch_3JZDHD2sOmf47Nz91XBq9JsI/refunds"
},
"review": null,
"shipping": null,
@ -504,14 +504,14 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19CB2sOmf47Nz95Pnue8GO"
"url": "/v1/charges?payment_intent=pi_3JZDHD2sOmf47Nz91JXycB07"
},
"client_secret": "pi_1J19CB2sOmf47Nz95Pnue8GO_secret_3BnhHPZLeU5k60tmFnNxF7rHD",
"client_secret": "pi_3JZDHD2sOmf47Nz91JXycB07_secret_OnlohZCUv9xzfGxr4pI9OhXkz",
"confirmation_method": "manual",
"created": 1623413443,
"created": 1631532283,
"currency": "usd",
"customer": "cus_8CzNtM08NVlSGN",
"description": "Invoice reference: 2106001/VL",
"description": "Invoice reference: 2109001/VL",
"invoice": null,
"last_payment_error": null,
"livemode": false,
@ -519,7 +519,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19CA2sOmf47Nz9QAcGcmzm",
"payment_method": "pm_1JZDHD2sOmf47Nz9gkV8x8n4",
"payment_method_options": {
"card": {
"installments": null,
@ -541,5 +541,5 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:10:45 GMT
recorded_at: Mon, 13 Sep 2021 11:24:45 GMT
recorded_with: VCR 6.0.0

View File

@ -2,7 +2,7 @@
http_interactions:
- request:
method: get
uri: https://api.stripe.com/v1/payment_intents/pi_1J19CB2sOmf47Nz95Pnue8GO
uri: https://api.stripe.com/v1/payment_intents/pi_3JZDHD2sOmf47Nz91JXycB07
body:
encoding: US-ASCII
string: ''
@ -14,13 +14,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_LGyzZDOSFlxowU","request_duration_ms":464}}'
- '{"last_request_metrics":{"request_id":"req_I5CpmWBpZ1WAf8","request_duration_ms":472}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -33,7 +33,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:10:46 GMT
- Mon, 13 Sep 2021 11:24:46 GMT
Content-Type:
- application/json
Content-Length:
@ -53,7 +53,7 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_oXt918i1vLvnCA
- req_TMXYBFdX8Zu0bv
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
@ -64,7 +64,7 @@ http_interactions:
encoding: UTF-8
string: |
{
"id": "pi_1J19CB2sOmf47Nz95Pnue8GO",
"id": "pi_3JZDHD2sOmf47Nz91JXycB07",
"object": "payment_intent",
"amount": 42350,
"amount_capturable": 0,
@ -78,7 +78,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19CC2sOmf47Nz9zKzuGzaE",
"id": "ch_3JZDHD2sOmf47Nz91XBq9JsI",
"object": "charge",
"amount": 42350,
"amount_captured": 42350,
@ -86,7 +86,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19CC2sOmf47Nz9Ho6vuXlz",
"balance_transaction": "txn_3JZDHD2sOmf47Nz91huJwldE",
"billing_details": {
"address": {
"city": null,
@ -102,7 +102,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413444,
"created": 1631532284,
"currency": "usd",
"customer": "cus_8CzNtM08NVlSGN",
"description": null,
@ -123,13 +123,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 25,
"risk_score": 50,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19CB2sOmf47Nz95Pnue8GO",
"payment_method": "pm_1J19CA2sOmf47Nz9QAcGcmzm",
"payment_intent": "pi_3JZDHD2sOmf47Nz91JXycB07",
"payment_method": "pm_1JZDHD2sOmf47Nz9gkV8x8n4",
"payment_method_details": {
"card": {
"brand": "visa",
@ -153,7 +153,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19CC2sOmf47Nz9zKzuGzaE/rcpt_JeS6wGn2PItr5O1sd4ygQPfg69amR09",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDHD2sOmf47Nz91XBq9JsI/rcpt_KDeaNSPiSQQ4UERuDdFE7z2YTr8L0ko",
"refunded": false,
"refunds": {
"object": "list",
@ -162,7 +162,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19CC2sOmf47Nz9zKzuGzaE/refunds"
"url": "/v1/charges/ch_3JZDHD2sOmf47Nz91XBq9JsI/refunds"
},
"review": null,
"shipping": null,
@ -177,14 +177,14 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19CB2sOmf47Nz95Pnue8GO"
"url": "/v1/charges?payment_intent=pi_3JZDHD2sOmf47Nz91JXycB07"
},
"client_secret": "pi_1J19CB2sOmf47Nz95Pnue8GO_secret_3BnhHPZLeU5k60tmFnNxF7rHD",
"client_secret": "pi_3JZDHD2sOmf47Nz91JXycB07_secret_OnlohZCUv9xzfGxr4pI9OhXkz",
"confirmation_method": "manual",
"created": 1623413443,
"created": 1631532283,
"currency": "usd",
"customer": "cus_8CzNtM08NVlSGN",
"description": "Invoice reference: 2106001/VL",
"description": "Invoice reference: 2109001/VL",
"invoice": null,
"last_payment_error": null,
"livemode": false,
@ -192,7 +192,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19CA2sOmf47Nz9QAcGcmzm",
"payment_method": "pm_1JZDHD2sOmf47Nz9gkV8x8n4",
"payment_method_options": {
"card": {
"installments": null,
@ -214,5 +214,5 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:10:46 GMT
recorded_at: Mon, 13 Sep 2021 11:24:46 GMT
recorded_with: VCR 6.0.0

File diff suppressed because one or more lines are too long

View File

@ -14,13 +14,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_qIUfIdUDRc3Mw0","request_duration_ms":692}}'
- '{"last_request_metrics":{"request_id":"req_oWh8ntmpIyeISE","request_duration_ms":472}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -33,7 +33,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:09:04 GMT
- Mon, 13 Sep 2021 11:24:50 GMT
Content-Type:
- application/json
Content-Length:
@ -53,18 +53,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_HBrUqwklJKtARM
- req_Uc4oYRMNv3ePZh
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '4'
- '6'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pm_1J19Aa2sOmf47Nz9YYSWwQVx",
"id": "pm_1JZDHK2sOmf47Nz9Oxuvov6T",
"object": "payment_method",
"billing_details": {
"address": {
@ -104,12 +104,12 @@ http_interactions:
},
"wallet": null
},
"created": 1623413344,
"created": 1631532290,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
}
recorded_at: Fri, 11 Jun 2021 12:09:04 GMT
recorded_at: Mon, 13 Sep 2021 11:24:50 GMT
recorded_with: VCR 6.0.0

View File

@ -14,13 +14,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_0V6xYAVUmDrPet","request_duration_ms":625}}'
- '{"last_request_metrics":{"request_id":"req_Uc4oYRMNv3ePZh","request_duration_ms":595}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -33,7 +33,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:09:12 GMT
- Mon, 13 Sep 2021 11:24:51 GMT
Content-Type:
- application/json
Content-Length:
@ -53,18 +53,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_tYL1AMKfStlO8R
- req_32RpamNuXVtnNn
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '4'
- '6'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pm_1J19Ai2sOmf47Nz9uWHuxZ8k",
"id": "pm_1JZDHL2sOmf47Nz9jdtMuIiJ",
"object": "payment_method",
"billing_details": {
"address": {
@ -104,20 +104,20 @@ http_interactions:
},
"wallet": null
},
"created": 1623413352,
"created": 1631532291,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
}
recorded_at: Fri, 11 Jun 2021 12:09:12 GMT
recorded_at: Mon, 13 Sep 2021 11:24:51 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents
body:
encoding: UTF-8
string: payment_method=pm_1J19Ai2sOmf47Nz9uWHuxZ8k&amount=3000&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8Di1wjdVktv5kt
string: payment_method=pm_1JZDHL2sOmf47Nz9jdtMuIiJ&amount=3000&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8Di1wjdVktv5kt
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -126,13 +126,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_tYL1AMKfStlO8R","request_duration_ms":625}}'
- '{"last_request_metrics":{"request_id":"req_32RpamNuXVtnNn","request_duration_ms":666}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -145,11 +145,11 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:09:14 GMT
- Mon, 13 Sep 2021 11:24:53 GMT
Content-Type:
- application/json
Content-Length:
- '4259'
- '4258'
Connection:
- keep-alive
Access-Control-Allow-Credentials:
@ -165,18 +165,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_Ul7gAWa5VKha6H
- req_2p6eoejyy3jLcd
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '8'
- '10'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pi_1J19Ai2sOmf47Nz9pZqIwkFg",
"id": "pi_3JZDHL2sOmf47Nz91K6wzFDZ",
"object": "payment_intent",
"amount": 3000,
"amount_capturable": 0,
@ -190,7 +190,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19Aj2sOmf47Nz91o4BAj1T",
"id": "ch_3JZDHL2sOmf47Nz918ZLH0Cy",
"object": "charge",
"amount": 3000,
"amount_captured": 3000,
@ -198,7 +198,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19Aj2sOmf47Nz9b4Lksm36",
"balance_transaction": "txn_3JZDHL2sOmf47Nz91knBWLoV",
"billing_details": {
"address": {
"city": null,
@ -214,7 +214,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413353,
"created": 1631532292,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
@ -235,13 +235,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 39,
"risk_score": 6,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19Ai2sOmf47Nz9pZqIwkFg",
"payment_method": "pm_1J19Ai2sOmf47Nz9uWHuxZ8k",
"payment_intent": "pi_3JZDHL2sOmf47Nz91K6wzFDZ",
"payment_method": "pm_1JZDHL2sOmf47Nz9jdtMuIiJ",
"payment_method_details": {
"card": {
"brand": "visa",
@ -265,7 +265,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19Aj2sOmf47Nz91o4BAj1T/rcpt_JeS4hKozkNLtAZ8PW5b64g5PWK56hFY",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDHL2sOmf47Nz918ZLH0Cy/rcpt_KDeaaX4V9iZl6X7UF9lyQpufQLzHmGu",
"refunded": false,
"refunds": {
"object": "list",
@ -274,7 +274,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19Aj2sOmf47Nz91o4BAj1T/refunds"
"url": "/v1/charges/ch_3JZDHL2sOmf47Nz918ZLH0Cy/refunds"
},
"review": null,
"shipping": null,
@ -289,11 +289,11 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19Ai2sOmf47Nz9pZqIwkFg"
"url": "/v1/charges?payment_intent=pi_3JZDHL2sOmf47Nz91K6wzFDZ"
},
"client_secret": "pi_1J19Ai2sOmf47Nz9pZqIwkFg_secret_hFTrCs4qBeKreBGaNBJYLoCAv",
"client_secret": "pi_3JZDHL2sOmf47Nz91K6wzFDZ_secret_G5n5P7aZTcUYo9OZD3XYgZyUX",
"confirmation_method": "manual",
"created": 1623413352,
"created": 1631532291,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
@ -304,7 +304,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19Ai2sOmf47Nz9uWHuxZ8k",
"payment_method": "pm_1JZDHL2sOmf47Nz9jdtMuIiJ",
"payment_method_options": {
"card": {
"installments": null,
@ -326,13 +326,13 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:09:14 GMT
recorded_at: Mon, 13 Sep 2021 11:24:53 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents/pi_1J19Ai2sOmf47Nz9pZqIwkFg
uri: https://api.stripe.com/v1/payment_intents/pi_3JZDHL2sOmf47Nz91K6wzFDZ
body:
encoding: UTF-8
string: description=Invoice+reference%3A+2106001%2FVL
string: description=Invoice+reference%3A+2109001%2FVL
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -341,13 +341,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_Ul7gAWa5VKha6H","request_duration_ms":1542}}'
- '{"last_request_metrics":{"request_id":"req_2p6eoejyy3jLcd","request_duration_ms":2130}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -360,11 +360,11 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:09:14 GMT
- Mon, 13 Sep 2021 11:24:54 GMT
Content-Type:
- application/json
Content-Length:
- '4286'
- '4285'
Connection:
- keep-alive
Access-Control-Allow-Credentials:
@ -380,7 +380,7 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_inpFMpgIbPrF6S
- req_cgnARwO4Ev5LiK
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
@ -391,7 +391,7 @@ http_interactions:
encoding: UTF-8
string: |
{
"id": "pi_1J19Ai2sOmf47Nz9pZqIwkFg",
"id": "pi_3JZDHL2sOmf47Nz91K6wzFDZ",
"object": "payment_intent",
"amount": 3000,
"amount_capturable": 0,
@ -405,7 +405,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19Aj2sOmf47Nz91o4BAj1T",
"id": "ch_3JZDHL2sOmf47Nz918ZLH0Cy",
"object": "charge",
"amount": 3000,
"amount_captured": 3000,
@ -413,7 +413,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19Aj2sOmf47Nz9b4Lksm36",
"balance_transaction": "txn_3JZDHL2sOmf47Nz91knBWLoV",
"billing_details": {
"address": {
"city": null,
@ -429,7 +429,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413353,
"created": 1631532292,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
@ -450,13 +450,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 39,
"risk_score": 6,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19Ai2sOmf47Nz9pZqIwkFg",
"payment_method": "pm_1J19Ai2sOmf47Nz9uWHuxZ8k",
"payment_intent": "pi_3JZDHL2sOmf47Nz91K6wzFDZ",
"payment_method": "pm_1JZDHL2sOmf47Nz9jdtMuIiJ",
"payment_method_details": {
"card": {
"brand": "visa",
@ -480,7 +480,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19Aj2sOmf47Nz91o4BAj1T/rcpt_JeS4hKozkNLtAZ8PW5b64g5PWK56hFY",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDHL2sOmf47Nz918ZLH0Cy/rcpt_KDeaaX4V9iZl6X7UF9lyQpufQLzHmGu",
"refunded": false,
"refunds": {
"object": "list",
@ -489,7 +489,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19Aj2sOmf47Nz91o4BAj1T/refunds"
"url": "/v1/charges/ch_3JZDHL2sOmf47Nz918ZLH0Cy/refunds"
},
"review": null,
"shipping": null,
@ -504,14 +504,14 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19Ai2sOmf47Nz9pZqIwkFg"
"url": "/v1/charges?payment_intent=pi_3JZDHL2sOmf47Nz91K6wzFDZ"
},
"client_secret": "pi_1J19Ai2sOmf47Nz9pZqIwkFg_secret_hFTrCs4qBeKreBGaNBJYLoCAv",
"client_secret": "pi_3JZDHL2sOmf47Nz91K6wzFDZ_secret_G5n5P7aZTcUYo9OZD3XYgZyUX",
"confirmation_method": "manual",
"created": 1623413352,
"created": 1631532291,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": "Invoice reference: 2106001/VL",
"description": "Invoice reference: 2109001/VL",
"invoice": null,
"last_payment_error": null,
"livemode": false,
@ -519,7 +519,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19Ai2sOmf47Nz9uWHuxZ8k",
"payment_method": "pm_1JZDHL2sOmf47Nz9jdtMuIiJ",
"payment_method_options": {
"card": {
"installments": null,
@ -541,5 +541,5 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:09:14 GMT
recorded_at: Mon, 13 Sep 2021 11:24:54 GMT
recorded_with: VCR 6.0.0

View File

@ -14,13 +14,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_G0tnm0VQO3r3dU","request_duration_ms":373}}'
- '{"last_request_metrics":{"request_id":"req_TMXYBFdX8Zu0bv","request_duration_ms":458}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -33,7 +33,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:09:08 GMT
- Mon, 13 Sep 2021 11:24:47 GMT
Content-Type:
- application/json
Content-Length:
@ -53,18 +53,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_X40OMk9FvKQB5A
- req_yrsZPbab18G65b
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '4'
- '6'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pm_1J19Ae2sOmf47Nz9yua627ey",
"id": "pm_1JZDHH2sOmf47Nz90eZzgydw",
"object": "payment_method",
"billing_details": {
"address": {
@ -104,20 +104,20 @@ http_interactions:
},
"wallet": null
},
"created": 1623413348,
"created": 1631532287,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
}
recorded_at: Fri, 11 Jun 2021 12:09:08 GMT
recorded_at: Mon, 13 Sep 2021 11:24:47 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents
body:
encoding: UTF-8
string: payment_method=pm_1J19Ae2sOmf47Nz9yua627ey&amount=1000&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8CzNtM08NVlSGN
string: payment_method=pm_1JZDHH2sOmf47Nz90eZzgydw&amount=1000&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8CzNtM08NVlSGN
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -126,13 +126,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_X40OMk9FvKQB5A","request_duration_ms":773}}'
- '{"last_request_metrics":{"request_id":"req_yrsZPbab18G65b","request_duration_ms":682}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -145,7 +145,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:09:10 GMT
- Mon, 13 Sep 2021 11:24:49 GMT
Content-Type:
- application/json
Content-Length:
@ -165,18 +165,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_wLEuitfaayuEHb
- req_ryRZkh19UFPIWG
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '8'
- '10'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pi_1J19Af2sOmf47Nz9VOsV5HkN",
"id": "pi_3JZDHH2sOmf47Nz901lMyxhq",
"object": "payment_intent",
"amount": 1000,
"amount_capturable": 0,
@ -190,7 +190,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19Af2sOmf47Nz9MYMkV7UD",
"id": "ch_3JZDHH2sOmf47Nz902gVdcgC",
"object": "charge",
"amount": 1000,
"amount_captured": 1000,
@ -198,7 +198,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19Ag2sOmf47Nz9fTiNaIh8",
"balance_transaction": "txn_3JZDHH2sOmf47Nz90krQzxat",
"billing_details": {
"address": {
"city": null,
@ -214,7 +214,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413349,
"created": 1631532288,
"currency": "usd",
"customer": "cus_8CzNtM08NVlSGN",
"description": null,
@ -235,13 +235,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 45,
"risk_score": 48,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19Af2sOmf47Nz9VOsV5HkN",
"payment_method": "pm_1J19Ae2sOmf47Nz9yua627ey",
"payment_intent": "pi_3JZDHH2sOmf47Nz901lMyxhq",
"payment_method": "pm_1JZDHH2sOmf47Nz90eZzgydw",
"payment_method_details": {
"card": {
"brand": "visa",
@ -265,7 +265,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19Af2sOmf47Nz9MYMkV7UD/rcpt_JeS4Sb4relsWCBTazwYV1SQ77PqL9NY",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDHH2sOmf47Nz902gVdcgC/rcpt_KDeaQ0F73BHvJQ39FLjsqeB6851wgav",
"refunded": false,
"refunds": {
"object": "list",
@ -274,7 +274,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19Af2sOmf47Nz9MYMkV7UD/refunds"
"url": "/v1/charges/ch_3JZDHH2sOmf47Nz902gVdcgC/refunds"
},
"review": null,
"shipping": null,
@ -289,11 +289,11 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19Af2sOmf47Nz9VOsV5HkN"
"url": "/v1/charges?payment_intent=pi_3JZDHH2sOmf47Nz901lMyxhq"
},
"client_secret": "pi_1J19Af2sOmf47Nz9VOsV5HkN_secret_UjJa9Jo5YhvxAF9e0Q7by6VoI",
"client_secret": "pi_3JZDHH2sOmf47Nz901lMyxhq_secret_KQIKgB0tMOeM5mIIcVqfINKKz",
"confirmation_method": "manual",
"created": 1623413349,
"created": 1631532287,
"currency": "usd",
"customer": "cus_8CzNtM08NVlSGN",
"description": null,
@ -304,7 +304,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19Ae2sOmf47Nz9yua627ey",
"payment_method": "pm_1JZDHH2sOmf47Nz90eZzgydw",
"payment_method_options": {
"card": {
"installments": null,
@ -326,13 +326,13 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:09:10 GMT
recorded_at: Mon, 13 Sep 2021 11:24:49 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents/pi_1J19Af2sOmf47Nz9VOsV5HkN
uri: https://api.stripe.com/v1/payment_intents/pi_3JZDHH2sOmf47Nz901lMyxhq
body:
encoding: UTF-8
string: description=Invoice+reference%3A+2106001%2FVL
string: description=Invoice+reference%3A+2109001%2FVL
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -341,13 +341,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_wLEuitfaayuEHb","request_duration_ms":2080}}'
- '{"last_request_metrics":{"request_id":"req_ryRZkh19UFPIWG","request_duration_ms":1490}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -360,7 +360,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:09:11 GMT
- Mon, 13 Sep 2021 11:24:49 GMT
Content-Type:
- application/json
Content-Length:
@ -380,7 +380,7 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_0V6xYAVUmDrPet
- req_oWh8ntmpIyeISE
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
@ -391,7 +391,7 @@ http_interactions:
encoding: UTF-8
string: |
{
"id": "pi_1J19Af2sOmf47Nz9VOsV5HkN",
"id": "pi_3JZDHH2sOmf47Nz901lMyxhq",
"object": "payment_intent",
"amount": 1000,
"amount_capturable": 0,
@ -405,7 +405,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19Af2sOmf47Nz9MYMkV7UD",
"id": "ch_3JZDHH2sOmf47Nz902gVdcgC",
"object": "charge",
"amount": 1000,
"amount_captured": 1000,
@ -413,7 +413,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19Ag2sOmf47Nz9fTiNaIh8",
"balance_transaction": "txn_3JZDHH2sOmf47Nz90krQzxat",
"billing_details": {
"address": {
"city": null,
@ -429,7 +429,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413349,
"created": 1631532288,
"currency": "usd",
"customer": "cus_8CzNtM08NVlSGN",
"description": null,
@ -450,13 +450,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 45,
"risk_score": 48,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19Af2sOmf47Nz9VOsV5HkN",
"payment_method": "pm_1J19Ae2sOmf47Nz9yua627ey",
"payment_intent": "pi_3JZDHH2sOmf47Nz901lMyxhq",
"payment_method": "pm_1JZDHH2sOmf47Nz90eZzgydw",
"payment_method_details": {
"card": {
"brand": "visa",
@ -480,7 +480,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19Af2sOmf47Nz9MYMkV7UD/rcpt_JeS4Sb4relsWCBTazwYV1SQ77PqL9NY",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDHH2sOmf47Nz902gVdcgC/rcpt_KDeaQ0F73BHvJQ39FLjsqeB6851wgav",
"refunded": false,
"refunds": {
"object": "list",
@ -489,7 +489,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19Af2sOmf47Nz9MYMkV7UD/refunds"
"url": "/v1/charges/ch_3JZDHH2sOmf47Nz902gVdcgC/refunds"
},
"review": null,
"shipping": null,
@ -504,14 +504,14 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19Af2sOmf47Nz9VOsV5HkN"
"url": "/v1/charges?payment_intent=pi_3JZDHH2sOmf47Nz901lMyxhq"
},
"client_secret": "pi_1J19Af2sOmf47Nz9VOsV5HkN_secret_UjJa9Jo5YhvxAF9e0Q7by6VoI",
"client_secret": "pi_3JZDHH2sOmf47Nz901lMyxhq_secret_KQIKgB0tMOeM5mIIcVqfINKKz",
"confirmation_method": "manual",
"created": 1623413349,
"created": 1631532287,
"currency": "usd",
"customer": "cus_8CzNtM08NVlSGN",
"description": "Invoice reference: 2106001/VL",
"description": "Invoice reference: 2109001/VL",
"invoice": null,
"last_payment_error": null,
"livemode": false,
@ -519,7 +519,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19Ae2sOmf47Nz9yua627ey",
"payment_method": "pm_1JZDHH2sOmf47Nz90eZzgydw",
"payment_method_options": {
"card": {
"installments": null,
@ -541,5 +541,5 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:09:11 GMT
recorded_at: Mon, 13 Sep 2021 11:24:49 GMT
recorded_with: VCR 6.0.0

File diff suppressed because one or more lines are too long

View File

@ -14,13 +14,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_GFlLvxvRfOubCx","request_duration_ms":550}}'
- '{"last_request_metrics":{"request_id":"req_Xmih0ndHQjzde4","request_duration_ms":562}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -33,7 +33,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:08:52 GMT
- Mon, 13 Sep 2021 11:24:18 GMT
Content-Type:
- application/json
Content-Length:
@ -53,18 +53,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_qIUfIdUDRc3Mw0
- req_N1g65uclGQAjib
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '4'
- '6'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pm_1J19AN2sOmf47Nz9q4BTJ3Xx",
"id": "pm_1JZDGn2sOmf47Nz9HXdzATLZ",
"object": "payment_method",
"billing_details": {
"address": {
@ -104,20 +104,20 @@ http_interactions:
},
"wallet": null
},
"created": 1623413331,
"created": 1631532258,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
}
recorded_at: Fri, 11 Jun 2021 12:08:52 GMT
recorded_at: Mon, 13 Sep 2021 11:24:18 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents
body:
encoding: UTF-8
string: payment_method=pm_1J19AN2sOmf47Nz9q4BTJ3Xx&amount=3000&currency=usd&confirmation_method=manual&confirm=true&customer=cus_IhIynmoJbzLpwX
string: payment_method=pm_1JZDGn2sOmf47Nz9HXdzATLZ&amount=3000&currency=usd&confirmation_method=manual&confirm=true&customer=cus_IhIynmoJbzLpwX
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -126,13 +126,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_qIUfIdUDRc3Mw0","request_duration_ms":692}}'
- '{"last_request_metrics":{"request_id":"req_N1g65uclGQAjib","request_duration_ms":584}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -145,7 +145,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:08:53 GMT
- Mon, 13 Sep 2021 11:24:19 GMT
Content-Type:
- application/json
Content-Length:
@ -165,7 +165,7 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_CpPzkd37QFGb1n
- req_fvB5biOXUu3Ogv
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
@ -177,13 +177,13 @@ http_interactions:
string: |
{
"error": {
"charge": "ch_1J19AO2sOmf47Nz9Ko0nAR2K",
"charge": "ch_3JZDGo2sOmf47Nz91anusa7B",
"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_1J19AO2sOmf47Nz9owzfK8w8",
"id": "pi_3JZDGo2sOmf47Nz912ny1od2",
"object": "payment_intent",
"amount": 3000,
"amount_capturable": 0,
@ -197,7 +197,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19AO2sOmf47Nz9Ko0nAR2K",
"id": "ch_3JZDGo2sOmf47Nz91anusa7B",
"object": "charge",
"amount": 3000,
"amount_captured": 0,
@ -221,7 +221,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": false,
"created": 1623413332,
"created": 1631532258,
"currency": "usd",
"customer": "cus_IhIynmoJbzLpwX",
"description": null,
@ -242,13 +242,13 @@ http_interactions:
"network_status": "declined_by_network",
"reason": "generic_decline",
"risk_level": "normal",
"risk_score": 62,
"risk_score": 60,
"seller_message": "The bank did not return any further details with this decline.",
"type": "issuer_declined"
},
"paid": false,
"payment_intent": "pi_1J19AO2sOmf47Nz9owzfK8w8",
"payment_method": "pm_1J19AN2sOmf47Nz9q4BTJ3Xx",
"payment_intent": "pi_3JZDGo2sOmf47Nz912ny1od2",
"payment_method": "pm_1JZDGn2sOmf47Nz9HXdzATLZ",
"payment_method_details": {
"card": {
"brand": "visa",
@ -281,7 +281,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19AO2sOmf47Nz9Ko0nAR2K/refunds"
"url": "/v1/charges/ch_3JZDGo2sOmf47Nz91anusa7B/refunds"
},
"review": null,
"shipping": null,
@ -296,23 +296,23 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19AO2sOmf47Nz9owzfK8w8"
"url": "/v1/charges?payment_intent=pi_3JZDGo2sOmf47Nz912ny1od2"
},
"client_secret": "pi_1J19AO2sOmf47Nz9owzfK8w8_secret_wm0gJAp5vBQX2rMzNFzBSGbhh",
"client_secret": "pi_3JZDGo2sOmf47Nz912ny1od2_secret_luIvv5fLASFIdYbO0iekZttpZ",
"confirmation_method": "manual",
"created": 1623413332,
"created": 1631532258,
"currency": "usd",
"customer": "cus_IhIynmoJbzLpwX",
"description": null,
"invoice": null,
"last_payment_error": {
"charge": "ch_1J19AO2sOmf47Nz9Ko0nAR2K",
"charge": "ch_3JZDGo2sOmf47Nz91anusa7B",
"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_1J19AN2sOmf47Nz9q4BTJ3Xx",
"id": "pm_1JZDGn2sOmf47Nz9HXdzATLZ",
"object": "payment_method",
"billing_details": {
"address": {
@ -352,7 +352,7 @@ http_interactions:
},
"wallet": null
},
"created": 1623413331,
"created": 1631532258,
"customer": null,
"livemode": false,
"metadata": {
@ -389,7 +389,7 @@ http_interactions:
"transfer_group": null
},
"payment_method": {
"id": "pm_1J19AN2sOmf47Nz9q4BTJ3Xx",
"id": "pm_1JZDGn2sOmf47Nz9HXdzATLZ",
"object": "payment_method",
"billing_details": {
"address": {
@ -429,7 +429,7 @@ http_interactions:
},
"wallet": null
},
"created": 1623413331,
"created": 1631532258,
"customer": null,
"livemode": false,
"metadata": {
@ -439,5 +439,5 @@ http_interactions:
"type": "card_error"
}
}
recorded_at: Fri, 11 Jun 2021 12:08:53 GMT
recorded_at: Mon, 13 Sep 2021 11:24:19 GMT
recorded_with: VCR 6.0.0

View File

@ -14,13 +14,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_MaUUH4M7ExplWM","request_duration_ms":1}}'
- '{"last_request_metrics":{"request_id":"req_N1g65uclGQAjib","request_duration_ms":584}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -33,7 +33,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:08:48 GMT
- Mon, 13 Sep 2021 11:24:20 GMT
Content-Type:
- application/json
Content-Length:
@ -53,18 +53,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_4vUJStZEVaRu25
- req_LiJowIdBMxP83n
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '4'
- '6'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pm_1J19AK2sOmf47Nz99SmIMRsZ",
"id": "pm_1JZDGq2sOmf47Nz9gFNx35wt",
"object": "payment_method",
"billing_details": {
"address": {
@ -104,20 +104,20 @@ http_interactions:
},
"wallet": null
},
"created": 1623413328,
"created": 1631532260,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
}
recorded_at: Fri, 11 Jun 2021 12:08:48 GMT
recorded_at: Mon, 13 Sep 2021 11:24:20 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents
body:
encoding: UTF-8
string: payment_method=pm_1J19AK2sOmf47Nz99SmIMRsZ&amount=3000&currency=usd&confirmation_method=manual&confirm=true&customer=cus_IhIynmoJbzLpwX
string: payment_method=pm_1JZDGq2sOmf47Nz9gFNx35wt&amount=3000&currency=usd&confirmation_method=manual&confirm=true&customer=cus_IhIynmoJbzLpwX
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -126,13 +126,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_4vUJStZEVaRu25","request_duration_ms":721}}'
- '{"last_request_metrics":{"request_id":"req_LiJowIdBMxP83n","request_duration_ms":595}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -145,7 +145,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:08:50 GMT
- Mon, 13 Sep 2021 11:24:21 GMT
Content-Type:
- application/json
Content-Length:
@ -165,18 +165,18 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_pAhJGqI87wbmeo
- req_zPc2xJq9KRxOGG
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
- '8'
- '10'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pi_1J19AL2sOmf47Nz9Ni5vAjHE",
"id": "pi_3JZDGq2sOmf47Nz90tRhZuFY",
"object": "payment_intent",
"amount": 3000,
"amount_capturable": 0,
@ -190,7 +190,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19AL2sOmf47Nz9dl7fx35v",
"id": "ch_3JZDGq2sOmf47Nz90TZPr1Z7",
"object": "charge",
"amount": 3000,
"amount_captured": 3000,
@ -198,7 +198,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19AL2sOmf47Nz9GmyGY5vi",
"balance_transaction": "txn_3JZDGq2sOmf47Nz90lg8yedR",
"billing_details": {
"address": {
"city": null,
@ -214,7 +214,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413329,
"created": 1631532261,
"currency": "usd",
"customer": "cus_IhIynmoJbzLpwX",
"description": null,
@ -235,13 +235,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 47,
"risk_score": 32,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19AL2sOmf47Nz9Ni5vAjHE",
"payment_method": "pm_1J19AK2sOmf47Nz99SmIMRsZ",
"payment_intent": "pi_3JZDGq2sOmf47Nz90tRhZuFY",
"payment_method": "pm_1JZDGq2sOmf47Nz9gFNx35wt",
"payment_method_details": {
"card": {
"brand": "visa",
@ -265,7 +265,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19AL2sOmf47Nz9dl7fx35v/rcpt_JeS4Q6iG2LjP7BNQdlMwvy12ZrLbCDV",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDGq2sOmf47Nz90TZPr1Z7/rcpt_KDeaIe0xwj6K7x6xCFsGb9f4YgaufJb",
"refunded": false,
"refunds": {
"object": "list",
@ -274,7 +274,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19AL2sOmf47Nz9dl7fx35v/refunds"
"url": "/v1/charges/ch_3JZDGq2sOmf47Nz90TZPr1Z7/refunds"
},
"review": null,
"shipping": null,
@ -289,11 +289,11 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19AL2sOmf47Nz9Ni5vAjHE"
"url": "/v1/charges?payment_intent=pi_3JZDGq2sOmf47Nz90tRhZuFY"
},
"client_secret": "pi_1J19AL2sOmf47Nz9Ni5vAjHE_secret_7cKwvm1EkX9mb1mqnf5V3CibJ",
"client_secret": "pi_3JZDGq2sOmf47Nz90tRhZuFY_secret_BguCxjdHJCdtVhIw9ATiLBIXY",
"confirmation_method": "manual",
"created": 1623413329,
"created": 1631532260,
"currency": "usd",
"customer": "cus_IhIynmoJbzLpwX",
"description": null,
@ -304,7 +304,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19AK2sOmf47Nz99SmIMRsZ",
"payment_method": "pm_1JZDGq2sOmf47Nz9gFNx35wt",
"payment_method_options": {
"card": {
"installments": null,
@ -326,13 +326,13 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:08:50 GMT
recorded_at: Mon, 13 Sep 2021 11:24:21 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents/pi_1J19AL2sOmf47Nz9Ni5vAjHE
uri: https://api.stripe.com/v1/payment_intents/pi_3JZDGq2sOmf47Nz90tRhZuFY
body:
encoding: UTF-8
string: description=Invoice+reference%3A+2106001%2FVL
string: description=Invoice+reference%3A+2109001%2FVL
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -341,13 +341,13 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_pAhJGqI87wbmeo","request_duration_ms":1524}}'
- '{"last_request_metrics":{"request_id":"req_zPc2xJq9KRxOGG","request_duration_ms":1385}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.3 p62 (2019-04-16)","platform":"x86_64-darwin18","engine":"ruby","publisher":"stripe","uname":"Darwin
MacBook-Pro-Sleede-Peng 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33
PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64","hostname":"MacBook-Pro-Sleede-Peng"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -360,7 +360,7 @@ http_interactions:
Server:
- nginx
Date:
- Fri, 11 Jun 2021 12:08:50 GMT
- Mon, 13 Sep 2021 11:24:22 GMT
Content-Type:
- application/json
Content-Length:
@ -380,7 +380,7 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Request-Id:
- req_GFlLvxvRfOubCx
- req_UNSBmHJmCC5Mk4
Stripe-Version:
- '2019-08-14'
X-Stripe-C-Cost:
@ -391,7 +391,7 @@ http_interactions:
encoding: UTF-8
string: |
{
"id": "pi_1J19AL2sOmf47Nz9Ni5vAjHE",
"id": "pi_3JZDGq2sOmf47Nz90tRhZuFY",
"object": "payment_intent",
"amount": 3000,
"amount_capturable": 0,
@ -405,7 +405,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_1J19AL2sOmf47Nz9dl7fx35v",
"id": "ch_3JZDGq2sOmf47Nz90TZPr1Z7",
"object": "charge",
"amount": 3000,
"amount_captured": 3000,
@ -413,7 +413,7 @@ http_interactions:
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1J19AL2sOmf47Nz9GmyGY5vi",
"balance_transaction": "txn_3JZDGq2sOmf47Nz90lg8yedR",
"billing_details": {
"address": {
"city": null,
@ -429,7 +429,7 @@ http_interactions:
},
"calculated_statement_descriptor": "Stripe",
"captured": true,
"created": 1623413329,
"created": 1631532261,
"currency": "usd",
"customer": "cus_IhIynmoJbzLpwX",
"description": null,
@ -450,13 +450,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 47,
"risk_score": 32,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1J19AL2sOmf47Nz9Ni5vAjHE",
"payment_method": "pm_1J19AK2sOmf47Nz99SmIMRsZ",
"payment_intent": "pi_3JZDGq2sOmf47Nz90tRhZuFY",
"payment_method": "pm_1JZDGq2sOmf47Nz9gFNx35wt",
"payment_method_details": {
"card": {
"brand": "visa",
@ -480,7 +480,7 @@ http_interactions:
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1J19AL2sOmf47Nz9dl7fx35v/rcpt_JeS4Q6iG2LjP7BNQdlMwvy12ZrLbCDV",
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_3JZDGq2sOmf47Nz90TZPr1Z7/rcpt_KDeaIe0xwj6K7x6xCFsGb9f4YgaufJb",
"refunded": false,
"refunds": {
"object": "list",
@ -489,7 +489,7 @@ http_interactions:
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1J19AL2sOmf47Nz9dl7fx35v/refunds"
"url": "/v1/charges/ch_3JZDGq2sOmf47Nz90TZPr1Z7/refunds"
},
"review": null,
"shipping": null,
@ -504,14 +504,14 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1J19AL2sOmf47Nz9Ni5vAjHE"
"url": "/v1/charges?payment_intent=pi_3JZDGq2sOmf47Nz90tRhZuFY"
},
"client_secret": "pi_1J19AL2sOmf47Nz9Ni5vAjHE_secret_7cKwvm1EkX9mb1mqnf5V3CibJ",
"client_secret": "pi_3JZDGq2sOmf47Nz90tRhZuFY_secret_BguCxjdHJCdtVhIw9ATiLBIXY",
"confirmation_method": "manual",
"created": 1623413329,
"created": 1631532260,
"currency": "usd",
"customer": "cus_IhIynmoJbzLpwX",
"description": "Invoice reference: 2106001/VL",
"description": "Invoice reference: 2109001/VL",
"invoice": null,
"last_payment_error": null,
"livemode": false,
@ -519,7 +519,7 @@ http_interactions:
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1J19AK2sOmf47Nz99SmIMRsZ",
"payment_method": "pm_1JZDGq2sOmf47Nz9gFNx35wt",
"payment_method_options": {
"card": {
"installments": null,
@ -541,5 +541,5 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Fri, 11 Jun 2021 12:08:50 GMT
recorded_at: Mon, 13 Sep 2021 11:24:22 GMT
recorded_with: VCR 6.0.0