#faz919-receipts

1 messages · Page 1 of 1 (latest)

rain coyote
#

Hey there! There's no facility for receipts on a Setup Intent

#

Subscriptions follow the same rules for one-time payment receipts (as they use Payment Intents under the hood)

#

What specific concerns do you have?

copper birch
#

Soo I should add a parameter of receipt_email in my subscription?

#

Like this?

copper birch
rain coyote
#

There's no receipt_email parameter. It'll use the email field from the Customer object you're passing in

copper birch
#

Ah ok. And then automatically the customer will receive payment confirmation to that email?

rain coyote
#

They'll receipt emails if your account has them configured yep

copper birch
#

alright thank you

#

and how can i be sure that my account has them configured? since i know that emails aren't sent in test payments

rain coyote
#

Do you just want receipt emails?

copper birch
#

yea

#

i'd also like to customize them to include a link to the customer's billing portal, if possible

rain coyote
rain coyote
copper birch
#

ok

#

thanks for the help

copper birch
#

also, does the billing portal link ever expire? is there any reason i'd need to refresh the link and re-retrieve the client secret? thanks

rain coyote
#

They do expire yep

#

Within ~1 hour I believe

copper birch
#

How do I refresh the billing portal? Does the client ID ever change? can i just use the same client id and get a fresh link as needed?

rain coyote
#

What is the 'client ID'?

copper birch
#

sorry just took my lunch break

#

the client identifier that you need to get the proper billing portal

soft oasis
#

Hi! I'm taking over ynnoj

#

The customer ID won't change. So you can pass it to create a new portal session.