function commerce_paypal_checkout_redirect_form in Commerce PayPal 7.2
Payment method callback: redirect form.
File
- modules/
checkout/ commerce_paypal_checkout.module, line 912 - Implements PayPal Checkout in Drupal Commerce checkout.
Code
function commerce_paypal_checkout_redirect_form($form, &$form_state, $order, $payment_method) {
$form['smart_payment_buttons'] = array(
'#theme' => 'commerce_paypal_checkout_smart_payment_buttons',
'#payment_method' => $payment_method,
'#commit' => TRUE,
'#order' => $order,
'#flow' => 'mark',
);
return $form;
}