Transaction API
Initiate transaction with below details
selected_plan_id,selected_plan_type,selected_part_number, should be sent in transaction call undermetadatakey to inform what part number is being paid forUnless the selected part’s payment is successful, user cannot make payment for the next part. E.g. user is making payment for part 1 and transaction goes into pending, in such a scenario, user can make repayment of part 1 only and cannot proceed to part 2 since previous part is still pending and not completed.
The amount of the part needs to be sent in the transaction call and it should match
Example:- 500
This key contains data about the plan and part being paid for i.e. selected plan, selected plan type and the part number.
Example:- {"part_payment_info": "{\"selected_plan_id\": \"1234\",\"selected_plan_type\": \"FIXED\",\"selected_part_number\": \1\}
Inside metadata, this key defines the part information which the user is making payment for
Send the plan ID in this key which the user chooses to make the payment
Sent the plan type as FIXED or EDITABLE based on the user selection
Send the part number for which user is making payment.
User would not be allowed to proceed to the next part number unless the previous part is paid for (successful).
For Fixed plan, call order status to the fetch the order details of the part payment paid for and the initiate the transaction with the correct part number and amount. E.g. If part 1 is paid and part 2 is in pending in order status, do not initiate transaction with part 3 since part 2 needs to be paid first.
For editable plan, call order status to determine the total number of parts already paid for. Then add plus 1 to the part number of the last successful transaction to initiate payment for next part.
For Transaction initiation, refer to this doc: https://juspay.io/in/docs/ec-api/docs/base-integration/credit--debit-card-transaction
Example:- GET
Example:- http://localhost:8080/v2/pay/start/azharamin/mozrTCkdXzCNYqMtA3k
Example:- PENDING_VBV
Example:- mozrTCkdXzCNYqMtA3k
Example:- partLocal1745929649
Example:- azharamin-partLocal1745929649-2
Have questions?
- Need help? Contact support
- LLM? Read llms.txt

