Commerce User Payment Methods
Create a commerce user payment method
POST
Only for the Commerce API.
Apps using the Commerce API can embed Goody’s credit card form into their application to allow the app’s end users to enter their credit card to save a payment method. Users can then use that payment method to pay for orders.
Call this endpoint to create a payment method associated with a commerce user; provide the user ID as commerce_end_user_id
. Then, use the returned payment method id
as the payment_method_id
in the Create an Order Batch endpoint along with the commerce_end_user_id
.
For more information, refer to Embedded Payment Form.
Authorizations
Your Goody API key.
Body
application/json
Response
201
application/json
Commerce user payment method created
The response is of type object
.