function commerce_paypal_ipn_url in Commerce PayPal 7.2
Same name and namespace in other branches
- 7 commerce_paypal.module \commerce_paypal_ipn_url()
Returns the IPN URL.
Parameters
$method_id: Optionally specify a payment method instance ID to include in the URL.
4 calls to commerce_paypal_ipn_url()
- commerce_payflow_link_create_secure_token in modules/
payflow/ commerce_payflow.module - Requests a Secure Token from Payflow for use in follow-up API requests.
- commerce_paypal_ec_do_payment in modules/
ec/ commerce_paypal_ec.module - Confirm an Express Checkout payment for an order for the specified charge amount with a DoExpressCheckoutPayment API request.
- 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($instance_id = NULL) {
$parts = array(
'commerce_paypal',
'ipn',
);
if (!empty($instance_id)) {
$parts[] = $instance_id;
}
return url(implode('/', $parts), array(
'absolute' => TRUE,
));
}