In commerce_payment.api.php, CALLBACK_commerce_payment_method_redirect_form_back($form, &$form_state, $order, $payment_method) has the wrong arguments. Only $order and $payment_method are actually passed (as called by commerce_payment_redirect_pane_checkout_form).

CommentFileSizeAuthor
#1 commerce-payment-api-2213235-1.patch680 bytesjromine

Comments

jromine’s picture

Status: Active » Needs review
StatusFileSize
new680 bytes

Patch attached

mglaman’s picture

Status: Needs review » Reviewed & tested by the community

Applies, correct. Definitely useful in helping untangle how to do custom payment modules.

    // Perform any payment cancellation functions if necessary.
    if ($callback = commerce_payment_method_callback($payment_method, 'redirect_form_back')) {
      $callback($order, $payment_method);
    }
rszrama’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

  • rszrama committed 17cd957 on 7.x-1.x authored by jromine
    Issue #2213235 by jromine: fix some function parameters in the Payment...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.