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

Programmatically authorizing or capturing the payment #29

Open
umarch06 opened this issue Sep 14, 2018 · 0 comments
Open

Programmatically authorizing or capturing the payment #29

umarch06 opened this issue Sep 14, 2018 · 0 comments

Comments

@umarch06
Copy link

I can understand that for getting token from Authorize.net for saving a profile id for a customer the extension hits https://apitest.authorize.net/xml/v1/request.api using the payload as following (This is just a sample payload):

{"securePaymentContainerRequest":{"merchantAuthentication":{"name":"merchantauthhere","clientKey":"sampleclientkey"},"data":{"type":"TOKEN","id":"26dsd7de-0524-a83b-4486-fc49c7080247","token":{"cardNumber":"5424000000000015","expirationDate":"022022","cardCode":"123"}}}}

This token is then used in the payment transaction request - that's what happening uptil now as per the extension.

Question:
Now in my case I need to add authorize & capture payment programmatically. I try to set payment method within code as pmclain_authorizenetcim and set required credit card details in order to even get authorized but I get exception due to missing data (token and other credit card details offcourse).

Can you please let me know if making payment programmetically is possible in this module in some different way which I didn't find yet? If not, can you please suggest me some better ways to achieve my requirement.

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

1 participant