codefupanda / instamojo

Android App for Instamojo. Work in progress.
Apache License 2.0
1 stars 0 forks source link

Login Issue #1

Open vishsinghal opened 9 years ago

vishsinghal commented 9 years ago

when i am use this app in android and try to login

when my this app crash show null

vishsinghal commented 9 years ago

I also email to instamojo Support team but i can understand how to work and how can crate web url for android Webview.

so please help me how can use instamojo paymentgate way in my android app

Thanks Regard Vishal


From: "Instamojo Support" support@instamojo.com.

Hi,

No, we don't have SDKs. The procedure for using Instamojo will be something like this:

Create a Payment link:

  1. Create a Payment of type Services/Membership.
  2. Set a base price of 10 and check mark "Use pay what you want".
  3. Add a Custom redirection URL that points back to some URL on your domain, this will be used to mark the payment as done by querying back to our server.
  4. Save the link and then go to More options -> Custom Fields and add a Custom Field. Custom Field can be used to pass Order ID and some other info if you want to.

(Note that the link is created only once)

Fill the Payment link:

1 . Populate the payment link using the details entered by the user and then open the link using a WebView. You will have to populate fields like data_amount, data_email, data_name and data_phone. If your Payment link expects custom fields then add them as well.

  1. After payment user will be redirected to a URL provided by you as Custom Redirection URL in Payment link's advanced settings.
  2. On this page you will received payment_id in the URL, for example if your redirection URL was:http://www.example.com/instamojo_response.php then we will redirect back to http://www.example.com/instamojo_response.php?payment_id=MOJOxxxxxx&status=success. Here ignore the status key.
  3. Using this payment_id you'll have to query on our server using the API GET https://www.instamojo.com/api/1.1/payments/:payment_id/ (check its example response in REST documentation).
  4. If the value of payment=>status is anything other than "Credit" then the payment was not successful. From here you can send the related data to your app and close the WebView.

Regards, Instamojo Support