mobile-sdk icon indicating copy to clipboard operation
mobile-sdk copied to clipboard

Không mở được app test - React Native

Open Giangdt1001 opened this issue 3 years ago • 21 comments

Không thể mở được app test. đây là request { "enviroment": "0", "action": "gettoken", "partner": "merchant", "merchantcode": "MOMOCOMU20200526", "merchantname": "Bệnh Viện E", "merchantnamelabel": "Người nhận", "description": "Thanh toán cho mã đặt khám F84F031", "amount": 250000, "orderId": "F84F031", "orderLabel": "Mã khám bệnh", "appScheme": "momocomu20200526" }

Giangdt1001 avatar Oct 21 '21 01:10 Giangdt1001

Không thể mở được app test. đây là request { "enviroment": "0", "action": "gettoken", "partner": "merchant", "merchantcode": "MOMOCOMU20200526", "merchantname": "Bệnh Viện E", "merchantnamelabel": "Người nhận", "description": "Thanh toán cho mã đặt khám F84F031", "amount": 250000, "orderId": "F84F031", "orderLabel": "Mã khám bệnh", "appScheme": "momocomu20200526" } bạn mở app test bạn thử thêm
jsonData.isDev = true; //SANBOX only , remove this key on PRODUCTION

tuetran0795 avatar Oct 21 '21 08:10 tuetran0795

Không thể mở được app test. đây là request { "enviroment": "0", "action": "gettoken", "partner": "merchant", "merchantcode": "MOMOCOMU20200526", "merchantname": "Bệnh Viện E", "merchantnamelabel": "Người nhận", "description": "Thanh toán cho mã đặt khám F84F031", "amount": 250000, "orderId": "F84F031", "orderLabel": "Mã khám bệnh", "appScheme": "momocomu20200526" } bạn mở app test bạn thử thêm jsonData.isDev = true; //SANBOX only , remove this key on PRODUCTION

Vẫn k thể mở được app test

Giangdt1001 avatar Nov 09 '21 03:11 Giangdt1001

Bạn đang bị ở trên android hay IOS, nếu như trên android bạn thử cập nhật react-native-momosdk mới nhất, hoặc thêm queries> package android:name="com.mservice.momotransfer" /> package android:name="vn.momo.platform.test" /> </queries vào file android/your_project/src/main/AndroidManifest.xml

tuetran0795 avatar Nov 09 '21 03:11 tuetran0795

Bạn đang bị ở trên android hay IOS, nếu như trên android bạn thử cập nhật react-native-momosdk mới nhất, hoặc thêm queries> package android:name="com.mservice.momotransfer" /> package android:name="vn.momo.platform.test" /> </queries vào file android/your_project/src/main/AndroidManifest.xml

Trên ios thì ntn vậy b

Giangdt1001 avatar Nov 10 '21 06:11 Giangdt1001

bên IOS mình kiểm tra lại vẫn thấy hoạt động bình thường bạn

tuetran0795 avatar Nov 10 '21 06:11 tuetran0795

bên IOS mình kiểm tra lại vẫn thấy hoạt động bình thường bạn

Hiện tại m đang dùng version 1.4.3 trên ios đang bị nhảy vào apple stores

Giangdt1001 avatar Nov 10 '21 07:11 Giangdt1001

trên android mình cũng bị vấn đề trên. nó nhảy về Google Play. -version: 1.4.3

  • RN: 0.66.0
  • installed momo app

đã thử thêm ... vào manifest, nhưng vẫn không có gì thay đổi

mọi người có giải pháp nào không? xin hỗ trợ

thuantvDr4 avatar Jan 25 '22 01:01 thuantvDr4

bên mình vừa thử lại thì thấy version1.4.3 vẫn đang chuyển qua đúng app momo. bạn check giúp mình momo app test hay là momo CHplay đã install trên máy được không. jsonData.enviroment = enviroment; //'0': TEST , '1': PRODUCTION

import {StyleSheet, View, Platform, Button} from 'react-native';
import RNMomosdk from 'react-native-momosdk';
const merchantname = 'CGV Cinemas';
const merchantcode = 'CGV01';
const merchantNameLabel = 'Nhà cung cấp';
const billdescription = 'Fast and Furious 8';
const amount = 50000;
const enviroment = '0'; //'0': SANBOX , '1': PRODUCTION

