#vincent_best-practices
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/1367915420442431550
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Could you share the code on you create Express Checkout Element that shows billing agreement and details now?
sure one sec
the options passed to the element would look something like:
...
applePay: {
recurringPaymentRequest: {
paymentDescription: "My Ritual Subscription",
managementURL: "https://account.ritual.com/",
regularBilling: {
amount: details.amount,
label: `Recurring subscription (${
activeCart.taxInclusive ? "VAT Included" : "plus tax"
})`,
recurringPaymentIntervalUnit: "day",
recurringPaymentIntervalCount: Number(cadence),
recurringPaymentStartDate: new Date(
new Date().setDate(Number(new Date().getDate() + cadence)),
),
},
billingAgreement: `Some of the items you are purchasing will automatically renew as a subscription and will be billed every ${cadence} days until you cancel. You can cancel anytime by visiting your account page on our website. By clicking Pay, you confirm that you have read, understand, and agree to the Terms of Service and Privacy Policy.`,
},
}
...
you can see teh interface in @stripe/stripe-js/dist/stripe-js/elements/apple-pay.d.ts on about line 123
Thanks for sharing! billingAgreement is only supported on Apple Pay at the moment. Google Pay, Amazon Pay and Link don't have their own configurations for billing agreement: https://docs.stripe.com/js/elements_object/create_express_checkout_element#express_checkout_element_create-options
No problem! Happy to help ๐
thank you, i will chime in again if i have more questions