#faz919-confirmation
1 messages · Page 1 of 1 (latest)
Yes
Also, is there any way to customize receipt emails? For example, I'd like to include a link to the customer billing portal in every subscription confirmation email
yes, we don't send receipts in test mode : https://stripe.com/docs/receipts. There's no way to test this in test mode. You can assume that it will work in live mode as long as you have the relevant settings enabled.
You can see what can be customized on a receipt here : https://stripe.com/docs/receipts#customising-receipts
ok thank you
unrelated question: how can i pass the data i receive from apple pay/google pay (shipping info, customer info, etc) to my subscription data?
it depends on where you want to save those data on.
You can save it as metadata on the subscription : https://stripe.com/docs/api/subscriptions/update#update_subscription-metadata
or you can update those fields on the Customer : https://stripe.com/docs/api/customers/update
trying to save it as metadata on the subscription
but how do i retrieve it from the third-party pay in the first place
are you using Payment Request button or the Payment Element or Checkout right now?
ah nevermind i figured out how to retrieve it
thanks so much
now i'm just facing an issue where i receive the error Unsupported prop change: options.paymentRequest is not a mutable property. when trying to change the payment to not pending and then the apple pay screen just says 'amount pending' instead of the actual amount
sorry but i don't quite understand what you're trying to achieve here. How or where are you changing the payment to not pending?
can you share the relevant code snippets?
sure
the useeffect hook that creates the payment and then later sets it to not pending
{paymentRequest && ( <PaymentRequestButtonElement options={{ paymentRequest, style: { paymentRequestButton: { height: '40px', }, }, }} /> )}
the payment request button
the payment request is just defined using a standard usestate
this is probably going to take a while to look into and unfortunately i need to step away for the day. Can you reach out to Stripe Support and share the error message and your code? We'll take things up from there
for sure thanks