post https://komoju.com/api/v1/payments
Creates a payment for a given amount and currency.
There are two ways to create payment:
- For one-time payment, you can pass
payment_detailswith payment method type and additional attributes. - For recurring payment, you can pass customer's ID via
customerattribute. Customer's saved payment method will be used for the payment.
Note that either payment_details or customer is required for the payment. However, both of them should not be given at the same time.
