Plugin Directory

Changeset 2612442


Ignore:
Timestamp:
10/11/2021 10:38:40 AM (4 years ago)
Author:
best2pay
Message:

deferred mode, authorize callback, minor edits in the shopping cart

Location:
best2pay-payment-method-visamastercard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • best2pay-payment-method-visamastercard/best2pay-payment_method.php

    r2584113 r2612442  
    1818 * Plugin URI: http://best2pay.net/
    1919 * Description: Receive payments via Visa/Mastercard easily with Best2Pay bank cards processing
    20  * Version: 1.1.4
     20 * Version: 1.1.5
    2121 * Author: Best2Pay
    2222 * Tested up to: 5.7.1
     
    236236            $signature = base64_encode(md5($this->sector . $b2p_order_id . $this->password));
    237237
    238             $order->update_status('on-hold');
     238            // $order->update_status('on-hold');
    239239
    240240            if ($this->deferred) {
     
    384384
    385385            // 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')
    387387                return false;
    388388
     
    391391            unset($tmp_response["signature"]);
    392392            unset($tmp_response["ofd_state"]);
     393            unset($tmp_response["protocol_message"]);
    393394
    394395            $signature = base64_encode(md5(implode('', $tmp_response) . $this->password));
  • best2pay-payment-method-visamastercard/trunk/best2pay-payment_method.php

    r2584113 r2612442  
    1818 * Plugin URI: http://best2pay.net/
    1919 * Description: Receive payments via Visa/Mastercard easily with Best2Pay bank cards processing
    20  * Version: 1.1.4
     20 * Version: 1.1.5
    2121 * Author: Best2Pay
    2222 * Tested up to: 5.7.1
     
    236236            $signature = base64_encode(md5($this->sector . $b2p_order_id . $this->password));
    237237
    238             $order->update_status('on-hold');
     238            // $order->update_status('on-hold');
    239239
    240240            if ($this->deferred) {
     
    384384
    385385            // 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')
    387387                return false;
    388388
     
    391391            unset($tmp_response["signature"]);
    392392            unset($tmp_response["ofd_state"]);
     393            unset($tmp_response["protocol_message"]);
    393394
    394395            $signature = base64_encode(md5(implode('', $tmp_response) . $this->password));
Note: See TracChangeset for help on using the changeset viewer.