#akdj16
1 messages · Page 1 of 1 (latest)
👋 happy to help
in that case there wouldn't be a latest_invoice.payment_intent but instead you need to look at the latest_invoice.pending_setup_intent which you would use with the Payment Elements to collect the Payment Method for the subscription
but I am trying to create a payment method with applePay, and I used createPlatformPayPaymentMethod on the mobile app, and the confirmPayment requires a paymentIntent client secret
in that case you would use the confirmSetup with the client_secret of the SetupIntent
ok! let me try
I would suggest the following
in your backend code
1- expand on ["latest_invoice.payment_intent", "latest_invoice.pending_setup_intent"]
2- change your code to send the type (payment or setup) with the client_secret as the response
in your front-end code you would choose whether to use confirmPayment or confirmSetup based on the type that you receive
ok! I am doing it
let me know if you need any more help