#vincent_best-practices

1 messages ยท Page 1 of 1 (latest)

vapid pivotBOT
#

๐Ÿ‘‹ 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.

charred field
#

Could you share the code on you create Express Checkout Element that shows billing agreement and details now?

onyx ferry
#

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

charred field
onyx ferry
#

Got it, just making sure

#

since this chagnes our plans. I appreciate your help

charred field
#

No problem! Happy to help ๐Ÿ˜„

onyx ferry
#

thank you, i will chime in again if i have more questions