Request
Find the API documentation for the request here.Remarks
- Commerce encodes amounts in minor units of the respective currency. The example above would be 10.00 EUR.
- The
source.typedenotes that the payment will be initiated fully on the front-end, and the card details need to be entered there. - The
recurring_frequencyis the minimum distance between the two payments. In this case, it would be 28 days. - The
recurring_expiryis the date until which the recurring payment is valid. In this case, it would be 10 October 2030.
All of the payments in the sequence of recurring payments must have an amount less or equal to the initial payment. This is a requirement of the recurring payment provider. If you need to change the amount, you need to process a new initial payment.
Response
Commerce responds with a HTTP 200 OK and a JSON payload. The payload contains the session ID to handle the action requirement:This use-case automatically creates payment credentials on file for the customer. The
credential_id allows you to refer to the credentials in later actions.