Hi,
Is there a way to display some transaction properties in a webpage (I got the transaction ID from a URL parameter) ?
I have a page with a URL like myhubspot.com/mypage?id_transaction=XXXXX
where xxxxx is a transaction ID.
That URL will be used to share informations between our company and some partners.
I want to display a few properties of that transaction on my page.
Is that possible ?
Thanks
Hi, @MarionD
Thanks for your question. I’d like to invite some community members to the conversation, and I’ll add a few things as well.
Hey @Anton @assi @piersg @tjoyce, have you had success with anything similar recently?
Other questions/thoughts:
-
Do you already have your script for extracting the transaction ID? If not, here’s a really simple example
const urlParams = new URLSearchParams(window.location.search);
const transactionId = urlParams.get('id_transaction');
console.log(transactionId);
-
Step two is where some sophistication is needed. Are you going to handle the API requests client-side or server-side?
-
For step three, what are your plans for displaying this info?
Knowing this will help the community to give you targeted advice. Or at least give you advice on — next steps, what not to do, or other ways they’ve tackled similar challenges recently.
Best,
Jaycee