#laorik
1 messages · Page 1 of 1 (latest)
Can you share an example request that's failing?
amount: 12340,
currency: 'usd',
customer: 'CUSTOMER_ID',
card: 'CARD_ID',
description: 'test charge',
capture: false,
})
charge_test = Stripe::Charge.capture(
charge_test[:id],
{
application_fee_amount: 2034,
transfer_data: {
destination: 'DESTINATION_ACCOUNT_ID',
},
}
)```
Ruby code
Do you have a specific failing one you can share? req_123?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
in the response headers
req_wsjHQ5tButabWa
actually that one was a test in the payment intent system
req_CQIjOa8im5SFt8
this is in charge api
same result in both
From the API reference, it looks like destination is a parameter in the confirm call but not the capture call. You can change the amount in the capture but not the destination as far as I can see
https://stripe.com/docs/api/charges/capture#capture_charge-transfer_data
https://stripe.com/docs/api/charges/create#create_charge-transfer_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok yeah that's what it seemed like but the description of the transfer_data param on the capture call read as though it would accept a destination. Thanks i'll just move forward with putting the destination on the create.