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

support accept.js #80

Open
striveforbest opened this issue Mar 28, 2018 · 1 comment
Open

support accept.js #80

striveforbest opened this issue Mar 28, 2018 · 1 comment

Comments

@striveforbest
Copy link

Is there a way to use this app with payment nonce (dataValueDescriptor) retrieved by accept.js? That seems like the most logic way instead of passing sensitive information like credit card from frontend to backend via network.

I am using accept.js to validate credit card information on the frontend, auth.net returns DataValueDescriptor which lets me use it to charge the card within 15 minutes. I pass the DataValueDescriptor on form submission to the backend (instead of CC information) and ready to charge the card. How do I do that?

Reference:
https://developer.authorize.net/api/reference/features/acceptjs.html#response-handling

@tarunbhardwaj
Copy link

tarunbhardwaj commented Oct 29, 2018

Just implemented and released https://github.com/fulfilio/py-authorize
pip install fio-py-authorize

Usage:

        credit_card = authorize.CreditCard.create(customer.customer_id, {
            'opaque_data': {
                'data_descriptor': '...',
                'data_value': '...'
            }
        })

On this repo card info will be sent under credit_card key.

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