⚡ 5-Minute Setup

Quick Start Guide

Get up and running with PayFlow in just 5 minutes. Accept your first payment today.

What You'll Build
A simple payment flow that creates a payment link and redirects customers to checkout
1

Create Payment Link

Generate a payment link via API

2

Customer Checkout

Customer pays via hosted checkout

3

Receive Payment

Get notified via webhook

Step-by-Step Implementation

1
Create Your Account
Set up your PayFlow account and get your API keys
Visit payflow.com and click "Get Started"
Complete your business profile and verification
Navigate to Settings → API Keys to get your keys

Your API keys will look like this:

pk_live_1234567890abcdef...
2
Create a Payment Link
Use our API to generate a payment link
curl -X POST https://api.payflow.com/v1/payment_links \
  -H "Authorization: Bearer pk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Premium Course Access",
    "description": "Get access to our premium course content",
    "amount": 2500,
    "currency": "PKR",
    "expires_at": "2024-12-31T23:59:59Z"
  }'
3
Customer Completes Payment
Share the payment link with your customer

When you create a payment link, you'll receive a response like this:

{
  "id": "pl_1234567890",
  "url": "https://payflow.com/pay/abc123",
  "title": "Premium Course Access",
  "amount": 2500,
  "currency": "PKR",
  "status": "active",
  "created_at": "2024-01-15T10:30:00Z"
}

Share the url with your customer. They'll be redirected to a beautiful hosted checkout page where they can complete their payment.

4
Receive Payment Notification
Get notified when payment is completed via webhook

PayFlow will send a webhook to your server when the payment is completed. Set up your webhook endpoint to handle these notifications:

// Your webhook endpoint
app.post('/webhooks/payflow', (req, res) => {
  const event = req.body;
  
  switch (event.type) {
    case 'payment.succeeded':
      // Handle successful payment
      console.log('Payment completed:', event.data.id);
      break;
    case 'payment.failed':
      // Handle failed payment
      console.log('Payment failed:', event.data.id);
      break;
  }
  
  res.json({ received: true });
});

Pro Tip: Use our webhook testing tool in the dashboard to test webhook delivery before going live.

Test Your Integration
Use test mode to safely test your payment flow
Use test API keys for development
Test webhook delivery with our testing tool
Use test payment methods provided by each provider
What's Next?
Explore more advanced features and integrations

Need Help?

Our team is here to help you get started. Contact us anytime.