Skip to content

Instantly share code, notes, and snippets.

@AaronBowie
Created September 28, 2020 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AaronBowie/36dea65fac4475ba33fddd68142e1b14 to your computer and use it in GitHub Desktop.
Save AaronBowie/36dea65fac4475ba33fddd68142e1b14 to your computer and use it in GitHub Desktop.
ePDQ_custom_order_id - passing custom order ID to ePDQ
define('ePDQ_custom_order_id',TRUE);
add_action('ePDQ_custom_order_id', 'my_ePDQ_custom_order_id');
function my_ePDQ_custom_order_id( $order ) {
$invoice_number= $order->get_id(); // invoice number
return $invoice_number;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment