Reply
Member
Posts: 1
Registered: ‎10-26-2017

I got the token, now what?

Hello,

 

I am able to call the  getAcceptCustomerProfilePage() function and pass in a CustomerProfileID and get back a token. Now that I have the token, and I am storing it in my database for future use, which functions do I need to call to say, charge the credit card? If its just the old chargeCreditCard() function, then how do I pass in the token?

 

Dan Burchfield

All Star
Posts: 699
Registered: ‎11-03-2016

Re: I got the token, now what?

Hi @grepler71,

 

That token is for a hosted profile management form. That method returns a page request token and that's only good for fifteen minutes. You serve that token to the browser, and the browser then posts it to Authorize.Net, which returns a form to allow the cardholder to update their own card on file without posting the card number to you.

 

If you're looking to charge the profile, you create a profile first. You can add the card data at the time of creation if you want the PCI burden of having that flow through your server. Or, after creating the profile, you use the hosted form to have the customer add their card directly into Authorize.Net. Either way, when you're done, you'll be left with a profile ID (identifying the customer) and a payment profile ID (identifying a specific method of payment). Send those back in a regular charge transaction, and it will charge the card on file.

 

For more info on using the hosted forms, see the Customer Profiles docs.

Highlighted
Member
Posts: 1
Registered: ‎03-27-2020

Re: I got the token, now what?

I wonder if you can tell me how I can add image into my text. Surprisingly I have tried to learn it but I could not get the solution and https://grandwriters.net/cheap-assignment-help/ provides cheap essay work. Can you please inform me if you offer the complete course of programming language?

Member
Posts: 1
Registered: ‎08-12-2020

Re: I got the token, now what?

[ Edited ]

Hi Dan,

 

I'm a JavaScript developer and this question is also raising in my mind and got this forum post on Google while searching for my solution. One thing which not clear in my mind is that can I create a token on the frontend also? Will it safe or not? Actually I have read on a technology blog https://mytechmarvel.com/ that it is not safe to create a token on frontend but it is out of the scope of my mind why it is not safe? Can anyone please explain?

My name is Ashley and I'm 32 years old. I am a writer and also like listening to music.
Member
Posts: 1
Registered: ‎10-05-2020

Re: I got the token, now what?

You can learn the best programming courses. Arga