#teamtalk

1 messages · Page 1 of 1 (latest)

sick aspenBOT
hasty lotus
#

If you are using a recent version of the API, you can see this on the PaymentIntent as latest_charge, older versions have a charges list. You can expand those properties to get the receipt URL back with the rest of the paymentintent info https://stripe.com/docs/api/expanding_objects

crimson tiger
#

Ok when testing I expand that charge object and inside the data array is the url but that seems to be the platforms brand

hasty lotus
#

I'd reccommend reading that full section, Merchant of Record has implications like who shows up on the statement descriptor and what support information shows up on the bank statement

crimson tiger
#

Already use behalf of

#

Sorry not expand - I am using an older version of the API. in the charges object there is a data array. Are you refering to that or an expandable one

hasty lotus
#

Gotcha, not sure why the connected account's branding is not being used. Will check in to this and get back to you

#

If you are already expanding the charges array here, that is all you should need to do to get this URL.

crimson tiger
#

I am not expanding as documented - but I get a receipt url like this $intentResponse->charges->data[0]->receipt_url; php

hasty lotus
#

I am not immediately finding more info on this. I will ask my colleagues and get back to you with what we can find.

#

@crimson tiger Reach out to our support about this, they should be able to enable it for your account https://support.stripe.com/?contact=true

#

After they have enabled it, your OBO destination charge receipts should automatically start using the connected account's branding going forward

crimson tiger
#

Great thank you!