Inspiration

Pingpay aims to simplify merchant onboarding and enable seamless, low-cost payments across any blockchain using chain signatures and intents. This submission focuses on improving crypto subscriptions by addressing the current limitations in existing approaches.

Most blockchain networks are designed primarily for one-time payments rather than recurring transactions. Unlike traditional banking systems, which offer built-in "pull payment" mechanisms such as credit card auto-debits, blockchain lacks a native solution for automated payments.

In the current crypto subscription model, customers receive email reminders at the end of each subscription period, prompting them to manually renew. Alternatively, they must pre-approve and pay for a set duration upfront—an inconvenient process for managing subscriptions.

For merchants, this creates uncertainty, as there is no guarantee of timely or consistent payments. Since users must manually confirm each renewal, merchants risk missed or delayed transactions.

What it does

The system enables secure, automated recurring payments without requiring users to pre-fund accounts or approve unlimited spending.

It has a NEAR smart contract that manages:

  • Subscription creation and management
  • Payment processing
  • Access key registration and verification
  • Merchant relationships

It has a Worker Agent running in a TEE on Phala Cloud that:

  • Monitors subscriptions for due payments
  • Securely stores private keys
  • Signs and submits payment transactions
  • Handles payment failures and retries

A web application that allows users to:

  • Create and manage subscriptions
  • View payment history
  • Pause or cancel subscriptions

Challenges we ran into

We had issues deploying a custom shade agent contract, in addition to redeploying the existing one. This meant for a time we were unable to cargo near build and deploy this or a fresh agent template repo, and so our custom contract code has not be deployed or is able to be used at this time.

Accomplishments that we're proud of

Creating automated subscriptions for NEAR transactions, which use NEAR's Function Call Access Keys and Shade Agents running in Trusted Execution Environments (TEEs). Building a frontend for an example merchant using an SDK for communcaiting directly to the TEE.

What we learned

The subscription/reoccurring payment framework can be reapplied to multiple different use cases such as crypto savings accounts or reoccurring payments to a friend or family member.

What's next for Ping Subscription Shade Agent

  • The integration of the subscription service into the full Pingpay platform for an upcoming launch of the projects beta launch. Allowing teams/individuals to offer subscriptions for their goods/services.
  • Implement NEAR Chain Signatures and use NEAR Intents to allow subscriptions to be made from multiple blockchains/tokens.
  • Use the reoccurring payments to allow for additional use cases such as crypto savings accounts or reoccurring payments to a friend or family member.

Built With

Share this project:

Updates

posted an update

Unfortunately custom contract code wasn't able to be deployed, and there is an (annoyingly) small bug with creating the function call access key through the SDK -- but I think the logic around it is all solid (pls correct me if wrong) and I'm super pumped about what's possible with this.

Log in or sign up for Devpost to join the conversation.