#Mallain23-PaymentElement-account-credit
1 messages · Page 1 of 1 (latest)
Hello 👋
I'm not fully clear on your question
Can you share more context on what your integration is currently doing with invoices and PaymentElement?
Sure - so if I have to collect a payment of 25 dollars. When I open the payment element, I need a payment intent, which I am getting from a finalized invoice. If the user has 10 dollars in credits, they will owe 15 dollars. Once the payment sheet opens, the user needs to select a card and then click purchase. However, they may not do this and back out of the transaction. If they do so - the invoice is finalized and the credits will be applied
so you're looking to find a way to revert the credits back to customer's account?