Create payment request
instamojo_create_payment_requestWRITE: create a payment request (a payment link) and return its id and URLs (longurl, shorturl) to share with the buyer. Amount is in INR. The buyer is NOT emailed or texted unless send_email / send_sms is true (they then need email / phone). Nothing is charged; the buyer pays on the link. POST /payment-requests/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Email of the payer (required when send_email is true). | ||
| phone | No | Phone number of the payer (required when send_sms is true). | |
| amount | Yes | Amount in INR (Instamojo documents a minimum of 9 and a maximum of 200000 per request). | |
| purpose | Yes | What the payment is for (shown to the buyer). Often used as your own order reference. | |
| webhook | No | URL Instamojo POSTs the payment details to after a payment. | |
| send_sms | No | true = Instamojo texts the link to the payer (needs phone). Default false: nothing is sent. | |
| buyer_name | No | Name of the payer. | |
| send_email | No | true = Instamojo emails the link to the payer (needs email). Default false: nothing is sent. | |
| redirect_url | No | URL the buyer is redirected to after paying (Instamojo appends payment_request_id, payment_status and payment_id). | |
| allow_repeated_payments | No | true = the link accepts several payments (Instamojo's default); false = one payment only. |