Changeset 2612442
- Timestamp:
- 10/11/2021 10:38:40 AM (4 years ago)
- Location:
- best2pay-payment-method-visamastercard
- Files:
-
- 2 edited
-
best2pay-payment_method.php (modified) (4 diffs)
-
trunk/best2pay-payment_method.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
best2pay-payment-method-visamastercard/best2pay-payment_method.php
r2584113 r2612442 18 18 * Plugin URI: http://best2pay.net/ 19 19 * Description: Receive payments via Visa/Mastercard easily with Best2Pay bank cards processing 20 * Version: 1.1. 420 * Version: 1.1.5 21 21 * Author: Best2Pay 22 22 * Tested up to: 5.7.1 … … 236 236 $signature = base64_encode(md5($this->sector . $b2p_order_id . $this->password)); 237 237 238 $order->update_status('on-hold');238 // $order->update_status('on-hold'); 239 239 240 240 if ($this->deferred) { … … 384 384 385 385 // check payment state 386 if (($response->type != 'PURCHASE' && $response->type != 'EPAYMENT' ) || $response->state != 'APPROVED')386 if (($response->type != 'PURCHASE' && $response->type != 'EPAYMENT' && $response->type != 'AUTHORIZE') || $response->state != 'APPROVED') 387 387 return false; 388 388 … … 391 391 unset($tmp_response["signature"]); 392 392 unset($tmp_response["ofd_state"]); 393 unset($tmp_response["protocol_message"]); 393 394 394 395 $signature = base64_encode(md5(implode('', $tmp_response) . $this->password)); -
best2pay-payment-method-visamastercard/trunk/best2pay-payment_method.php
r2584113 r2612442 18 18 * Plugin URI: http://best2pay.net/ 19 19 * Description: Receive payments via Visa/Mastercard easily with Best2Pay bank cards processing 20 * Version: 1.1. 420 * Version: 1.1.5 21 21 * Author: Best2Pay 22 22 * Tested up to: 5.7.1 … … 236 236 $signature = base64_encode(md5($this->sector . $b2p_order_id . $this->password)); 237 237 238 $order->update_status('on-hold');238 // $order->update_status('on-hold'); 239 239 240 240 if ($this->deferred) { … … 384 384 385 385 // check payment state 386 if (($response->type != 'PURCHASE' && $response->type != 'EPAYMENT' ) || $response->state != 'APPROVED')386 if (($response->type != 'PURCHASE' && $response->type != 'EPAYMENT' && $response->type != 'AUTHORIZE') || $response->state != 'APPROVED') 387 387 return false; 388 388 … … 391 391 unset($tmp_response["signature"]); 392 392 unset($tmp_response["ofd_state"]); 393 unset($tmp_response["protocol_message"]); 393 394 394 395 $signature = base64_encode(md5(implode('', $tmp_response) . $this->password));
Note: See TracChangeset
for help on using the changeset viewer.