英文:
Stripe processing fee
问题
I am struggling to find stripe processing fee. As per my research, stripe processing fee can be found in balance transaction object. BalanceTransaction object can be expand in PaymentIntent within charge object, so when using payment intent api to fetch it, we can expand BalanceTransaction
object in response.
However, i am getting nil value for BalanceTransaction
in payment intent response.
I am using test mode of stripe.
I did some more research, i come to know that there could be multiple reasons.
- There might be some limitations in test mode and BalanceTransaction is not created in test mode.
- Stripe account setup, account was configured in this way that stripe doesn't create that object.
I am using stripty_stripe package, and trying to retrieve BalanceTransaction
in this way.
Stripe.PaymentIntent.retrieve("pi_3N6CwERjTBykGSI00hRClHKK", [connect_account: "acct_1LQdkARjTBykGSI0", expand: ["charges.data.balance_transaction"]])
I need your thoughts on it. What i need to do, how i can get it in stripe test mode.
英文:
I am struggling to find stripe processing fee. As per my research, stripe processing fee can be found in balance transaction object. BalanceTransaction object can be expand in PaymentIntent within charge object, so when using payment intent api to fetch it, we can expand BalanceTransaction
object in response.
However, i am getting nil value for BalanceTransaction
in payment intent response.
I am using test mode of stripe.
I did some more research, i come to know that there could be multiple reasons.
- There might be some limitations in test mode and BalanceTransaction is not created in test mode.
- Stripe account setup, account was configured in this way that stripe doesn't create that object.
I am using stripty_stripe package, and trying to retrieve BalanceTransaction
in this way.
Stripe.PaymentIntent.retrieve("pi_3N6CwERjTBykGSI00hRClHKK", [connect_account: "acct_1LQdkARjTBykGSI0", expand: ["charges.data.balance_transaction"]])
I need your thoughts on it. What i need to do, how i can get it in stripe test mode.
答案1
得分: 2
Sure, here are the translated parts:
-
"BalanceTransaction object can be expand in PaymentIntent, so when using payment intent api to fetch it, we can expand BalanceTransaction object in response."
-
"It's a field of the Charge object, not the PaymentIntent. There are docs on how to get the fee here: https://stripe.com/docs/expand/use-cases#stripe-fee-for-payment"
-
"There might be some limitations in test mode and BalanceTransaction is not created in test mode."
-
"No such limitations no, the fees are returned in test mode the same way as in live."
-
"Stripe account setup, account was configured in this way that stripe doesn't create that object."
-
"Maybe! You'd be better off asking Stripe support with the exact PaymentIntent object you're looking at. A common reason though can be that you're using auth-and-capture(capture_method=manual), the BalanceTransaction is not created until you capture it. Certain payment method types can also have delayed creation too, or your Stripe account might have something special about it. You'd need to ask Stripe directly for a solid answer."
英文:
> BalanceTransaction object can be expand in PaymentIntent, so when using payment intent api to fetch it, we can expand BalanceTransaction object in response.
It's a field of the Charge object, not the PaymentIntent. There are docs on how to get the fee here: https://stripe.com/docs/expand/use-cases#stripe-fee-for-payment
> There might be some limitations in test mode and BalanceTransaction is not created in test mode.
No such limitations no, the fees are returned in test mode the same way as in live.
> Stripe account setup, account was configured in this way that stripe doesn't create that object.
Maybe! You'd be better off asking Stripe support with the exact PaymentIntent object you're looking at. A common reason though can be that you're using auth-and-capture(capture_method=manual
), the BalanceTransaction is not created until you capture it. Certain payment method types can also have delayed creation too, or your Stripe account might have something special about it. You'd need to ask Stripe directly for a solid answer.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论