Commit 9b43b29a authored by jsacksick's avatar jsacksick

Issue #3043104 by jsacksick: Display the Smart payment buttons in checkout.

parent b1fd903b
......@@ -559,3 +559,17 @@ function commerce_paypal_checkout_api_client($config) {
$instances[$config['client_id']] = new PayPalCheckoutClient($config);
return $instances[$config['client_id']];
}
/**
* Payment method callback: redirect form.
*/
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_id' => $order->order_id,
'#flow' => 'mark',
);
return $form;
}
......@@ -4,3 +4,6 @@
width: 50%;
}
}
.page-checkout-payment .checkout-help {
display: none;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment