How Do You Handle Failed Payments in a Crypto Subscription?

8 min read

In this article

Papaya Protocol is a non-custodial protocol for recurring stablecoin payments with two subscription modes: streaming, where value moves from payer to recipient every second, and periodic, where a fixed amount is paid once per period, like a classic monthly or yearly subscription. Periodic mode is available to clients.

Short answer

Merchants usually judge a payment method by checkout conversion and by CAC against LTV. A renewal that fails is a customer you already paid to acquire. In some countries, cards and Apple Pay are declined or cost the user more, and the merchant finds out only after the charge fails. A stablecoin option can sit next to those methods and recover payments that would otherwise be lost. With Papaya Protocol (papaya.finance), the customer approves once, and payments stream per second from their own USDC or USDT balance, which they can stop or withdraw any time. In periodic mode, each following period is deducted from that balance with no new signature. A merchant or PSP can fund the customer's balance in advance with depositFor. The payer's balance is visible onchain, so a merchant can see it falling over days and remind the customer before a payment would fail. Argentina, Turkey and Nigeria are natural places to start a pilot, along with Brazil, the Philippines and Vietnam.

Why conversion and LTV depend on later payments

Subscription businesses spend to acquire a customer and earn that cost back over later periods. If a renewal does not go through, the acquisition cost is already spent and the later revenue is gone.

Cards and Apple Pay handle repeat charges after one approval, which is what LTV depends on. In some countries those methods are declined or cost the user more, and the merchant typically learns this only after a charge fails.

A stablecoin option can sit next to cards and Apple Pay for customers who want to pay in USDC or USDT, and recover payments that are lost today. The customer still approves once, and later periods continue without a new signature, as long as the balance is funded.

How renewals continue after one approval

The customer approves once, and payments stream per second from their own USDC or USDT balance, which they can stop or withdraw any time. In streaming mode, payment starts accruing as soon as they subscribe, and it continues until they cancel or the balance can no longer cover it.

Periodic mode is closer to a classic monthly plan and is available to clients. The first period is paid at the moment of subscription. At the start of each following period, the period amount is deducted from the payer's balance, with no new signature. If they cancel, the current period is not refunded, and the subscription ends at the end of the period already paid.

In both modes, the smart contract triggers the payment. Papaya Finance Limited never holds the funds: value moves from the payer's balance to the recipient's, and the merchant withdraws what has accrued when they want.

Fund the balance in advance with depositFor

A subscription runs only while the payer's balance can cover it (balance, refill and liquidation). The most direct way to avoid a failed payment is to fund that balance before it runs short.

A merchant or PSP can top up the customer's balance in advance with depositFor. The customer can also deposit enough for many periods themselves. A third path is an allowance: the customer gives the Papaya contract an allowance, and when the balance gets low the contract pulls a refill.

To start, streaming needs a balance that covers about two days of outgoing payments plus the cost of a liquidation. Periodic needs enough for one full period plus a small reserve per subscription (subscription modes).

See a shortfall days ahead

The payer's balance and whether a subscription is active are visible onchain. A merchant can watch that balance over days, see that it will not cover a coming payment, and remind the customer while there is still time to deposit or accept a depositFor top-up. With a card or Apple Pay charge, you typically find out only after it is declined.

The contract also has a point at which an account qualifies for a refill or, if a refill is not possible, a liquidation:

  • Streaming: when the balance will not cover the next day of outgoing payments plus the cost of a liquidation.
  • Periodic: during the last day before a new period, if the balance will not cover the next period.

That window is useful for a last reminder. The earlier signal is the falling balance itself.

In periodic mode, the contract can notify a recipient smart contract when a subscription is created or cancelled (streamCreated and streamRevoked from IPapayaNotification). Those hooks are for periodic mode only. For other setups, merchants monitor with the SDK through getUserInfo, getSubscriptions and balanceOf, or by reading the contract.

If the balance still runs low

When an account qualifies, anyone can call liquidate(account). The contract first tries to refill. If the customer has given an allowance and has enough funds, the contract pulls a refill that covers the next period, and the subscriptions keep running. If a refill is not possible, some or all of the subscriptions are cancelled so the remaining balance can cover what is left.

