#aruljothi-double-receipts

1 messages · Page 1 of 1 (latest)

dreamy nebula
#

Hello, just wanted to clarify your question, you have a subscription payment via Apple Pay that had been charged twice with the same value?

acoustic kernel
#

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);

dreamy nebula
#

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.

acoustic kernel
#

okay.

#

but one payment intent charged and created subscription

#

confirmResult.paymentIntent.status === 'succeeded'

#

then called subscription creation

dreamy nebula
acoustic kernel
#

i am added in applepay payment

dreamy nebula
#

payment method applies for apply pay that is set up to tie to a customer for the subscription payments

acoustic kernel
#

yes payment attached to customer first

#

and created the subscrption

dreamy nebula
#

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 😄

acoustic kernel
#

okay