#aruljothi-double-receipts
1 messages · Page 1 of 1 (latest)
Hello, just wanted to clarify your question, you have a subscription payment via Apple Pay that had been charged twice with the same value?
yes
subscription payment via Apple Pay that had been charged twice with the same value
stripe.confirmCardPayment(clientSecret,{payment_method: ev.paymentMethod.id},{handleActions: false})
.then(function(confirmResult) {
in this function
if (confirmResult.paymentIntent && confirmResult.paymentIntent.status === 'succeeded') {
ev.complete('success');
created subscrption
createSubscriptionmain(customer_id,payment_priceplan,payment_amount,payment_methodval);
if there is only 1 payment intent being set up, what do you mean it has been charged twice? One Stripe payment intent would only charge once.
okay.
but one payment intent charged and created subscription
confirmResult.paymentIntent.status === 'succeeded'
then called subscription creation
Usually you would create the subscription first, then the subscription would generate an invoice, and then the payment intent created to charge via the payment method, for more information please refer to https://stripe.com/docs/billing/subscriptions/build-subscription?ui=elements#how-to-model-it-on-stripe
i am added in applepay payment
payment method applies for apply pay that is set up to tie to a customer for the subscription payments
Yes, payment method attached to customer, then create subscription, then the invoice will be generated when the payment is scheduled to be due where a payment intent is generated to charge the customer 😄
okay