I’m trying to setup a payment method for a subscription on mobile with flutter and .net as backend.
For that here is my flow :
- I create a customer and a SetupIntent backend side
- I send the details to flutter and it present the payment sheet to customer letting him choose Apple Pay as a payment method
- when SetupIntent is completed mobile side I’m listening for it on web-hook backend side and I create the subscription with a trial period and the SetupIntent Id just created.
It works pretty well but I have a problem with apple validation.
When customer choose Apple Pay as a payment method It display « amount pending » instead of the subscription plan price and recurrence. Which is normal since I didn’t create the subscription at this step. But it’s rejected by Apple.
I checked the SetupIntent to see if I can attach a subscription to it to let the pricing appear but it seems not.
I checked the doc and the only sample I see is related to checkout portal but I want to use the element payment sheet to the customer.
As you can see in the Apple guide it should be display like the first screenshot of this page : https://developer.apple.com/design/human-interface-guidelines/apple-pay/overview/subscriptions-and-donations/
Does anyone know how to achieve this ?