#ramy-mohamed_api

1 messages ¡ Page 1 of 1 (latest)

gilded havenBOT
#

👋 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.

terse valley
#

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)

random vapor
#

this is a destination charge

terse valley
#

it is yes, I know

#

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

random vapor
#

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
)

terse valley
#

thanks! I don't need to see it though, I've already answered the question.

gilded havenBOT