Adds a new payment service for Adyen
Project description
This module implements rest services for Adyen payments.
Table of contents
Configuration
Go to Invoicing > Payment Acquirers > Adyen
Add the Api key corresponding to the backend user
Usage
This has been developed following https://docs.adyen.com/checkout/drop-in-web and will allow to get automatic payment form generated by Adyen like:
Four services are exposed to manage payments with Adyen.
Here are the services (that can be explored and tested with Swagger):
paymentMethods
This will call Adyen to retrieve all backend configured payment methods that correspond to the “payable” object (in terms of amount, country, currency, … see Adyen)
This takes as parameters:
target: (eg.: “current_cart”)
payment_mode_id: The Adyen payment mode
This will return a dict containing payment methods that are activated on the Adyen backend and intended to be passed to the drop-in widget.
{
"paymentMethods":[
{
"details":[...],
"name":"Credit Card",
"type":"scheme"
...
},
{
"details":[...],
"name":"SEPA Direct Debit",
"type":"sepadirectdebit"
},
...
]
}
payments
This will initiate the payment itself.
This takes as parameters:
target: (eg.: “current_cart”)
payment_mode_id: The Adyen payment mode
transaction_id: The current transaction
payment_method: The Adyen payment method chosen (bcmc, scheme, …)
return_url: The url to return to in case of redirection
This will return a dict containing payment response containing :
{
"resultCode":"IdentifyShopper",
"action":{
"paymentMethodType":"scheme",
"token":"eyJ0aHJlZURTTWV0aG9kTm90aWZpY...",
"type":"threeDS2Fingerprint"
},
"authentication":{
"threeds2.fingerprintToken":"eyJ0aHJlZURTTWV0aG9kTm90aWZpY..."
},
"details":[
{
"key":"threeds2.fingerprint",
"type":"text"
}
],
"paymentData":"Ab02b4c0!BQABAgCuZFJrQOjSsl\/zt+..."
}
payment_details
This will allow to pass further details required by provider
This takes as parameters:
data
transaction_id
This will return :
{
data: {
details: {
threeds2.fingerprint: "eyJ0aHJlZURTQ29tcEluZCI6IlkifQ=="
},
paymentData: "Ab02b4c0!BQABAgAKspbjN8+5..."
}
}
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
Denis Roussel <denis.roussel@acsone.eu>
François Honoré <francois.honore@acsone.eu>
Maintainers
Current maintainer:
This module is part of the shopinvader/odoo-shopinvader-payment project on GitHub.
You are welcome to contribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file odoo14_addon_invader_payment_adyen-14.0.1.0.4-py3-none-any.whl
.
File metadata
- Download URL: odoo14_addon_invader_payment_adyen-14.0.1.0.4-py3-none-any.whl
- Upload date:
- Size: 36.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bf7f45b0835ac685e853499d2edf8399107c40e719c7a6014dc3154acec380d |
|
MD5 | 67bfd9b0fcce02f3f2462819461fb2d0 |
|
BLAKE2b-256 | f610d16f9c7df2039b05fe28f3b7ba344068d5ae68605fb0ebd6bf7346e1239e |