Open jogi-gaurang opened 1 year ago
Same problem. Did you figure it out?
@ApunichGULSHER kindly reach us at mobile.integration@payu.in. we will help on this.
Salt and merchant key value in documentation and example is wrong
Here's my blog of the problem being resolved:
https://dev.to/karthidreamer/payu-integration-in-react-native-with-checkoutpro-sdk-l13
@shahfaizalc please do needful to update payu-non-seamless-react package and salt in docs
var txnid = this.transactionId(); var payUPaymentParams = { key: this.state.key, transactionId: txnid, amount: Data[0].price, productInfo: Data[0].title, firstName: this.User.data.first_name + this.User.data.last_name, email: this.User.data.email, phone: this.User.data.mobile_no, ios_surl: 'https://payu.herokuapp.com/success', ios_furl: 'https://payu.herokuapp.com/failure', android_surl: 'https://payu.herokuapp.com/success', android_furl: 'https://payu.herokuapp.com/failure', environment: '1', userCredential: this.state.key + ':' + this.User.data.id, additionalParam: {} } var payUCheckoutProConfig = { primaryColor: colors.primary, secondaryColor: '', merchantName: "sdk", merchantLogo: 'logo.png', showExitConfirmationOnCheckoutScreen: true, showExitConfirmationOnPaymentScreen: true, cartDetails: [], paymentModesOrder: [], surePayCount: 1, merchantResponseTimeout: 1000, autoSelectOtp: false, autoApprove: false, merchantSMSPermission: false, showCbToolbar: false, } return { payUPaymentParams: payUPaymentParams, payUCheckoutProConfig: payUCheckoutProConfig };