Buttonsource should be bn
@coenjacobs doesn’t have to be in read me
This commit is contained in:
parent
2991bee0b5
commit
e61d580aba
|
@ -274,37 +274,37 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway {
|
||||||
// PayPal Args
|
// PayPal Args
|
||||||
$paypal_args = array_merge(
|
$paypal_args = array_merge(
|
||||||
array(
|
array(
|
||||||
'cmd' => '_cart',
|
'cmd' => '_cart',
|
||||||
'business' => $this->email,
|
'business' => $this->email,
|
||||||
'no_note' => 1,
|
'no_note' => 1,
|
||||||
'currency_code' => get_woocommerce_currency(),
|
'currency_code' => get_woocommerce_currency(),
|
||||||
'charset' => 'UTF-8',
|
'charset' => 'UTF-8',
|
||||||
'rm' => is_ssl() ? 2 : 1,
|
'rm' => is_ssl() ? 2 : 1,
|
||||||
'upload' => 1,
|
'upload' => 1,
|
||||||
'return' => esc_url( add_query_arg( 'utm_nooverride', '1', $this->get_return_url( $order ) ) ),
|
'return' => esc_url( add_query_arg( 'utm_nooverride', '1', $this->get_return_url( $order ) ) ),
|
||||||
'cancel_return' => esc_url( $order->get_cancel_order_url() ),
|
'cancel_return' => esc_url( $order->get_cancel_order_url() ),
|
||||||
'page_style' => $this->page_style,
|
'page_style' => $this->page_style,
|
||||||
'paymentaction' => $this->paymentaction,
|
'paymentaction' => $this->paymentaction,
|
||||||
'BUTTONSOURCE' => 'WooThemes_Cart',
|
'bn' => 'WooThemes_Cart',
|
||||||
|
|
||||||
// Order key + ID
|
// Order key + ID
|
||||||
'invoice' => $this->invoice_prefix . ltrim( $order->get_order_number(), '#' ),
|
'invoice' => $this->invoice_prefix . ltrim( $order->get_order_number(), '#' ),
|
||||||
'custom' => serialize( array( $order_id, $order->order_key ) ),
|
'custom' => serialize( array( $order_id, $order->order_key ) ),
|
||||||
|
|
||||||
// IPN
|
// IPN
|
||||||
'notify_url' => $this->notify_url,
|
'notify_url' => $this->notify_url,
|
||||||
|
|
||||||
// Billing Address info
|
// Billing Address info
|
||||||
'first_name' => $order->billing_first_name,
|
'first_name' => $order->billing_first_name,
|
||||||
'last_name' => $order->billing_last_name,
|
'last_name' => $order->billing_last_name,
|
||||||
'company' => $order->billing_company,
|
'company' => $order->billing_company,
|
||||||
'address1' => $order->billing_address_1,
|
'address1' => $order->billing_address_1,
|
||||||
'address2' => $order->billing_address_2,
|
'address2' => $order->billing_address_2,
|
||||||
'city' => $order->billing_city,
|
'city' => $order->billing_city,
|
||||||
'state' => $order->billing_state,
|
'state' => $order->billing_state,
|
||||||
'zip' => $order->billing_postcode,
|
'zip' => $order->billing_postcode,
|
||||||
'country' => $order->billing_country,
|
'country' => $order->billing_country,
|
||||||
'email' => $order->billing_email
|
'email' => $order->billing_email
|
||||||
),
|
),
|
||||||
$phone_args
|
$phone_args
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue