Menu

Pay with 302

Pay with 302 Introduction

The fastest and most convenient payment integration; launch your product's payment service in as little as 10 minutes. Whether you are a business or an individual developer, simply submit your application, and once approved, you can enable Pay with 302 payment services for easy, compliant, and secure payment collection!

The balance of the received payment can be withdrawn or used for consumption at 302.AI

 

How to apply for Pay with 302 payment service?

1、Click on【Apply】and fill in the developer information and application Information

  •  

2、After submission, wait for the 302.AI platform to review. After passing the review, you will officially become a developer and can access and use Pay with 302 payment services

Integration Guide

Click on 'Integration' and fill in the configuration information:

  • Webhook URL:Used to receive callback notifications such as payment status, please ensure that the address is accessible to the public network

Obtain Secret Key

For interface calling, click 【View Document】 to view the interface description and debug

API

Interface Description:

 
1.The server creates an order: pass in app_id + amount + user information + return url
2.Obtain the checkout_url, and the front-end will redirect, preferably redirecting on the current page instead of opening a new window
3.After successful payment, it will redirect back to the success_url, with checkout_id and 302_signature included in the query parameters.
4.The server uses the checkout_id to verify whether the payment is successful. If successful, proceed to the next step.

The webhook will pass 302_signature in the header to facilitate verification of whether the request is authentic.

Demo

https://paywith302-demo.vercel.app/


Github:https://github.com/302ai/paywith302-demo

Test

Can switch between the current environment (Formal/Test) for debugging

  • Formal:Enable payment collection service to support formal payment collection
  • Test:Only used for interface callback verification, will not trigger real payment

Tip: The application status needs to be 'Passed' in order to call successfully

Quickly create payment link

Simply fill in the amount to quickly generate a payment link and start receiving payments immediately

Income Details

Click on 【Revenue】 to view all payment details in real-time, with clear and easy to understand data

Previous
Developer
Next
Q&A
Last modified: 2025-11-14