Manual Payments
Moyasar supports two-step credit card payments so you can first authorize a payment, then wait to settle (capture) it later. When a payment is authorized, the funds are guaranteed by the card issuer and the amount is held on the customer’s card for up to seven days. If the payment is not captured within this time, the authorization is canceled and funds are released.
To authorize a payment without capturing it, Card Payment request that also include the manual parameter with a value of true. This instructs Moyasar to only authorize the amount on the customer’s card.
If you need to cancel an authorization, you can release it by making a void request to the payment object.
To capture an authorized payment, make a capture request The total authorized amount is captured by default, and you cannot capture more than this. To capture less than the initial amount (e.g., 7 SAR of a 10 SAR authorization), pass the amount parameter. Partially capturing a payment automatically releases the remaining amount.