Plugin Directory

Changeset 2896947


Ignore:
Timestamp:
04/11/2023 07:25:37 AM (3 years ago)
Author:
hoangweb
Message:

update of my plugin

Location:
qh-testpay
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • qh-testpay/tags/1.0.2/inc/banks/class-qhpay-base.php

    r2782874 r2896947  
    720720            $pay_url = "";
    721721            if($bank=='momo') {
    722                 $img_url = get_rest_url(null, "qhtp/v1/qrcode?app=momo&phone={$accountNo}&price={$amount}");
     722                $img_url = get_rest_url(null, "bck/v1/qrcode?app=momo&phone={$accountNo}&price={$amount}&content=".urlencode($addInfo));
    723723            }
    724724            else if($bank=='viettelpay') {
  • qh-testpay/tags/1.0.2/inc/functions.php

    r2782874 r2896947  
    140140    if($phone && $price){
    141141        if($app=='momo') {
    142             $text = sprintf("2|99|%s|||0|0|%d", $phone, $price);
     142            $text = sprintf("2|99|%s|||0|0|%d|%s|transfer_myqr", $phone, $price,$content);
    143143            $img = QHTP_DIR.'/assets/momo.png';
    144144            QRcode::png($text, false, QR_ECLEVEL_Q, 10);
  • qh-testpay/trunk/inc/banks/class-qhpay-base.php

    r2757788 r2896947  
    720720            $pay_url = "";
    721721            if($bank=='momo') {
    722                 $img_url = get_rest_url(null, "qhtp/v1/qrcode?app=momo&phone={$accountNo}&price={$amount}");
     722                $img_url = get_rest_url(null, "bck/v1/qrcode?app=momo&phone={$accountNo}&price={$amount}&content=".urlencode($addInfo));
    723723            }
    724724            else if($bank=='viettelpay') {
  • qh-testpay/trunk/inc/functions.php

    r2771861 r2896947  
    140140    if($phone && $price){
    141141        if($app=='momo') {
    142             $text = sprintf("2|99|%s|||0|0|%d", $phone, $price);
     142            $text = sprintf("2|99|%s|||0|0|%d|%s|transfer_myqr", $phone, $price,$content);
    143143            $img = QHTP_DIR.'/assets/momo.png';
    144144            QRcode::png($text, false, QR_ECLEVEL_Q, 10);
Note: See TracChangeset for help on using the changeset viewer.