Plugin Directory

Changeset 2205831


Ignore:
Timestamp:
12/04/2019 10:54:07 AM (6 years ago)
Author:
unlocklive
Message:

paysenz.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • woo-paysenz-payment-gateway/trunk/paysenz.php

    r2205828 r2205831  
    44Plugin URI:  http://unlocklive.com
    55Description: Allow mobile banking (Bkash, Rocket), Visa & Mastercard payments within your woocommerce stores and wordpress. Paysenz combines the open mobile banking api, open visa api to bring you the latest in Payments.
    6 Version:     1.0.0
     6Version:     1.0.1
    77Author:      Unlocklive Team
    88Author URI:  https://paysenz.net
     
    206206
    207207                    // The text for the note
    208                     $make_notes = 'Total Amount: '.sanitize_text_field($_POST['payment_status']).', Paysenz Txn ID: '.sanitize_text_field($_POST['psz_txnid']).', Merchant Txn ID: '.sanitize_text_field($_POST['merchant_txnid']).', Type: '.sanitize_text_field($_POST['payment_type']).', Currency: '.sanitize_text_field($_POST['merchant_currency']).'';
     208                    $make_notes = 'Payment Status: '.sanitize_text_field($_POST['payment_status']).', Total Amount: '.sanitize_text_field($_POST['amount']).', Paysenz Txn ID: '.sanitize_text_field($_POST['psz_txnid']).', Merchant Txn ID: '.sanitize_text_field($_POST['merchant_txnid']).', Type: '.sanitize_text_field($_POST['payment_type']).', Currency: '.sanitize_text_field($_POST['merchant_currency']).'';
    209209
    210210                    // Add the note
     
    228228
    229229                    // The text for the note
    230                     $make_notes = 'Total Amount: '.sanitize_text_field($_POST['payment_status']).', Paysenz Txn ID: '.sanitize_text_field($_POST['psz_txnid']).', Merchant Txn ID: '.sanitize_text_field($_POST['merchant_txnid']).', Type: '.sanitize_text_field($_POST['payment_type']).', Currency: '.sanitize_text_field($_POST['merchant_currency']).'';
     230                    $make_notes = 'Payment Status: '.sanitize_text_field($_POST['payment_status']).', Total Amount: '.sanitize_text_field($_POST['amount']).', Paysenz Txn ID: '.sanitize_text_field($_POST['psz_txnid']).', Merchant Txn ID: '.sanitize_text_field($_POST['merchant_txnid']).', Type: '.sanitize_text_field($_POST['payment_type']).', Currency: '.sanitize_text_field($_POST['merchant_currency']).'';
    231231
    232232                    // Add the note
     
    235235                    // save
    236236                    $order->save();
    237                    
     237
    238238                    $order->payment_complete();
    239239                    //$order->wc_reduce_stock_levels();
Note: See TracChangeset for help on using the changeset viewer.