Use an
sk_test_ key on https://buy.api.yabetoopay.com — there is a single host, the key
carries the mode. A subscription created in test stays in test for its whole life.1
Create a product and its recurring price
A subscription is built on a price of Field details: Prices.
type: "recurring". The cadence is carried by
billingInterval and billingIntervalCount.2
Create the subscription with the customer's Mobile Money number
The customer is found or created by email. Their payment method becomes their default
one: it is the one requested at every renewal.The response comes back after the payment request — the call waits for the operator’s
answer.If the customer declines or does not answer, the response is still a 201:
201
paymentStatus.success is false and the subscription is unpaid. See
Create through the API.3
Listen to webhooks
4
Simulate the renewal
In test mode, a test clock moves the subscription to its due
date without waiting a month.
Next
Lifecycle
The six statuses and their transitions.
Hosted page
Let the customer subscribe on their own.
Billing cycle
What happens at each due date, and when.
API reference
The object and its ten endpoints.