Android integration with CCAvenue

后端 未结 3 1164
暖寄归人
暖寄归人 2020-12-02 19:11

I have an android app and want to integrate with CCAvenue payment gateway same as flipkart and others.but i don\'t know how can i integrate CCAvenue because there is no SDK

3条回答
  •  自闭症患者
    2020-12-02 19:44

    To do that in the NonSeamless way follow these steps:- (BTW SeamLess method is also very similar.)

    1. Make an merchant account in CCAvenue by clicking here.
    2. After the account has been created(and confirmed and verified by the CCAvenue ), goto the Resources section to download the mobile kit. Also make sure to copy the CCAvenue_Merchant_id, CCAvenue_Access_Code, CCAvenue_Working_Key present in your account.
    3. Do make sure that your Public IP address has been whitelisted on CCAvenue's end.
    4. Place GetRSA.jsp and ccavResponseHandler.jsp files on your server which will be in the mobile kit.
    5. In your App, mention the path of GetRSA file kept on your server. (Read the Non-SeamLess demo kit code to know where you need to put the path).
    6. Call GetRSA from your app which is kept on the your server for fetching the RSA public key.
    7. Using the fetched public key merchant will encrypt parameters(Amount, Currency).
    8. After encrypting the parameters you will post the encrypted value along with the other billing shipping details(if any) to the CCAvenue server via a browser(embedded WebView) post.
    9. The user will be redirected to the CCAvenue's billing shipping page where he will fill in the required details including the payment option.
    10. After filling the required details he will be redirected to the bank page wherein he will authorize himself.
    11. After authorization he will be redirected to CCAvenue and a response i.e. Success or failure will be sent to the merchant page which was configured as return url during registration.
    12. You should then decrypt the response, which can then be parsed to get transaction status.

    Note :

    • Access code and order ID should be the same as passed during the RSA call.

    • Order ID should always be unique

    • The transaction should hit the CCAvenue server within 60 seconds after receiving the RSA key.

    • Working key posted in ccavResponseHandler file should be corresponding to the Accesscode being posted to CCAvenue.

提交回复
热议问题