How Do I Add Metadata to Simple Checkout?
PostAlmostAnything opened this issue · 15 comments
I have never used Authorize.net before and just got my sandbox account. I am migrating from Stripe. I would like to use simple checkout just like I used Stripe checkout, but I don't know where to find examples of how to dynamically generate products with metadata for use with Simple Checkout.
When using Stripe I could include metadata with requests so that they would have unique titles, descriptions, and other things that my webhooks needed. I have looked at the Simple Checkout page on the Authorize.net site but don't see how to do that. All I see is how to create buttons for static products.
Thanks, so are you saying they don't support what I am looking for now or they do and won't in the future?
Thanks
The first thing that comes up for SIM server on Google is a document calling it depreciated https://www.authorize.net/content/dam/anet-redesign/documents/SIM_guide.pdf
I am thinking of using Accept Hosted, but the instructions seem confusing. I created the .php file described in step 1, but step 2 describes loading something in an iframe, but the sample iframe code does not have a src attribute. How is it possible to load anything in an iframe without a src attribute?
https://github.com/AuthorizeNet/accept-sample-app/blob/master/README-AcceptHosted.md
The sample code for the Accept Suite references a file named constants/SampleCodeConstants.php but does not contain any links to it. Where can I find that file?
Alright, I found that but it just led to more questions. I coped the code from https://developer.authorize.net/api/reference/index.html#accept-suite-get-an-accept-payment-page but instead of getting me a payment page all it got me was a giant string of characters. Then I looked at it again and all it does is get you a token which can be used to request the Authorize.net Accept hosted payment page", but how do I request the Accept hosted payment page? The tutorial stops at the token and never bothers to explain how to use it.
I have the basic redirect to the Authorize.net hosted payment form working fine based on the example at https://developer.authorize.net/api/reference/features/accept_hosted.html#Integrating_the_Form_using_a_Redirect but I need to include more information about the order than what appears available. Information such as a product ID, description, inventory number, etc. so that when I register for a webhook it can send back information as to exactly what item was purchased. Right now I only see options for including basic stuff like merchant name.
How do I add meta data?
Is it possible to retrieve the transaction ID after the token is created and before the user is sent to the Authorize.net site?
Now, how do I process webhooks with PHP? The sample app is node