-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create upi_pay_mandate.sh * Create upi_collect_mandate.sh * Create upi_collect_mutual_fund.sh * Update upi_collect_mandate.sh * Update upi_pay_mandate.sh * Create auto_refund_post_success.sh
- Loading branch information
1 parent
97704ba
commit 3c85387
Showing
4 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
api-reference/mandates/auto_refund/auto_refund_post_success.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
curl --location 'https://api.juspay.in/orders' \ | ||
--header 'Content-Type: application/x-www-form-urlencoded' \ | ||
--header 'Authorization: Basic MzJCNDM3QTZCNUI0OEE5O' \ | ||
--data-urlencode 'order_id=test_1721138542' \ | ||
--data-urlencode 'amount=2' \ | ||
--data-urlencode 'currency=INR' \ | ||
--data-urlencode 'return_url=https://google.com' \ | ||
--data-urlencode 'customer_id=cth_d7bYTY1XKSFWjjTZ' \ | ||
--data-urlencode '[email protected]' \ | ||
--data-urlencode 'product_id=Testing' \ | ||
--data-urlencode 'options.create_mandate=REQUIRED' \ | ||
--data-urlencode 'mandate_max_amount=10' \ | ||
--data-urlencode 'metadata.auto_refund_post_success=True' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
curl --location 'https://api.juspay.in/txns' \ | ||
--header 'Content-Type: application/x-www-form-urlencoded' \ | ||
--header 'x-merchantid: mandate_juspay' \ | ||
--data-urlencode 'order.order_id=test_123' \ | ||
--data-urlencode 'order.amount=1' \ | ||
--data-urlencode 'order.currency=INR' \ | ||
--data-urlencode 'order.customer_id=cst_3uh6gumy3esndhdr' \ | ||
--data-urlencode 'order.options.create_mandate=REQUIRED' \ | ||
--data-urlencode 'order.mandate_max_amount=16' \ | ||
--data-urlencode 'payment_method=UPI_COLLECT' \ | ||
--data-urlencode 'payment_method_type=UPI' \ | ||
--data-urlencode 'sdk_params=false' \ | ||
--data-urlencode 'format=json' \ | ||
--data-urlencode 'mandate_type=EMANDATE' \ | ||
--data-urlencode 'should_create_mandate=true' \ | ||
--data-urlencode 'redirect_after_payment=true' \ | ||
--data-urlencode 'merchant_id=test_merchant' \ | ||
--data-urlencode 'order_id=test_123' |
19 changes: 19 additions & 0 deletions
19
api-reference/mandates/order_txns/upi_collect_mutual_fund.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
curl --location 'https://api.juspay.in/txns' \ | ||
--header 'Content-Type: application/x-www-form-urlencoded' \ | ||
--header 'x-merchantid: mandate_juspay' \ | ||
--data-urlencode 'order.order_id=test_123' \ | ||
--data-urlencode 'order.amount=1' \ | ||
--data-urlencode 'order.currency=INR' \ | ||
--data-urlencode 'order.customer_id=cst_3uh6gumy3esndhdr' \ | ||
--data-urlencode 'order.options.create_mandate=REQUIRED' \ | ||
--data-urlencode 'order.mandate_max_amount=16' \ | ||
--data-urlencode 'payment_method=UPI_COLLECT' \ | ||
--data-urlencode 'payment_method_type=UPI' \ | ||
--data-urlencode 'sdk_params=false' \ | ||
--data-urlencode 'format=json' \ | ||
--data-urlencode 'mandate_type=EMANDATE' \ | ||
--data-urlencode 'should_create_mandate=true' \ | ||
--data-urlencode 'redirect_after_payment=true' \ | ||
--data-urlencode 'merchant_id=test_merchant' \ | ||
--data-urlencode 'order_id=test_123' \ | ||
--data-urlencode 'order.mutual_fund_details=[{"memberId":"ABCDE","userId":"ABCDEFGHIJ","mfPartner":"BSE","folioNumber":"190983010","orderNumber":"order_zer12345ssss","amount":"800","schemeCode":"LT","amcCode":"UYTIUI","panNumber":"TYLIO7823U","investmentType":"LUMPSUM"},{"memberId":"ABCDE","userId":"ABCDEFGHIJ","mfPartner":"BSE","folioNumber":"190983010","orderNumber":"order_zer12345sssss","amount":"800.00","schemeCode":"LT","amcCode":"UYTIUI","panNumber":"TYLIO7823U","investmentType":"LUMPSUM"}]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
curl --location 'https://api.juspay.in/txns' \ | ||
--header 'Content-Type: application/x-www-form-urlencoded' \ | ||
--header 'x-merchantid: mandate_juspay' \ | ||
--data-urlencode 'order.order_id=test_123' \ | ||
--data-urlencode 'order.amount=1' \ | ||
--data-urlencode 'order.currency=INR' \ | ||
--data-urlencode 'order.customer_id=cst_3uh6gumy3esndhdr' \ | ||
--data-urlencode 'order.options.create_mandate=REQUIRED' \ | ||
--data-urlencode 'order.mandate_max_amount=16' \ | ||
--data-urlencode 'payment_method=UPI_PAY' \ | ||
--data-urlencode 'payment_method_type=UPI' \ | ||
--data-urlencode 'sdk_params=true' \ | ||
--data-urlencode 'format=json' \ | ||
--data-urlencode 'mandate_type=EMANDATE' \ | ||
--data-urlencode 'should_create_mandate=true' \ | ||
--data-urlencode 'redirect_after_payment=true' \ | ||
--data-urlencode 'merchant_id=test_merchant' \ | ||
--data-urlencode 'order_id=test_123' |