#ramy-mohamed_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1301513819419316294
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi! there was no application_fee on that transfer though, so there's nothing to refund
you didn't use application_fee_amount when creating the PaymentIntent ,you used the other approach where you just use transfer_data[amount] to transfer less than the payment, which is a "fee" but doesn't create an object and doesn't get refunded with that API parameter, you'd have to manually transfer it back to the connected account. (or change to use application_fee_amount)
this is a destination charge
it is yes, I know
please read my answer above and also the docs here :
https://docs.stripe.com/connect/destination-charges?platform=web&ui=elements&fee-type=transfer-amount#collect-fees
you're using the "transfer_data[amount]" approach, which means there is no application fee, which means that refund_application_fee doesn't do anything
this my code to create payment intent
stripe.PaymentIntent.create(
amount=int(prepared_charge_amount),
currency=chargeCurrency,
customer=player_customer_id,
payment_method=player_card_id,
payment_method_types=['card'],
statement_descriptor=admin_studio_name,
on_behalf_of=admin_stripe_account_id,
transfer_data=transfer_data,
off_session=True,
confirm=True
)
thanks! I don't need to see it though, I've already answered the question.