#Abishek - PaymentIntent receipt_url

1 messages · Page 1 of 1 (latest)

mossy fjord
#

Apologies for the delay, where are you setting the receipt URL at the moment?

analog nacelle
#

I am not setting the URL, I am charging a user using a payment Intent

$paymentIntent = $this->stripe()->paymentIntents->create([
    'confirmation_method' => 'automatic',
    'confirm' => true,
    'currency' => $this->preferredCurrency(),
    'amount' => $amount,
    'payment_method' => $paymentMethod->id,
]);
#

I am trying to figure out if there is a way to get the stripe receipt url from the paymentIntent

#

let me know if it makes sense

mossy fjord
#

I am not immediately familiar with this URL. Are you seeing it elsewhere?

analog nacelle
#

actually I was able to get the receipt url

#

$paymentIntent->charges->data[0]->receipt_url

#

i am hoping that is the right way to do it

mossy fjord
#

Gotcha. I did see that Charges have that URL, I was unsure if that was only for Invoicing. Happy that that worked for you!

analog nacelle
#

quick question. Can apple pay and google pay wallets be used for subscriptions ?

mossy fjord
#

Yes they can. You are using your own custom checkout page that uses Stripe Elements for this correct?

analog nacelle
#

yes

#

are there any country specific restrictions when it comes to wallets?

#

For example India

#

can wallets in India be used for subscriptions?

#

I am using the payment element to store the payment method for future use. So I wasn't sure if I should enable wallets or not

mossy fjord
#

Do you already have your own custom page that starts subscriptions? Or are you still building it at the moment?

#

I am unsure about region specific wallet behavior, will check our docs

sand rose