Skip to content

Commit

Permalink
Fixes issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Angell committed Mar 12, 2014
1 parent 8d4d5ff commit 22d8f85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/wc-gateway-paypal-express-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ function ConfirmPayment($FinalPaymentAmt)
if (!empty($this->confirm_order_id))
{
$order = new WC_Order($this->confirm_order_id);
$invoice_number = str_replace("#","",$order->get_order_number());
$invoice_number = preg_replace("/[^0-9,.]/", "", $order->get_order_number());

if ( $order->customer_note )
{
Expand Down
2 changes: 1 addition & 1 deletion classes/wc-gateway-paypal-pro-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ function do_payment($order, $card_number, $card_type, $card_exp_month, $card_exp
'handlingamt' => '', // Total handling costs for the order. If you specify handlingamt, you must also specify itemamt.
'desc' => '', // Description of the order the customer is purchasing. 127 char max.
'custom' => $order->customer_note ? wptexturize($order->customer_note) : '', // Free-form field for your own use. 256 char max.
'invnum' => str_replace("#","",$order->id), // Your own invoice or tracking number
'invnum' => $invoice_number = preg_replace("/[^0-9,.]/", "", $order->id), // Your own invoice or tracking number
'notifyurl' => '', // URL for receiving Instant Payment Notifications. This overrides what your profile is set to use.
'recurring' => '' // Flag to indicate a recurring transaction. Value should be Y for recurring, or anything other than Y if it's not recurring. To pass Y here, you must have an established billing agreement with the buyer.
);
Expand Down
2 changes: 1 addition & 1 deletion classes/wc-gateway-paypal-pro-payflow-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ function do_payment( $order, $card_number, $card_exp, $card_csc, $centinelPAResS
'cvv2'=>$card_csc, // A code printed on the back of the card (or front for Amex)
'recurring'=>'', // Identifies the transaction as recurring. One of the following values: Y = transaction is recurring, N = transaction is not recurring.
'swipe'=>'', // Required for card-present transactions. Used to pass either Track 1 or Track 2, but not both.
'orderid'=>str_replace("#","",$order->get_order_number()), // Checks for duplicate order. If you pass orderid in a request and pass it again in the future the response returns DUPLICATE=2 along with the orderid
'orderid'=>preg_replace("/[^0-9,.]/", "", $order->get_order_number()), // Checks for duplicate order. If you pass orderid in a request and pass it again in the future the response returns DUPLICATE=2 along with the orderid
'orderdesc'=>'Order ' . $order->get_order_number() . ' on ' . get_bloginfo( 'name' ), //
'billtoemail'=>$order->billing_email, // Account holder's email address.
'billtophonenum'=>'', // Account holder's phone number.
Expand Down

0 comments on commit 22d8f85

Please sign in to comment.