hazPay
Integrations

Integrations and Advanced Features

Learn how to integrate ShazPay with your existing workflow, set up webhooks for real-time notifications, and leverage advanced features to grow your business.

10 min read
Last updated: June 2025

Integration Methods

Direct Link Sharing

Share payment links anywhere your customers are

Beginner
  • Copy and paste links in emails
  • Share on social media platforms
  • Embed in websites and blogs
  • Include in digital invoices

QR Code Integration

Enable instant payments with QR codes

Beginner
  • Generate QR codes for each payment link
  • Print on business cards and flyers
  • Display on websites and apps
  • Perfect for in-person transactions

Email Integration

Integrate with your email marketing tools

Intermediate
  • Works with Mailchimp, ConvertKit, etc.
  • Automated payment follow-ups
  • Custom email templates
  • Payment confirmation emails

Webhook Integration

Real-time notifications for your systems

Advanced
  • Instant payment notifications
  • Custom endpoint configuration
  • Retry logic for failed deliveries
  • Detailed event data payload

Webhook Integration

Webhooks allow you to receive real-time notifications when events happen in your ShazPay account. Perfect for updating your own systems, triggering workflows, or sending custom notifications.

Available Webhook Events

payment.succeeded

Fired when a payment is successfully processed

Payload: Payment ID, amount, customer details, metadata

payment.failed

Triggered when a payment attempt fails

Payload: Payment ID, failure reason, customer details

installment.paid

Sent when an installment payment is completed

Payload: Installment details, remaining payments, schedule

milestone.completed

Fired when a milestone payment is made

Payload: Milestone details, progress, next milestone info

payout.completed

Triggered when funds are transferred to your account

Payload: Payout amount, destination, transaction fees

Example Webhook Handler

// Example webhook endpoint (Node.js/Express)
app.post('/webhooks/shazpay', (req, res) => {
  const event = req.body;
  
  switch (event.type) {
    case 'payment.succeeded':
      // Update your database
      updateOrderStatus(event.data.payment_id, 'paid');
      
      // Send confirmation email
      sendConfirmationEmail(event.data.customer_email);
      break;
      
    case 'installment.paid':
      // Track installment progress
      updateInstallmentStatus(event.data);
      break;
  }
  
  res.status(200).send('OK');
});

Website Integration

Embed ShazPay payment links seamlessly into your website or application for a smooth customer experience.

HTML Integration Example

<!-- Website Integration Example -->
<div class="payment-section">
  <h3>Complete Your Purchase</h3>
  <p>Secure payment powered by ShazPay</p>
  
  <!-- Payment Link Button -->
  <a href="https://pay.shazpay.link/abc123" 
     class="payment-button">
    Pay Now - $99.00
  </a>
  
  <!-- QR Code Option -->
  <div class="qr-code">
    <img src="https://api.qrserver.com/v1/create-qr-code/?data=https://pay.shazpay.link/abc123" 
         alt="Pay with QR Code" />
    <p>Scan to pay on mobile</p>
  </div>
</div>

Advanced Features

Custom Branding

White-label payment pages with your brand

  • Upload your logo and colors
  • Custom domain support (Premium)
  • Branded email notifications
  • Professional customer experience

Advanced Analytics

Detailed insights into your payment performance

  • Revenue tracking and trends
  • Customer behavior analysis
  • Conversion rate optimization
  • Custom date range reporting

Automated Workflows

Streamline your payment processes

  • Automatic invoice generation
  • Payment reminder sequences
  • Customer follow-up emails
  • Integration with CRM systems

Multi-Currency Support

Accept payments in 135+ currencies

  • Automatic currency conversion
  • Local payment methods
  • Regional compliance
  • Improved customer experience

Mobile App Integration

ShazPay payment links work seamlessly in mobile applications and responsive websites:

Native App Integration

  • • Open payment links in in-app browser
  • • Deep link back to your app after payment
  • • Support for Apple Pay and Google Pay
  • • QR code scanning for quick payments

Mobile Web Optimization

  • • Responsive checkout pages
  • • Touch-optimized payment forms
  • • Mobile wallet integration
  • • SMS payment link sharing

Integration Best Practices

Security Considerations

  • • Always verify webhook signatures
  • • Use HTTPS for all webhook endpoints
  • • Implement proper error handling and retries
  • • Store sensitive data securely

Performance Optimization

  • • Cache payment link data when possible
  • • Implement timeout handling for API calls
  • • Use asynchronous processing for webhooks
  • • Monitor webhook delivery success rates

Ready to Integrate?

Start with basic link sharing and gradually implement more advanced features as your business grows.