Module provides Ingenico ePayments (aka Ogone) integration for the Drupal Commerce framework.
Module provides 2 payment gateways:
Both payment gateways support Authorize and capture and Authorize only transaction modes, as selected on Commerce's Checkout flow configuration page. The Authorize only transaction mode allows merchants to capture a transaction at a later time, which can be useful for avoiding refunds.
Both gateways support 3-D Secure credit card authentication when available.
e-Commerce does the authentication by default, without any additional configuration required (if only the credit card being used supports it), while in case of DirectLink 3-D Secure needs to be enabled first on the payment gateway configuration page.
Note that to use 3-D Secure authentication with DirectLink, the e-Commerce payment gateway needs to be defined as well, as when using 3-D Secure the payments initiated in DirectLink mode will end in e-Commerce mode.
Both payment gateways support the following maintenance operations:
DirectLink gateway supports Ingenico's Alias Gateway, which allows reusing credit cards for future payments without re-entering their details each time.
No sensitive credit card information is stored locally - instead only the credit card alias generated by the Alias Gateway after the first payment is stored and used for all future payments.
Currently it is not possible to create and use credit card aliases with e-Commerce gateway, as it is not supported by Drupal Commerce yet. See relevant d.o. issue Allow offsite payment gateways to create and use payment methods for more information.
e-Commerce gateway provides multilingual support, with any off-site pages (including 3-D Secure) being rendered in the language selected by the merchant in the gateway configuration.
It is not yet possible to create and use credit card aliases with off-site e-Commerce gateway, as it is not supported by Drupal Commerce yet. See relevant d.o. issue Allow offsite payment gateways to create and use payment methods for more information.
When adding a new payment for orders created from the admin UI using a credit card that supports 3-D Secure, the return from the 3-D Secure pages fails. There is a pull request waiting to be merged into Drupal Commerce that will fix the issue.
Log in with your Ingenico merchant account to the test or prod environment (depending which one you want to configure)
Make sure your test account is properly configured and activated
In Configuration > Account > Your options you should have at least the following options activated:
You might need to contact Ingenico's Customer Care team to activate some of them.
In Configuration > Users: create a special API user that will be used for the API calls by Drupal - click on the New user button, enter required details, select Admin profile and check the Special user for API (no access to admin) checkbox.
In Configuration > Technical information:
Tab Global transaction parameters:
Tab Global security parameters:
Tab Data and origin verification:
Tab Transaction feedback:
https://yoursite.com/payment/notify/<PARAMVAR>
Tab Transaction e-mails (optionally):
Use Composer to get the module with all its dependencies:
commerce require drupal/commerce_ingenico
Alternatively download the module manually together with marlon-ogone and mobiledetectlib libraries.
Add payment gateways at Administration > Commerce > Configuration > Payment gateways. The settings for both gateways are pretty much the same and should reflect your Ingenico account settings.
You might also want to change / verify the Transaction mode setting to be either Authorize and capture or Authorize only - at Administration > Commerce > Configuration > Checkout flows.
Make sure that your site is visible from the Internet, as otherwise you will not be able to receive asynchronous server-to-server notifications, which are required to update to payment transaction status.
For testing the integration on local installations you might use a service like Pagekite to make your local site visible from the Internet.
Brand | Type | Card number | Expiry date | 3DS Password |
---|---|---|---|---|
Visa* | unknown | 4111111111111111 | Any date in the future | |
Visa | credit | 4000024329596391 | Any date in the future | |
Visa | debit | 4000068558002134 | Any date in the future | |
MasterCard | credit | 5399999999999999 | Any date in the future | |
MasterCard | debit | 5101169573112521 | Any date in the future | |
MasterCard | unknown | 5100867871071536 | Any date in the future | |
Visa with 3-D Secure | 4000000000000002 | Any date in the future | 11111 | |
MasterCard with 3-D Secure | 5300000000000006 | Any date in the future | 11111 | |
American Express with 3-D Secure | 371449635311004 | Any date in the future | 11111 |
*) Although this is a generally accepted test card, if you have configured not to accept "unknown" card types, tests with this card number will be declined.