Connect

Add payments to app projects with server verification

Plan Stripe or Razorpay checkout with your own merchant account, trusted server prices and tests before accepting live payments.

Apirex TeamUpdated
On this page
  1. Add payments to app projects with Stripe or Razorpay
  2. Plan checkout, one-time purchases and recurring needs
  3. Keep keys in backend secrets
  4. Use test mode before going live
  5. Frequently asked questions

Apirex can help you add payments to app projects using Stripe or Razorpay checkout. This is for builders who need a payment workflow in their generated app, using their own merchant account. It is separate from paying for Apirex itself. Start by explaining what you sell, the currency and the refund policy, rather than asking for a payment button without the rules behind it.

Add payments to app projects with Stripe or Razorpay

Apirex can help implement Stripe or Razorpay checkout, but it does not supply a merchant account. You remain responsible for merchant setup and choosing a payment approach appropriate to your product and country.

Explain the customer journey from selecting an item to receiving what was purchased. Include what the customer should see if checkout is cancelled or payment fails. A visible success screen should not be the only condition in your brief: specify how the server verifies the order and how the app should represent an unfinished transaction.

Tell the builder which backend the project uses before requesting payment work. Keep provider access and app behavior as separate setup questions. Connecting a backend does not mean a provider has approved your business or that a live purchase has been tested.

For example, a booking app might collect payment for a particular reservation. Your brief should identify what the customer is buying, how the reservation is linked to the order and what happens if the customer leaves checkout unfinished. Do not let the displayed button label stand in for these decisions. A clear purchase description helps separate the app interface from the server work that must confirm the transaction.

Plan checkout, one-time purchases and recurring needs

Checkout needs a defined product, trusted price and fulfillment rule. If your plan includes subscriptions, describe that requirement explicitly rather than assuming every recurring-payment feature is already included.

The supported claim is help implementing checkout, not a promise of a complete subscription management system. Write down when access should begin and what should happen after a refund. For native apps, check the billing route before adapting a web checkout: digital goods may need Google Play Billing or Apple In-App Purchase.

Questions to settle before implementation
DecisionWhat your brief should say
ProductWhat is sold, and whether it is a digital good in a native app
PriceCurrency and the trusted server-side source of the amount
CompletionWhat verified payment permits the customer to receive
RefundsThe intended policy and how the app should reflect it
Recurring needsWhat ongoing access requires, without assuming built-in subscription coverage

For a one-time purchase, state whether a customer can buy the same item again and what each completed order delivers. For recurring access, list the questions that still need implementation decisions, such as what the app should display when access is no longer active. Treat those as scope to agree and verify, not as evidence that Apirex includes a ready-made billing portal or subscription dashboard.

Keep keys in backend secrets

Private payment keys belong in backend secrets, not app source. Orders and prices should be verified on the server rather than accepted from values supplied by the customer-facing app.

Ask for signed payment events to be verified and for duplicate fulfillment to be prevented. Receiving the same event twice should not mean delivering the purchase twice. Include that expectation in the implementation checklist and test it. These are workflow requirements to implement and review, not a claim that connecting a payment provider automatically supplies every safeguard.

Keep examples in your prompt focused on product rules instead of pasting private credentials into source files. Review where server-side work runs and which secrets it uses. If checkout appears correct but the order state is wrong, investigate the backend behavior before treating the visible payment screen as confirmation.

During review, ask where the amount used to create an order comes from. The amount shown on a screen is useful to the customer, but your workflow should not trust a changed screen value as the purchase price. Likewise, specify how the server links a verified payment to the intended order. This makes the review about a concrete decision path rather than the presence of a provider logo.

Use test mode before going live

Test the payment workflow with provider test credentials before accepting live transactions. Cover cancellation, failure and refunds as well as a successful purchase.

Use a small, written checklist so the person testing knows both the expected screen and the expected order outcome. Record what happened when a test fails and describe that evidence to the builder. The goal is not merely to open checkout; it is to confirm that the customer receives the intended result only after the server has verified payment.

  1. Connect the intended backend and configure provider test credentials in secrets.
  2. Create orders using prices trusted by the server, then review the verification path.
  3. Check signed payment events and confirm that repeated events do not fulfill the same purchase again.
  4. Test successful checkout, cancellation, payment failure and refunds before switching to live transactions.

For each test, record the expected order state and whether anything should be delivered. In a cancellation case, for example, the customer should not receive the paid benefit merely because they returned to the app. For a refund case, compare the result with the policy you supplied. If a result is wrong, repeat that specific scenario after the fix instead of testing only another successful purchase.

Frequently asked questions

Which payment providers?

Apirex can help implement checkout with Stripe or Razorpay using your own merchant account. Merchant setup and approval are not included.

Are app-store in-app purchase rules covered?

Do not assume a web checkout is valid for native digital goods. Your app may need Google Play Billing or Apple In-App Purchase; settle that requirement before implementation.

Is this the checkout for an Apirex plan?

No. Customer payments inside a generated app are separate from your own Apirex subscription and billing.

All features

Build it on your own computer

Describe the app and Apirex writes real source you own, then builds it on your machine.

AndroidKotlin · Jetpack ComposeReal source on your computer

Opens Apirex with this prompt. Pick the Android · Kotlin tab before you send. The Free plan includes 5 Rex Credits a day.