py-authorize icon indicating copy to clipboard operation
py-authorize copied to clipboard

support accept.js

Open striveforbest opened this issue 7 years ago • 1 comments

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

striveforbest avatar Mar 28 '18 00:03 striveforbest

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.

tarunbhardwaj avatar Oct 29 '18 10:10 tarunbhardwaj