RelayPay · Demo Merchant

Launch a payment intent, then finish checkout in a single hop.

This page emulates a merchant site. We call the RelayPay API with your merchant API key, create a Stripe Payment Intent, and then push you straight into the hosted checkout app.

1) Collect order details

Enter an amount, currency, and optional customer email. We handle currency conversion to the provider’s smallest unit.

2) Call the payments API

We POST /payments/intents with your X-API-Key and idempotency key. The response gives us a RelayPay payment_id and provider intent.

3) Redirect to checkout

We send the customer to the checkout app at /pay/{payment_id} to render the Stripe Payment Element and finish securely.

Create payment intent

We will hit the API with your merchant key, then redirect to the checkout app to finish payment.

Environment

API Base

http://localhost:3001/api/v1

Checkout Base

http://localhost:3002

Configure with MERCHANT_API_KEY, MERCHANT_API_BASE_URL, and MERCHANT_CHECKOUT_BASE_URL.