Making a payment
Basic usage
The following example demonstrates the basic usage of the YocoSDK.charge method.
The charge amount must be a positive integer, specified in cents.
Advanced usage
This example shows you some of the extra capabilities you can add to your use of the SDK by adding a
PaymentParameters object to the charge function call.
Supported PaymentType values
Here is a list of the supported payment methods:
The cash payment type shows the receipt screen and doesn’t go through any payment process.
Supported TippingConfig values
Supported Currencies
Here is a list of the supported currencies: