#naro_ajs - orders + elements
1 messages · Page 1 of 1 (latest)
Hello, we don't know much about the orders beta on this server unfortunately so I may have to direct you to our support team if I can't find the answer quickly enough.
Can you tell me about the behavior that you are seeing when you do this currently? Does the order get properly placed without the element if the amount is $0 or are you getting some error?
Not getting an error really, just was expecting the Element to adjust to the fact that the value of the order was now $0 so a payment method technically doesn't need to be collected.
Entering a payment method and submitting was processing the order, however the one unexpected thing was that the paymentIntent was not included in the result anymore, but looking at the order I could see it was complete.
I have done a bit of an experiment with checking the value of the order after applying a discount and if the new order to total is equal to 0, I had the Stripe Element.
So far it seems to be ok with that, stripe.processOrder submitted without any issue and I had the same result as when I submitted with payment method information entered in the form.
Mostly I wanted to confirm best practices here as the documentation doesn't really talk to this case at all, and was kind of hoping the element had the intelligence to handle this case after doing element.fetchUpdates().
Gotcha. Unfortunately I am not finding much on this myself. If you reach out to our support team, they should be able to put you in contact with the team that is running this beta and they should know if we have a recommended flow here https://support.stripe.com/?contact=true
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
OK, will do that