support accept.js
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
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.