Get started with GoPayNow in 5 minutes. Set up your first payment link and receive your first payment.
First, you'll need to create a GoPayNow developer account to get access to the API.
Use your business email address to make account verification faster and easier.
Once your account is verified, generate your API keys to authenticate with our services.
# Your API keys will look like this:
PUBLIC_KEY="pk_test_1234567890abcdef"
SECRET_KEY="sk_test_abcdef1234567890"
WEBHOOK_SECRET="whsec_1234567890abcdef"
Never expose your secret key in frontend code or public repositories. Use environment variables to store sensitive keys.
Let's create a simple payment link to test the integration.
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"
}'
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);
If everything works correctly, you'll receive a response with a payment URL that you can share with customers.
Use our test card details to complete a payment and see the full flow.
4242 4242 4242 4242
12/25
123
You've successfully completed your first GoPayNow integration!
Learn about custom branding, subscriptions, and more
Get real-time payment notifications in your app
Enable P2P payments and wallet functionality