Skip to content

Commit

Permalink
Express Checkout - Invalid Token, ref #337
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Apr 28, 2017
1 parent cca6be2 commit edf4185
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 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 @@ -667,7 +667,7 @@ public function process_payment($order_id) {
'redirect' => $return_url,
);
if (isset($_POST['terms']) && wc_get_page_id('terms') > 0) {
WC()->session->get( 'paypal_express_terms', true );
WC()->session->set( 'paypal_express_terms', true );
}
if (is_ajax()) {
if ($this->function_helper->ec_is_version_gte_2_4()) {
Expand Down
1 change: 0 additions & 1 deletion paypal-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,6 @@ public function angelleye_paypal_express_checkout_process_checkout_fields() {
}

private function set_session($key, $value) {
WC()->session->$key = $value;
WC()->session->set( $key, $value );
}
public function http_api_curl_ec_add_curl_parameter($handle, $r, $url ) {
Expand Down

0 comments on commit edf4185

Please sign in to comment.