export default class App extends React.Component {
  onPress = async () => {
    let jsonData = {};
    jsonData.enviroment = enviroment; //'0': SANBOX , '1': PRODUCTION
    jsonData.action = 'gettoken';
    //jsonData.isDev = true; //SANBOX only , remove this key on PRODUCTION
    jsonData.merchantname = merchantname;
    jsonData.merchantcode = merchantcode;
    jsonData.merchantnamelabel = merchantNameLabel;
    jsonData.description = billdescription;
    jsonData.amount = amount;
    jsonData.orderId = 'bill234284290348';
    jsonData.requestId = 'your_requestId';
    jsonData.orderLabel = 'Ma don hang';
    jsonData.appScheme = 'momocgv20170101'; // iOS App Only , get from Info.plist > key URL types > URL Schemes. Check Readme
    if (Platform.OS === 'android') {
      let dataPayment = await RNMomosdk.requestPayment(jsonData);
      this.momoHandleResponse(dataPayment);
    } else {
      RNMomosdk.requestPayment(jsonData);
    }
  };
  momoHandleResponse = async response => {
    try {
      if (response && response.status === 0) {
        //SUCCESS continue to submit momoToken,phonenumber to server
      } else {
      }
    } catch (ex) {}
  };
  render() {
    return (
      <View style={styles.boxStyles}>
        <Button title={'Pay MOMO'} onPress={() => this.onPress()} />
      </View>
    );
  }
}
const styles = StyleSheet.create({
  boxStyles: {
    flex: 1,
    justifyContent: 'center',
    alignContent: 'center',
  },
});

tuetran0795 avatar Jan 26 '22 02:01 tuetran0795

trên IOS thêm query schemes vào project/info.plist

<key>LSApplicationQueriesSchemes</key>
<array>
	<string>momo</string>
</array>

tuetran0795 avatar Jan 26 '22 02:01 tuetran0795

Cảm ơn anh đã phản hồi.

Em cài app Momo trên CH play. Làm sao cài app Momo test vậy anh.

Chân thành & cảm ơn !

Thank you so much! --------------------------------------------------------------------- Trần Vĩnh Thuận

On Wed, 26 Jan 2022 at 09:18, Minh Tuệ Trần @.***> wrote:

bên mình vừa thử lại thì thấy version1.4.3 vẫn đang chuyển qua đúng app momo. bạn check giúp mình momo app test hay là momo CHplay đã install trên máy được không.

`import React from 'react'; import {StyleSheet, View, Platform, Button} from 'react-native'; import RNMomosdk from 'react-native-momosdk'; const merchantname = 'CGV Cinemas'; const merchantcode = 'CGV01'; const merchantNameLabel = 'Nhà cung cấp'; const billdescription = 'Fast and Furious 8'; const amount = 50000; const enviroment = '0'; //'0': SANBOX , '1': PRODUCTION

export default class App extends React.Component { onPress = async () => { let jsonData = {}; jsonData.enviroment = enviroment; //'0': SANBOX , '1': PRODUCTION jsonData.action = 'gettoken'; //jsonData.isDev = true; //SANBOX only , remove this key on PRODUCTION jsonData.merchantname = merchantname; jsonData.merchantcode = merchantcode; jsonData.merchantnamelabel = merchantNameLabel; jsonData.description = billdescription; jsonData.amount = amount; jsonData.orderId = 'bill234284290348'; jsonData.requestId = 'your_requestId'; jsonData.orderLabel = 'Ma don hang'; jsonData.appScheme = 'momocgv20170101'; // iOS App Only , get from Info.plist > key URL types > URL Schemes. Check Readme if (Platform.OS === 'android') { let dataPayment = await RNMomosdk.requestPayment(jsonData); this.momoHandleResponse(dataPayment); } else { RNMomosdk.requestPayment(jsonData); } }; momoHandleResponse = async response => { try { if (response && response.status === 0) { //SUCCESS continue to submit momoToken,phonenumber to server } else { } } catch (ex) {} }; render() { return (

<Button title={'Pay MOMO'} onPress={() => this.onPress()} />

); } } const styles = StyleSheet.create({ boxStyles: { flex: 1, justifyContent: 'center', alignContent: 'center', }, }); `

— Reply to this email directly, view it on GitHub https://github.com/momo-wallet/mobile-sdk/issues/61#issuecomment-1021797878, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZJYNQWSWVW2DHFXH6L2N3UX5KWRANCNFSM5GM64DEQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

thuantvDr4 avatar Jan 26 '22 04:01 thuantvDr4

https://test-payment.momo.vn/download/

Bạn có thể truy cập link này để tải bản test momo

tuetran0795 avatar Jan 26 '22 09:01 tuetran0795

thanks anh rất nhiều

Chân thành & cảm ơn !

Thank you so much! --------------------------------------------------------------------- Trần Vĩnh Thuận

On Wed, 26 Jan 2022 at 16:06, Minh Tuệ Trần @.***> wrote:

https://test-payment.momo.vn/download/

