Skip to content

Instantly share code, notes, and snippets.

@bblanchon
Created December 4, 2018 08:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bblanchon/835ea869d9a55551d35a6dcaa9e7a05c to your computer and use it in GitHub Desktop.
Save bblanchon/835ea869d9a55551d35a6dcaa9e7a05c to your computer and use it in GitHub Desktop.
PayHip: object passed to the success callback
{
"transactionKey": "43ffa7e64bdd0c1ffa3bfcbc551e466aa5346293",
"buyer": "buyer@example.com",
"total": "12.34",
"currency": "USD",
"user_id_hash": "O1wW94N4KT",
"items": [
{
"productName": "My Awesome Product",
"productLink": "oU5g",
"pricePaid": "12.34",
"quantity": "1"
}
]
}
@bblanchon
Copy link
Author

That's the object passed to the callback function passed as data-success-callback:

<a href="..." class="payhip-buy-button" data-product="..." data-initiated="true" data-success-callback="reportPurchase">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment