#ledevfoufoufou

1 messages ยท Page 1 of 1 (latest)

rich mountainBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

lunar storm
#

hi there!

#

how are you accepting payments? Checkout Session, Payment Element, something else?

faint kindle
#

payment element is active, but actually it's for change payment method. example, customer has card payment method and would change to apple pay

lunar storm
#

so you are using the Payment Element?

#

and can you clarify what exactly is the issue? I'm not sure I understand

faint kindle
#

yes of course for the first subscription.

#

a customer subscribe by payment element

#

He changes payment method by payment element and choices apple pay

#

but his subscription have a coupon

#

the amount will change after 5 months (for example)

#

how configure applepay token to accept this new amount ?

lunar storm
#

if they use Apple Pay or not has no impact. just create a Subscription with the coupon and everything will work.

faint kindle
#

yes but the subscription was taken by credit card

#

I am developing an interface to modify the means of payment

#

if he chooses applepay and a discount coupon is active

#

how to indicate that the recurring amount is x โ‚ฌ for x months, then x โ‚ฌ during the rest of the subscription?

lunar storm
#

how are you currently allowing the user to change payment method?

faint kindle
#

with payment element

lunar storm
#

so you are using a SetupIntent for this?

faint kindle
#

yes

lunar storm
#

then yes again it should just work. all you need to do is make sure you set the new payment method as the default for the customer (or subscription)

faint kindle
#

it's facultative action ?

#

optional ?

lunar storm
#

you can set that value to the regular price of the Subscription (or the discounted price). but this amount won't be actually used.

faint kindle
#

sorry for my poor english

#

ok ! I try with the regular price ๐Ÿ˜‰

#

thanks ! have a good day !

lunar storm
#

happy to help ๐Ÿ™‚

faint kindle
#

it's really a good idea this dev-help in discord !