Created
May 5, 2016 14:39
-
-
Save DanielSantoro/28845501dc78659e9823b78c5a97657c to your computer and use it in GitHub Desktop.
Pro PayPal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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