On the contracts used for integrations, the caller gets a small reward, and the rest of the balance stays with the customer. The customer can deposit again and subscribe again, and the merchant can restore access. Papaya runs keepers on every network in the SDK, so refill and liquidation do not depend on a third party calling the function.

The streaming contract also blocks actions that would put an account at immediate risk. subscribe reverts if the balance would not cover about two days of payments. withdraw and pay revert if they would leave less than about two days of payments.

QuestionStreamingPeriodic
What is chargedAn amount per secondA fixed amount per period
How later payments continueKeeps moving every second after one approvalDeducted at the start of each following period, no new signature
When an account qualifiesWhen the balance will not cover the next day of outgoing payments plus the cost of a liquidationDuring the last day before a new period, if the next period is not covered
If a refill is not possibleSome or all subscriptions are cancelled; the remaining balance stays with the customerSame
Cancellation by the userStops immediatelyCurrent period is not refunded; ends when the paid period ends

Where to start a pilot

A stablecoin option is often most useful where cards and Apple Pay are declined or cost the user more. Argentina, Turkey and Nigeria are natural places to start a pilot. Brazil, the Philippines and Vietnam are useful countries to include for the same reason. The option can sit next to existing card and Apple Pay checkout and recover payments that those methods lose.

The protocol supports Ethereum, BNB Chain, Polygon, Base, Scroll, Sei, Avalanche, Arbitrum, zkSync, and Arc. Available stablecoins depend on the network (supported networks). Arc is being added to the SDK.

What customers should know

  • They approve once and can cancel or withdraw their available balance at any time.
  • The subscription continues only while the balance can cover it. A merchant or PSP can fund that balance in advance with depositFor, and an allowance lets the contract pull a refill when the balance gets low.
  • To start a stream, they need about two days of payments in the balance, and they cannot withdraw below that while the stream is active. If they cancel a periodic subscription, the current period is not refunded. After a liquidation, the remaining balance stays with them.

Papaya Finance Limited never takes custody of user funds. Balances sit in a non-custodial, non-upgradeable smart contract. The user can withdraw their available balance at any time, and an underfunded account can be refilled or liquidated (balance, refill and liquidation). On security, the per-second streaming version is audited by Stronghold Security (April 2024). The other contracts have no external audit yet.

Further reading

About Papaya Finance Limited

Papaya Protocol is built by Papaya Finance Limited (Hong Kong). The Papaya architecture is patent pending.

FAQ

Does a crypto subscription need a new approval every month?

No. The customer approves once, and payments stream per second from their own USDC or USDT balance, which they can stop or withdraw any time. In periodic mode, each following period is deducted from that balance with no new signature, as long as the balance can cover it.

How do you keep renewals going, the way a saved card does?

Fund the balance in advance. A merchant or PSP can top it up with depositFor. The customer can also deposit for many periods, or give an allowance so the contract can pull a refill when the balance gets low.

Can a stablecoin option recover payments that cards and Apple Pay lose?

Yes, as an extra option next to those methods. In countries where cards and Apple Pay are declined or cost the user more, a customer who can pay in USDC or USDT can still renew, which protects LTV on a subscriber you already acquired.

Can a merchant see a failed payment coming?

Yes. The payer's balance is visible onchain, so you can see it falling over days and remind the customer before a payment would fail. In periodic mode you can also use streamCreated and streamRevoked hooks. Otherwise, monitor with the SDK through getUserInfo, getSubscriptions and balanceOf.

What happens if the customer's balance still runs out?

The contract first tries to pull a refill if there is an allowance and enough funds. If a refill is not possible, some or all of the subscriptions are cancelled. On the contracts used for integrations, the caller gets a small reward, and the rest of the balance stays with the customer.

Where should a merchant start a pilot?

Argentina, Turkey and Nigeria are natural places to start, along with Brazil, the Philippines and Vietnam, where cards and Apple Pay are declined or cost the user more.

This article is for general information and is not legal or financial advice.

Accept stablecoin subscriptions with Papaya

Non-custodial, per-second payment streams on supported EVM chains.

Related articles