nstudio / nativescript-paytm

Paytm SDK implementation for NativeScript. Add paytm payments capability to your NativeScript app. :money_with_wings: :moneybag:
Apache License 2.0
0 stars 1 forks source link

i am ggetting 404 not found page #4

Open vikasacharya16 opened 5 years ago

vikasacharya16 commented 5 years ago

i just run the code you have given by generating checksum on my working back end server. but it is redirecting to a page where ill see 404 not exists. i'm using this link for generating cheksum and its working fine. CALLBACK_URL: "https://securegw-stage.paytm.in/theia/paytmCallback?ORDER_ID=ORDER0000001",

then this is the rest of the code

 var order = {
        MID: "mthCKK0**********571",
        ORDER_ID: "ORDER0000001",
        CUST_ID: "CUST00001",
        INDUSTRY_TYPE_ID: "Retail",
        CHANNEL_ID: "WAP",
        TXN_AMOUNT: "1",
        WEBSITE: "WEBSTAGING",
        CALLBACK_URL: "https://pguat.paytm.com/paytmchecksum/paytmCallback.jsp",
        CHECKSUMHASH: CHECKSUMHASH
    };
    paytm.createOrder(order);
    paytm.initialize("STAGING");

    paytm.startPaymentTransaction({
        someUIErrorOccurred: function (inErrorMessage) {
            console.log("-------inErrorMessage--------");
            console.log(inErrorMessage);
        },
        onTransactionResponse: function (inResponse) {
            console.log("-------inResponse--------");
            console.log(inResponse);
        },
        networkNotAvailable: function () {
            console.log("Network not available");
        },
        clientAuthenticationFailed: function (inErrorMessage) {
            console.log("-------inErrorMessage--------");
            console.log(inErrorMessage);
        },
        onErrorLoadingWebPage: function (
            iniErrorCode,
            inErrorMessage,
            inFailingUrl
        ) {
            console.log(`--------iniErrorCode, inErrorMessage, inFailingUrl-------`);
            console.log(iniErrorCode);
            console.log(inErrorMessage);
            console.log(inFailingUrl);
        },
        onBackPressedCancelTransaction: function () {
            console.log("User cancelled transaction by pressing back button");
        },
        onTransactionCancel: function (inErrorMessage, inResponse) {
            console.log(`--------inErrorMessage, inResponse -------`);
            console.log(inErrorMessage);
            console.log(inResponse);
        }
    });

from that 404 not exists page if i press back button it will ask cancel transaction. if i press yes it will back to payment page. so i concluded that the url is not correct. thanks in advance for any help

shiv19 commented 5 years ago

@vick16ach You probably need to check the latest paytm docs to see what the new URL is. But the plugin itself is a working plugin, and is being used in some of my apps.

vikasacharya16 commented 5 years ago

@vick16ach You probably need to check the latest paytm docs to see what the new URL is. But the plugin itself is a working plugin, and is being used in some of my apps.

can you tell which url you are talking about. do i need to change code in plugin itself?