မင်္ဂလာပါ!

လှိုက်လှဲစွာကြိုဆိုပါသည်။ ယခု ပထမဆုံးအကြိမ် ရောက်ဖူးခြင်းဖြစ်ပါသလား? ဝင်ရောက် ဆွေးနွေး မေးမြန်းလိုပါလျှင် အောက်တွင်ဖော်ပြထားသော button များမှတဆင့် ဝင်ရောက် ဆွေးနွေးနိုင်သကဲ့သို့ အဖွဲ့ဝင်အသစ်အနေဖြင့်လည်း လျှောက်ထားနိုင်ပါတယ်။

MYSTERY ZILLION တွင် English သို့မဟုတ် Unicode ဖြင့်သာ အသုံးပြုခွင့်ရှိသည်။ ဇော်ဂျီ ၊ ဧရာ စသည်တို့ကို အသုံးပြုခွင့် မရှိ။ Unicode fonts များမှာ Mon3,Yunghkio, Myanamr3 စသည်များ အသုံးပြုနိုင်သည်။ Unicode Guide ကို ဒီမှာ Download ချပါ။ Zawgyi to Unicode Converter
Don't share ebook or software if nobody request. You can find free book websites on here. We are welcome for discussion or asking question instead.

Is there any payment drupal module for 2c2p except ubercart?

I am start developing payment drupal module with 2c2p, anyone has experience in it ? I looked into ubercart,its complicated in my opinion.
Is it the same as the paypal payment module or buckaroo payment? pls share any instructions :D
Thanks

Tagged:

မှတ်ချက်များ

  • Registered Users

    9007 : merchant_id is not found.
    its keep showing like that?
    what does it mean??
    I tested with demo account
    JT02 YDRbw14OtHw3
    https://developers-2c2p-com.readme.io/v1.0/docs/sandbox

  • edited December 2016 Registered Users

    public function form(Payment $payment, $form, &$form_state) {
    global $base_url;

    $controller_data = $payment->method->controller_data;
    
    // Get settings from controller data.
    $merchant_id = $controller_data['msp_2c2p_id'];
    $secret_key = $controller_data['msp_2c2p_secret'];
    $url = $controller_data['msp_2c2p_mode'];
    $version = $controller_data['msp_2c2p_version'];
    $payment_description = 'null';
    $order_id='12';
    $invoice_no= '3';
    $currency='103';
    $customer_email='thaha@gmail.com';
    $pay_category_id='';
    $promotion='promotion';
    $user_defined_1='';
    $user_defined_2='';
    $user_defined_3='';
    $user_defined_4='';
    $user_defined_5='';
    $result_url_1=url('2c2p/complete/' );
    $result_url_2=url('2c2p/complete/' ); 
    $amount = '4';
    $payment_data = array(
      'amount' => $amount,
      'description' => $payment->description,
    );
    
    /*
     * @todo Make some options configurable.
     */
    
    $strSignatureString =$version . $merchant_id. $payment_description . $order_id . $invoice_no . $currency . $amount . $customer_email . $pay_category_id . $promotion . $user_defined_1 . $user_defined_2 . $user_defined_3 . $user_defined_4 . $user_defined_5 .$result_url_1.$result_url_2;
    
    $data = array(
    'merchant_id' => $merchant_id,
    'version' => $version,
    'payment_description' =>$payment_description,
    'order_id' => $order_id,
    'invoice_no' => $invoice_no,
    'currency' => $currency,
    'amount' => $amount,
    'customer_email' => $customer_email,
    'pay_category_id' => $pay_category_id,
    'promotion' => $promotion,
    'user_defined_1' => $user_defined_1,
    'user_defined_2' => $user_defined_2,
    'user_defined_3' => $user_defined_3,
    'user_defined_4' => $user_defined_4,
    'user_defined_5' => $user_defined_5,
    'hash_value' => hash_hmac('sha1', $strSignatureString, $secret_key, false),
    );
    

    the error is showing like 9002 : Payment authorization failed.
    Something wrong with my codes? Please help me bros :D

  • Administrators

    Already answer on stackover flow. It may be wrong secret key. Please check demo / production secret key.

    Thanked by 1 psychoz
  • Registered Users

    Country Currency Account Name Secret Key
    SINGAPORE SGD JT01 7jYcp4FxFdf0
    MYANMAR MMK* JT02 YDRbw14OtHw3
    INDONESIA IDR JT03 uA7yXRa8PjVe
    THAILAND THB JT04 QnmrnH6QE23N
    PHILIPPINES PHP JT05 B6LkVg5k07yg
    HONG KONG HKD JT06 gVULqA2gT6Gi
    I am testing with thoses merchant acc and secret key bro(expecially myanmar), and for the link
    https://demo2.2c2p.com/2C2PFrontEnd/RedirectV3/payment/

  • Administrators

    call 01 860 3378 , they can help you. Confirm with them for secret key and signature string.

    Thanked by 1 psychoz
  • edited January 9 Registered Users

    bro,i can passed now.The problem is with merchant account and secret key,and I requested to create merchant account for me.Thanks,btw,should i test with real mpu or credit account to pay for in demo mode or any testing mpu or credit account for demo mode?To test reponse back from 2c2p.

Sign In or Register to comment.