Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
During the checkout flow we need reserve the payment to get a credit check; we cant do this during the createPaymentMethod() function because we don't have the order and need to include the value.
Proposed resolution
Following the example in GoCardless we create a checkout pane on the review step. It will reserve the payment and the state "Credit approved" or redirect back to the previous step with a credit declined message.
Comments
Comment #3
dwkitchen CreditAttribution: dwkitchen at Centarro for Liip commented