1
Answers
Vote up!
1
Vote down!

Use payment method option in off site payment method

Hello all,

I try to use an option from the form I defined in : CALLBACK_commerce_payment_method_submit_form
But with an off site payment method.

Actually I can see that i'm able to read the submitted values in:
CALLBACK_commerce_payment_method_submit_form_validate
CALLBACK_commerce_payment_method_submit_form_submit

But I have no idea on how to get it in :
CALLBACK_commerce_payment_method_redirect_form

So I can craft the $form['#action'] depending on the user choice.

Any ideas ?
Thanks

Asked by: gaetanp
on February 24, 2014

1 Answer

Vote up!
2
Vote down!

Found the answer in the hook_payment_method_submit_form_submit() you can store the setting in the $order->data object.

Thanks for nothing drupal commerce support :)

BTW naming a function xxx_submit_form_submit(), were your entire team drunk on this very special day ?

Answer by: gaetanp
Posted: Feb 26, 2014

Comments

thanks @gaetanp for your answer, was very useful.

- cigocf on September 14, 2016