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.
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.