ToyyibPay Payment Gateway Integration

ToyyibPay is a Malaysia-based online payment gateway designed to simplify digital transactions for businesses and organizations, particularly in Southeast Asia. It supports payments via FPX (Financial Process Exchange) online banking, credit/debit cards, and other local methods, with a focus on affordability (as low as RM1 per transaction) and ease of use. ToyyibPay offers features like automated transaction verification, split payments, and integrations with popular platforms via APIs and plugins, making it an excellent choice for SMEs, startups, and enterprises in Malaysia looking to streamline payments in Ringgit Malaysia (MYR).

This guide walks you through integrating ToyyibPay into your application, from account creation to live deployment.


Step 1: Log in or Sign Up

  1. Visit ToyyibPay: Go to ToyyibPay and click Daftar Sekarang (Register Now) to create a new account or Log In if you already have one.
  2. Account Creation: Provide your email, username, password, and basic business details (e.g., business name, phone number). ToyyibPay supports both personal and business accounts.
  3. Email Verification: Check your inbox (or spam folder) for a verification email from ToyyibPay and click the link to activate your account.
  4. Dashboard Access: After verification, log in to the ToyyibPay Dashboard at toyyibpay.com to manage payments, API keys, and settings.

Step 2: Set Up Your Account

Before processing payments, configure your ToyyibPay account:

  1. Complete Your Profile:
  1. Business Verification (Required for Live Mode):
  1. Add a Settlement Bank:
  1. Test Mode: Use the Sandbox environment at dev.toyyibpay.com for testing without verification. Live mode requires approval.

Step 3: Obtain API Credentials

ToyyibPay uses the following credentials for integration:

How to Get Your Credentials:
  1. Log in to the ToyyibPay Dashboard.
  2. Secret Key:
  1. Category Code:
  1. Key Security: Keep the Secret Key confidential—use it only in server-side code. Store all credentials securely.
  2. Add these to your application’s Admin Panel under System Settings > Payment Gateways > ToyyibPay.

Step 4: Configure Payment Methods

ToyyibPay supports various payment methods, activated based on your plan:

  1. Go to Settings > Payment Channels in the Dashboard (or contact support for options).
  2. Available methods include:
  1. Enable card payments by subscribing to the add-on via Settings > Plans. Contact support@toyyibpay.com if additional methods are needed.
  2. These methods will appear in your checkout flow once integrated.

Step 5: Set Up Webhooks

Webhooks (Callback URLs) notify your server of payment events:

  1. In the ToyyibPay Dashboard, go to Settings > API Keys & Webhooks.
  2. Locate the Callback URL field (ToyyibPay uses this term for webhooks).
  3. Webhook URL:
  1. ToyyibPay sends events like billpaymentStatus (e.g., "1" for success) with details like billpaymentInvoiceNo and billExternalReferenceNo.
  2. Save the settings.
  3. Testing: Use the Sandbox at dev.toyyibpay.com to simulate webhook notifications.

Step 6: Set Up Credentials in Our Dashboard

Integrate ToyyibPay into your application:

  1. Log in to your application’s Admin Panel.
  2. Navigate to System Settings > Payment Gateways > ToyyibPay.
ToyyibPay API Keys
  1. Fill out the configuration form:
ToyyibPay API Keys
  1. Detailed Fields:
  1. Click Submit to save. Your ToyyibPay gateway is now configured.

Step 7: Test the Integration

Test your setup in Sandbox Mode:

  1. Enable Sandbox Mode:
  1. Simulate Payments:
  1. Verify Webhooks:
  1. Debugging: If issues arise, check the Sandbox Dashboard’s Transactions tab for error details.

Step 8: Enable Live Mode

After successful testing:

  1. ToyyibPay Dashboard:
  1. Admin Panel:
  1. Webhook Confirmation: Verify the Callback URL is set correctly in the live Dashboard.

Step 9: Go Live

Launch your ToyyibPay integration:

  1. Start Accepting Payments:
  1. Live Verification:
  1. Troubleshooting:

Additional Tips

Note:

If you need further assistance, our support team is here to help. Reach out at softivus@gmail.com or through the Admin Panel. Let’s make your ToyyibPay integration smooth and successful!