#donut_code
1 messages ¡ Page 1 of 1 (latest)
đ 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.
hi there, can you share the ID of the invoice that is failing? (in_1234)
yes
in_1SKgEDRvd0kOjiXVMxVHe0vo
now its paid because i charged the customer manually from dashboard but i can create a new one
ok, so this was a test invoice, were you using one of our test cards as the payment method?
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?
do you have those other subscription IDs handy? I'd like to see if they have particular things in common
yes
i'll send them now
sub_1SKfeRRvd0kOjiXVuSuxLvkf
sub_1SKeZjRvd0kOjiXVSnQ5nZ0U
sub_1SKgQ9Rvd0kOjiXVAazhihTt
what integration are you using to pay these subscriptions with Apple Pay? the Payment Element?
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
});
thanks, have you double checked that paymentDescription and regularBilling.label are getting populated? just want to make sure as those are required fields https://docs.stripe.com/js/elements_object/create_express_checkout_element#express_checkout_element_create-options-applePay-recurringPaymentRequest-regularBilling
yes i sent you the code above
ok, I think I'll need to reach out to my colleagues to troubleshoot this. one moment