Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@philly25/react-native-paytm is not working #13

Open
Binishatk opened this issue Nov 7, 2019 · 7 comments
Open

@philly25/react-native-paytm is not working #13

Binishatk opened this issue Nov 7, 2019 · 7 comments

Comments

@Binishatk
Copy link

Here is My Code and Response.
const details = {
mode: "Staging",
MID: "AstraD64640279792570",
INDUSTRY_TYPE_ID: "Retail",
WEBSITE: "APPSTAGING",
CHANNEL_ID: "WAP",
TXN_AMOUNT: ${125},
ORDER_ID: "ORD9QS65GSCUIEUTZE",
EMAIL: "[email protected]",
MOBILE_NO: "7777777777",
CUST_ID: "2894",
CHECKSUMHASH: "tCgrIZXf3yBoOuzEjrazWYqqK5tWGjAJKTuGjybStOBzzsDLb8Wxj6+e1SZj7Jq1AuIaqJlfuaG8sU3CwkPyT1XXw/msPfsO+4jcH0oALS8=",
CALLBACK_URL:"https://securegw.paytm.in/theia/paytmCallback?ORDER_ID=ORD9QS65GSCUIEUTZE"
}
Paytm.startPayment(details)

response: "{"ORDERID":"ORD9QS65GSCUIEUTZE", "MID":"AstraD64640279792570", "TXNAMOUNT":"1.00", "CURRENCY":"INR", "STATUS":"TXN_FAILURE", "RESPCODE":"330", "RESPMSG":"Invalid checksum", "BANKTXNID":""}"
status: "Success"

@Binishatk
Copy link
Author

Please Suggest a Solution to integrate Paytm in Raect Antive app

@arshidkv12
Copy link

I also getting the same error.

@developersahab
Copy link

I am also facing the same issue. Did anyone get any solution?

@RahulRijhwani
Copy link

RahulRijhwani commented Nov 24, 2019

i was also facing that issue and i found solution
Please check steps and parameters of generate checksum how to generate checksum
and same parameters pass with Paytm.startPayment

@HarishJangra
Copy link

HarishJangra commented Nov 28, 2019

you must generate checksum with same params as on server like if you dont send mobile or email on server then you must not send mobile and email on your client app. thats how it works i myself faced this problem while integrating. and please confirm them params keys in server side from paytm. I think they have typos in their docs.
here is an example in php server side

        include(__DIR__.'/../lib/encdec_paytm.php');
        $params = [
            'MID' => <your merchant id>,
            'ORDER_ID' => $data['order_id'],
            'CUST_ID' => <customer id>,
            'INDUSTRY_TYPE_ID' => <industrytype>,
            'CHANNEL_ID' => <channel>,
            'TXN_AMOUNT' => ''.$data['amount'], //has to be string
            'WEBSITE' => <website>',
            'CALLBACK_URL'=> "https://securegw-stage.paytm.in/theia/paytmCallback?ORDER_ID=".$data['order_id'],
        ];
        $merchantKey = <Your merchant key>;
        $checkSum = getChecksumFromArray($params, $merchantKey);
        return $checkSum;

@arshidkv12
Copy link

No payment option. How to solve?
Image description

@aditya-dhand
Copy link

Hii @arshidkv12 i am getting OOPS page error after checksum verifies successfully you have any idea about these issue ?
paytm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants