Skip to content

Instantly share code, notes, and snippets.

@DanielSantoro
Created May 5, 2016 14:39
Show Gist options
  • Save DanielSantoro/28845501dc78659e9823b78c5a97657c to your computer and use it in GitHub Desktop.
Save DanielSantoro/28845501dc78659e9823b78c5a97657c to your computer and use it in GitHub Desktop.
Pro PayPal
// Shipping
if ( ( $order->get_total_shipping() + $order->get_shipping_tax() ) > 0 ) {
$post_data[ 'L_NAME' . $item_loop ] = 'Shipping';
$post_data[ 'L_DESC' . $item_loop ] = 'Shipping and shipping taxes';
$post_data[ 'L_COST' . $item_loop ] = $order->get_total_shipping() + $order->get_shipping_tax();
$post_data[ 'L_QTY' . $item_loop ] = 1;
$ITEMAMT += $order->get_total_shipping() + $order->get_shipping_tax();
$item_loop++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment