#zuohao

1 messages · Page 1 of 1 (latest)

teal matrixBOT
quaint tide
#

Not all payment methods support manual capture, for example Alipay and WeChat Pay

humble basin
#

Which payment methods support manual capture?

quaint tide
#

You can refer to the doc above the list of payment methods that support manual capture

humble basin
#

We have a scenario where we charge fees for users to post advertisements. If our staff rejects an advertisement during the review process, we issue a full refund. However, Stripe does not refund the payment processing fees in such cases, which can result in losses for the users or the platform. Do you have any other features that can support this?

quaint tide
#

You can perform refunds on Alipay and WeChat Pay

#

For example, your system charge and deduct the amount from customer's Alipay or WeChat Pay wallet. When the advertisement is rejected, then refund to the funds to customer's wallet

#

Separate auth and capture is to hold the funds instead of charging to the customer until the fund is captured. Since alipay and wechat that don't support holding the funds, your system may just charge directly and refund later

humble basin
#

However, in this case, the platform or user will incur the loss of payment processing fees because Stripe does not refund this portion of the amount.

#

Is there a way for me to retrieve the payment fees deducted by Stripe when I receive the "checkout.session.completed" webhook for the payment method I'm using?

quaint tide
#

It's not possible to retrieve the Stripe fee directly from checkout.session.completed event. You will need to make additional Payment Intent retrieval with expanding latest_charge.balance_transaction field.

For example:

  1. When checkout.session.completed is received, retrieve the Payment Intent ID from payment_intent field: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_intent
  2. Use Payment Intent retrieval API with expanding latest_charge.balance_transaction parameter to get the Stripe fee: https://stripe.com/docs/expand/use-cases#stripe-fee-for-payment

Learn how the expand attribute helps you perform common tasks.