#lujie - alipay
1 messages · Page 1 of 1 (latest)
Hi there!
Yes that possible
You can learn more about alipay here: https://stripe.com/docs/payments/alipay
hi soma, "You cannot confirm this PaymentIntent because it's missing a payment method. You can either update the PaymentIntent with a payment method and then confirm it again, or confirm it again directly with a payment method" , i got the error message
par2 := &stripe.PaymentIntentConfirmParams{
PaymentMethodTypes: []*string{
stripe.String("alipay"),
},
}
I use this code
That's expected. First you create the PaymentIntent, then you collect the payment information, and finally you confirm the PaymentIntent.
This is covered in details here: https://stripe.com/docs/payments/alipay/accept-a-payment?platform=web&ui=API
may i implement it by server api interface?
paymentintent.New->?->paymentintent.Confirm
which interface is for collect payment information
Wait, I think I was wrong, the link I shared earlier directly used confirmAlipayPayment. However you need to do it on the frontend.