Bạn có thể truy cập link này để tải bản test momo

— Reply to this email directly, view it on GitHub https://github.com/momo-wallet/mobile-sdk/issues/61#issuecomment-1021999126, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZJYNXXJMFAOH6XL7LZAQ3UX62QFANCNFSM5GM64DEQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

thuantvDr4 avatar Jan 26 '22 10:01 thuantvDr4

mình thử trên android

sau khi mình cài thêm 1 app test vào device thì khi thử demo payment, thì hiển thị hộp thoại : chọn Momo-test hay momo

khi mình chọn 1 opt thì hiển thị đúng thông tin cần thanh toan. Mình đã thực hiện phép thử thì có trạng thái như sau:

  1. khi mình xóa app-test đi, thì nó lại đá về CH play như bệnh ban đầu

xin mọi người giúp đỡ

thuantvDr4 avatar Jan 30 '22 02:01 thuantvDr4

Bạn muốn test thì bạn chọn. Momo-test bạn xoá app test đi và chạy trên môi trường test thì khi đó SDK của momo không tìm thấy package của momo-test nên sẽ đưa bạn về CH play

tuetran0795 avatar Feb 02 '22 13:02 tuetran0795

Hi, Team Momo

App momo-test hiện tại mình gặp issue không nhận được otp

mong mọi người hỗ trợ

thuantvDr4 avatar Feb 18 '22 02:02 thuantvDr4

App momo-test không có hệ thống gửi OTP. bạn dùng OTP: 000000, cho appp momo-test

tuetran0795 avatar Feb 18 '22 02:02 tuetran0795

App momo-test không có hệ thống gửi OTP. bạn dùng OTP: 000000, cho appp momo-test

có cách nào để nạp tiền trên app-test không ạ? đề xuất: app-test có thể cho số dư mặc định để dev dễ test không ạ.

thuantvDr4 avatar Feb 18 '22 02:02 thuantvDr4

App momo-test không có hệ thống gửi OTP. bạn dùng OTP: 000000, cho appp momo-test

có cách nào để nạp tiền trên app-test không ạ? đề xuất: app-test có thể cho số dư mặc định để dev dễ test không ạ.

  1. Bạn có thể vào mục nạp tiền điền bạn chọn 1 trong các ngân hàng (saigonbank/vietinbank)
  2. số thẻ giống như hướng dẫn khoảng 6 số đầu tiên những số sau thỳ bạn nhập ngẫu nhiên cho đủ 16 số (Chọn "i" ở kế bên số thẻ để xem thông tin 6 số đầu tiên)
  3. OTP: 000000

tuetran0795 avatar Feb 18 '22 03:02 tuetran0795

App momo-test không có hệ thống gửi OTP. bạn dùng OTP: 000000, cho appp momo-test

có cách nào để nạp tiền trên app-test không ạ? đề xuất: app-test có thể cho số dư mặc định để dev dễ test không ạ.

  1. Bạn có thể vào mục nạp tiền điền bạn chọn 1 trong các ngân hàng (saigonbank/vietinbank)
  2. số thẻ giống như hướng dẫn khoảng 6 số đầu tiên những số sau thỳ bạn nhập ngẫu nhiên cho đủ 16 số (Chọn "i" ở kế bên số thẻ để xem thông tin 6 số đầu tiên)
  3. OTP: 000000

mình gặp vấn đề khi không thể mở app-test mặc dù đã xóa đi tải lại nhiều lần, không biết có giải pháp nào cho việc này không

shayminmyn avatar Apr 10 '22 13:04 shayminmyn

App momo-test không có hệ thống gửi OTP. bạn dùng OTP: 000000, cho appp momo-test

có cách nào để nạp tiền trên app-test không ạ? đề xuất: app-test có thể cho số dư mặc định để dev dễ test không ạ.

  1. Bạn có thể vào mục nạp tiền điền bạn chọn 1 trong các ngân hàng (saigonbank/vietinbank)
  2. số thẻ giống như hướng dẫn khoảng 6 số đầu tiên những số sau thỳ bạn nhập ngẫu nhiên cho đủ 16 số (Chọn "i" ở kế bên số thẻ để xem thông tin 6 số đầu tiên)
  3. OTP: 000000

mình gặp vấn đề khi không thể mở app-test mặc dù đã xóa đi tải lại nhiều lần, không biết có giải pháp nào cho việc này không

Bạn có thể cho mình thêm thông tin môi trường/ source demo của bạn khi mở không app được không ???

tuetran0795 avatar Apr 12 '22 02:04 tuetran0795

mình gặp vấn đề khi không thể tải app test-momo trên ISO

anhthanh260599 avatar Apr 02 '24 04:04 anhthanh260599