Skip to content

Commit

Permalink
Patch 15 (#540)
Browse files Browse the repository at this point in the history
* 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
aklankjuspay authored Jul 16, 2024
1 parent 97704ba commit 3c85387
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 0 deletions.
13 changes: 13 additions & 0 deletions api-reference/mandates/auto_refund/auto_refund_post_success.sh
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'
18 changes: 18 additions & 0 deletions api-reference/mandates/order_txns/upi_collect_mandate.sh
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 api-reference/mandates/order_txns/upi_collect_mutual_fund.sh
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"}]'
18 changes: 18 additions & 0 deletions api-reference/mandates/order_txns/upi_pay_mandate.sh
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'

0 comments on commit 3c85387

Please sign in to comment.