#donut_code

1 messages ¡ Page 1 of 1 (latest)

amber marshBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1430198159681781901

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

ashen wren
#

hi there, can you share the ID of the invoice that is failing? (in_1234)

rough flower
#

yes

#

in_1SKgEDRvd0kOjiXVMxVHe0vo

#

now its paid because i charged the customer manually from dashboard but i can create a new one

ashen wren
#

ok, so this was a test invoice, were you using one of our test cards as the payment method?

rough flower
#

nope

#

i am using a real card

ashen wren
#

still looking, so you created the subscription with a free trial ending at 11/04 using a test clock, then advanced the clock past the trial date, and that's when the payment failed? have you noticed this happening consistently with the card you're using with Apple Pay?

rough flower
#

yes its like the 4th time

#

while testing the flow

ashen wren
#

do you have those other subscription IDs handy? I'd like to see if they have particular things in common

rough flower
#

yes

#

i'll send them now

#

sub_1SKfeRRvd0kOjiXVuSuxLvkf
sub_1SKeZjRvd0kOjiXVSnQ5nZ0U

#

sub_1SKgQ9Rvd0kOjiXVAazhihTt

ashen wren
#

what integration are you using to pay these subscriptions with Apple Pay? the Payment Element?

rough flower
#

express checkout

#

const expressCheckoutOptions = {
buttonHeight: 50,
buttonTheme: { applePay: 'white-outline' },
applePay: {
recurringPaymentRequest: {
paymentDescription: planDescription || '',
regularBilling: {
amount,
label: planName || 'Subscription',
recurringPaymentStartDate: new Date(),
recurringPaymentIntervalUnit: this.mapDurationIdToIntervalUnit(durationId),
recurringPaymentIntervalCount: durationValue
},
billingAgreement: 'billing agreement',
managementURL: 'https://stripe.com'
}
},
googlePay: {
paymentRequest: {
total: {
label: planName || 'Subscription',
amount: (amount / 100).toFixed(2),
currency: currency.toUpperCase()
}
}
}
};

this.expressCheckoutElements = stripe.elements({
  mode: 'subscription',
  amount: amount or 0,
  currency,
  appearance
});
ashen wren
rough flower
#

yes i sent you the code above

ashen wren
#

ok, I think I'll need to reach out to my colleagues to troubleshoot this. one moment

rough flower
#

okay

#

google pay works fine with the exact same implementation