#tigerxml_api

1 messages ยท Page 1 of 1 (latest)

quiet sedgeBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

sturdy spoke
#

๐Ÿ‘‹ happy to help

river marten
# sturdy spoke can this https://docs.stripe.com/payment-links/url-parameters be helpful to you?

Hi Tarzan! Thank you for your help.
I've checked that but these parameters have only utm's and there is no option to get payment amount on the thank you page (which is needed to send the conversion value to GA4).

They way I see it how it could be:
website -> Stripe's checkout page -> website thankyou page (where GA4 conversion trigger and I need the payment amount here)

detailed:

  1. The website have a payment link
  2. user redirected to Stripe's checkout page with payment link
  3. user select on that page the value of the payment (he can select montly or yearly payment)
  4. after the payment Stripe redirect that user back to the website with GA4 on that page, and with the paymen amount as a parameter
  5. GA4 tag on that thank you page trigger the conversion with the payment amount provided by Stripe

Is there any way to achieve that?

sturdy spoke
#

this will give you access to the CheckoutSession Id and then from there you can get the amount and the prices that were used in the Checkout Session by retrieving the Checkout Session by ID

river marten
#

interesting so that's a Stripe's session id?
And after that I can use API to get the amount from that session and send it to GA4 dynamically generating the content of the webpage.
Do I understand it correctly?

sturdy spoke
#

yes correct

#

but you can also do that on the backend

#

using webhooks

quiet sedgeBOT
river marten
#

on the backend I'm afraid I can't trigger GA4 conversion correctly, because it use it's own data in the dataLayer and at least I need to send them GA4's client's session id. And maybe something else. For GA4 to be able to connect that session correctly with the initial user journey. Because I need to track the full customer journey and final conversion amount.

So I think your suggestion with checkout_session_id + API to get the data and generate the page content is the best solution here. Thank you for your help I'll do that.

#

One small question here.

Is there any way to test that chain without paying a real money from the card?
Something like a test mode, for development? or something like that?

onyx coral
#

yes you can use your test mode Stripe API keys and test cards.

river marten
#

ok thank you! I'll try it. Thank you for your help.

I'll be back if I need more help.

#

one quesion

#

Can these "test cards" and test mode be used when using payment links?

onyx coral
#

yes

river marten
#

great. thanks!