#laorik

1 messages · Page 1 of 1 (latest)

tight horizonBOT
steel warren
#

Can you share an example request that's failing?

clever sapphire
#
                                      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

steel warren
#

Do you have a specific failing one you can share? req_123?

#

in the response headers

clever sapphire
#

req_wsjHQ5tButabWa

#

actually that one was a test in the payment intent system

#

req_CQIjOa8im5SFt8

#

this is in charge api

#

same result in both

neon wraith
#

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

clever sapphire
#

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.