Commerce Marketplace Ogone

This module adapts Commerce Ogone functionality for Commerce Marketplace.

This module adapts Commerce Ogone functionality for Commerce Marketplace.

It has been developed during Drupal Developer Days Montpellier 2015 as an example of a Drupal Commerce payment method adaptation for Commerce Marketplace.

Details

By default, as any other payment method for Drupal Commerce, Commerce Ogone requests payment for the last user's order only.

When using Commerce Marketplace though, during the checkout multiple orders (from the same order group) might be processed at the same time, thus when requesting a payment the total amount for all such orders needs to be requested, and then the feedback returned by Ogone API needs to be processed accordingly.

This module overrides several native Commerce Ogone functions to make it aware of order groups and function properly with multiple orders being processed in a single checkout session.

No parallel payments!

Note that as Ogone does not support any marketplace-related functionality, this module does not support parallel payments (sending multiple payments to multiple vendors in a single checkout session). It only allows for requesting payment for the total amount of all orders from one order group during a single checkout session.