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.3-py3-none-any.whl
.
File metadata
- Download URL: odoo14_addon_invader_payment_adyen-14.0.1.0.3-py3-none-any.whl
- Upload date:
- Size: 35.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/59.5.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d27e28cfb38f0e9d777a02071eb89b5905c874d6008ef7c6afe8805485504e4 |
|
MD5 | 56228a5fc02b750c6685c6527a62de65 |
|
BLAKE2b-256 | c91df8cc9846a07fb40d32029a74b1ab6e6eb3aa7209a3580bfe2e220dcc5428 |