step5-2
Step5-2 Additional operation for recurring
Please read below only if you are implementing Recurring checkout
Create new Charge
From 2nd Charge onwards, call Create Charge API
using chargePermissionId
returned in Complete Checkout Session API response as a parameter.
When API returns sucessful response, you get new chargeId
so, you save it with order data.
info
- If
captureNow
parameter is set to true when calling Create Charge API, Charge is created and captured at the same time. - If
captureNow
parameter is set to false when calling Create Charge API, CallCapture Charge API
using newly createdchargeId
as a parameter when capturing. - If
canHandlePendingAuthorization
parameter is set to true when calling Create Charge, Charge is processed asynchronously
See Asynchronous processing.
Cancel Charge
See Step5 Charge, Capture, Cancel and Refund - Cancel Charge.
Close Recurring Contract
In this case, Charge Permission needs to be closed. Call Close Charge Permission API
.
If cancelPendingCharges
parameter is set to true when calling Close Charge Permission API, active Charge is canceled at the same time.