You are here

function commerce_paypal_ipn_url in Commerce PayPal 7

Same name and namespace in other branches
  1. 7.2 commerce_paypal.module \commerce_paypal_ipn_url()

Returns the IPN URL.

Parameters

$method_id: Optionally specify a payment method ID to include in the URL.

2 calls to commerce_paypal_ipn_url()
commerce_paypal_wpp_submit_form_submit in modules/wpp/commerce_paypal_wpp.module
Payment method callback: checkout form submission.
commerce_paypal_wps_order_form in modules/wps/commerce_paypal_wps.module
Builds a Website Payments Standard form from an order object.

File

./commerce_paypal.module, line 40
Implements PayPal payment services for use with Drupal Commerce.

Code

function commerce_paypal_ipn_url($method_id = NULL) {
  $parts = array(
    'commerce_paypal',
    'ipn',
  );
  if (!empty($method_id)) {
    $parts[] = $method_id;
  }
  return url(implode('/', $parts), array(
    'absolute' => TRUE,
  ));
}