Create a payment method
Adds a payment method to the store. type is a shorthand from the
payment method types endpoint, and preferences takes the values its
preference schema declares (gateway credentials among them).
Required scope: write_settings (for API-key authentication).
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Body
Wire shorthand from the payment method types endpoint.
"check"
False keeps the method to the dashboard; true also offers it on the storefront.
When customers are charged for this method. Null inherits the store setting.
checkout, on_dispatch, manual Values for the provider's preference schema, from the payment method types endpoint.
Response
payment method created

