WooshPay OpenAPI
Product DocumentAPI ReferenceJS SDK ReferenceSaaS Platform Integration
Product DocumentAPI ReferenceJS SDK ReferenceSaaS Platform Integration
Back to WooshPay Website
  1. Bank redirects
  • Online payments
    • Quick Start
    • Integration overview
    • Wooshpay JS SDK
    • Wooshpay Checkout
    • Wooshpay Direct API
    • Payment Link
    • Authorize and capture
    • Build subscriptions integration
    • Testing cards
  • After the payment
    • Payouts
    • Webhook
    • Check the webhook signatures
    • 校验webhook签名
  • Add more payment methods
    • Supported payment method
    • Cards
    • Wallets
      • Alipay
      • Alipay HK
      • Apple Pay
      • Google Pay
      • Wechat Pay
      • 微信支付
      • Kakao Pay
      • DANA
      • Boost
      • Grabpay
      • Mcash
      • Touch'n Go
      • ShopeePay
      • UnionPay
      • 9Pay
      • OVO
      • GCash
      • TrueMoney
    • Bank redirects
      • Bancontact
      • BPI
      • Trustly
      • EPS
      • Giropay
      • iDEAL
      • Przelewy24
      • FPX
    • Buy Now Pay Later
      • Klarna
    • Bank Debits
      • Sepa Direct Debit
    • Bank Transfer
      • Bank Transfer in Europe
      • Bank Transfer in United Kingdom
      • Bank Transfer in Indonesia
    • QR Payments
      • QRIS
      • PromptPay
    • Real-time payments
      • PIX
      • PayNow
      • UPI
      • SPEI
  • More payment scenarios
    • Set up future payments
    • Save payment method during payment
  • SaaS platform integration
    • Shopify Plugin
    • Shopastro 星盘
    • WooCommerce
    • Shoplazza 店匠
    • Shopline Plugin
    • Sage Connection
  • Resources
    • Supported currencies
  1. Bank redirects

FPX

FPX is a popular online payment method in Malaysia. It allows users to make secure and convenient payments for various services and purchases directly from their bank accounts. FPX supports transactions with multiple major banks in Malaysia, making it a widely accepted and trusted payment option.

Features#

Processing currenciesMYR
Settlement currenciesUSD
Minimum transaction amount0.01 MYR
Maximum transaction amount5000 MYR
Refunds✅
Partial Refunds❌
Multiple partial refund❌
Chargeback❌

Integration Method#

Payment method enumeration values: fpx
There is integration method for FPX
1.
Direct API

Direct API#

How to integration#

For direct API integration, you can create a PaymentIntent and get url in only one step. The following is the demo of creating payment intent:
Create a PaymentIntent
A PaymentIntent is an object that represents your intent to collect payment from your customer and tracks the lifecycle of the payment process. Create a PaymentIntent on your server and specify the amount to collect and a supported currency. If you have an existing Payment Intents integration, add fpx to the list of payment method types.
Request Create a PaymentIntent
{
    "amount":1050,
    "currency":"MYR",
    "confirm":true,
    "payment_method_data" : {
        "type":"fpx"
    },
    "description": "product description",
    "quantity": 1,
    "return_url":"https://your.website"
}
Response
{
    "id": "pi_1746731793865768960",
    "object": "payment_intent",
    "created": 1705288287000,
    "livemode": true,
    "currency": "MYR",
    "amount": 1050,
    "status": "requires_action",
    "description": "product description",
    "quantity": 1,
    "client_secret": "pi_1746731793865768960_secret_x3GY1jyXnqh7iYO2mIirIUtS",
    "next_action": {
        "type": "fpx_handle_redirect",
        "fpx_handle_redirect": {
            "url": "https://api.wooshpay.com/v1/receives/c8/pay/c1746731794167758848"
        }
    },
    "payment_method_types": [
        "fpx"
    ],
    "confirmation_method": "automatic",
    "return_url": "https://your.website",
    "payment_method": "pm_1746731793723162624",
    "capture_method": "automatic"
}

Next step#

You can add more features to your integration as needed

Create a Webhook#

Listen to events on your WooshPay account so your integration can automatically trigger reactions. Create a webhook that mainly focuses on enabled_events and url.

Create a Refund#

Create a refund to repay funds to your customer. You can also perform partial refunds, but not every payment method supports them. A partial refund is when you refund only part of the original transaction amount.
Modified at 2024-03-11 02:04:48
Previous
Przelewy24
Next
Klarna
Built with