Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How Do I Add Metadata to Simple Checkout? #171

Open
PostAlmostAnything opened this issue May 20, 2021 · 15 comments
Open

How Do I Add Metadata to Simple Checkout? #171

PostAlmostAnything opened this issue May 20, 2021 · 15 comments

Comments

@PostAlmostAnything
Copy link

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.

@jmd8045
Copy link

jmd8045 commented May 20, 2021 via email

@PostAlmostAnything
Copy link
Author

Thanks, so are you saying they don't support what I am looking for now or they do and won't in the future?

@jmd8045
Copy link

jmd8045 commented May 20, 2021 via email

@PostAlmostAnything
Copy link
Author

Thanks

@PostAlmostAnything
Copy link
Author

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

@jmd8045
Copy link

jmd8045 commented May 21, 2021 via email

@PostAlmostAnything
Copy link
Author

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

@jmd8045
Copy link

jmd8045 commented May 25, 2021 via email

@PostAlmostAnything
Copy link
Author

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?

@PostAlmostAnything
Copy link
Author

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.

@jmd8045
Copy link

jmd8045 commented May 26, 2021 via email

@PostAlmostAnything
Copy link
Author

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?

@PostAlmostAnything
Copy link
Author

Is it possible to retrieve the transaction ID after the token is created and before the user is sent to the Authorize.net site?

@jmd8045
Copy link

jmd8045 commented May 28, 2021 via email

@PostAlmostAnything
Copy link
Author

Now, how do I process webhooks with PHP? The sample app is node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants