You are here

function commerce_payflow_link_hosted_checkout_iframe in Commerce PayPal 7.2

Returns an iframe embedding the specified Payflow Link Hosted Checkout page.

Parameters

$payment_method: The payment method instance used to generate a Secure Token for the order.

$order: The order object the hosted checkout is for.

Return value

The iframe HTML to use to embed Payflow's Hosted Checkout page on-site.

1 call to commerce_payflow_link_hosted_checkout_iframe()
commerce_payflow_link_redirect_form in modules/payflow/commerce_payflow.module
Payment method callback: redirect form.

File

modules/payflow/commerce_payflow.module, line 1411
Implements PayPal Payments Advanced (U.S. only) and Payflow Link Hosted Checkout pages and Transparent Redirect.

Code

function commerce_payflow_link_hosted_checkout_iframe($payment_method, $order) {
  $name = $payment_method['method_id'] == 'payflow_link' ? 'embedded-payflow-link' : 'embedded-paypal-ppa';
  return '<iframe src="' . commerce_payflow_link_hosted_checkout_url($payment_method, $order) . '" name="' . $name . '" scrolling="no" frameborder="0" width="490px" height="565px"></iframe>';
}