5 Minute Setup

Quick Start Guide

Get started with GoPayNow in 5 minutes. Set up your first payment link and receive your first payment.

1

Create Your Account

First, you'll need to create a GoPayNow developer account to get access to the API.

What you'll need:

  • A valid email address
  • Business information (name, address)
  • Phone number for verification

Pro Tip

Use your business email address to make account verification faster and easier.

2

Generate API Keys

Once your account is verified, generate your API keys to authenticate with our services.

Dashboard → API Keys → Generate New Key

# Your API keys will look like this:
PUBLIC_KEY="pk_test_1234567890abcdef"
SECRET_KEY="sk_test_abcdef1234567890"
WEBHOOK_SECRET="whsec_1234567890abcdef"

Important Security Note

Never expose your secret key in frontend code or public repositories. Use environment variables to store sensitive keys.

3

Create Your First Payment Link

Let's create a simple payment link to test the integration.

cURL Example

curl -X POST https://api.gopay.now/v1/payment-links \
  -H "Authorization: Bearer sk_test_your_secret_key" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 2500,
    "currency": "USD",
    "description": "Test Payment",
    "success_url": "https://yoursite.com/success",
    "cancel_url": "https://yoursite.com/cancel"
  }'

JavaScript Example

const response = await fetch('https://api.gopay.now/v1/payment-links', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer sk_test_your_secret_key',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    amount: 2500, // ₺ 25.00 in cents
    currency: 'USD',
    description: 'Test Payment',
    success_url: 'https://yoursite.com/success',
    cancel_url: 'https://yoursite.com/cancel'
  })
});

const paymentLink = await response.json();
console.log('Payment URL:', paymentLink.url);

Success!

If everything works correctly, you'll receive a response with a payment URL that you can share with customers.

4

Test Your Payment Link

Use our test card details to complete a payment and see the full flow.

Test Card Details

4242 4242 4242 4242

12/25

123

More Test Cards

Success: 4242 4242 4242 4242
Declined: 4000 0000 0000 0002
Insufficient funds: 4000 0000 0000 9995

🎉 Congratulations!

You've successfully completed your first GoPayNow integration!

Advanced Payment Links

Learn about custom branding, subscriptions, and more

Implement Webhooks

Get real-time payment notifications in your app

Wallet Transfers

Enable P2P payments and wallet functionality