You are here

function commerce_paypal_ipn_invoice in Commerce PayPal 7

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

Returns a unique invoice number based on the Order ID and timestamp.

1 call to commerce_paypal_ipn_invoice()
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 248
Implements PayPal payment services for use with Drupal Commerce.

Code

function commerce_paypal_ipn_invoice($order) {
  return $order->order_id . '-' . REQUEST_TIME;
}