调至内容部分
创建账户
或
登录
Stripe 文档徽标
/
询问人工智能
创建账户
登录
开始
付款
销售收入
平台和交易市场
资金管理
开发人员资源
概览
关于 Stripe 支付
升级您的集成
支付分析
线上付款
概览查找您的用例Managed Payments
使用 Payment Link
构建结账页面
构建高级集成
构建应用内集成
支付方式
添加支付方式
    概览
    支付方式集成选项
    在管理平台中管理默认支付方式
    支付方式类型
    银行卡
    使用 Stripe 余额支付
    加密货币
    银行借记
    银行重定向
      Bancontact
      BLIK
      EPS
      FPX
        收款
      iDEAL
      Przelewy24
      Sofort
      TWINT
      Wero
    银行转账
    贷记转账(来源)
    先买后付
    实时付款
    付款凭单
    钱包
    按国家启用本地支付方式
    自定义支付方式
管理支付方式
用 Link 更快结账
支付接口
Payment Links
结账
Web Elements
应用内 Element
支付场景
处理多种货币
自定义支付流程
灵活收单
编排
线下支付
Terminal
超越支付功能
成立公司
加密货币
Financial Connections
Climate
了解欺诈
Radar 欺诈保护
管理争议
验证身份
首页付款Add payment methodsBank redirectsFPX

Accept an FPX payment

Learn how to accept FPX, a common payment method in Malaysia.

注意

Stripe automatically presents your customers payment method options by evaluating their currency, payment method restrictions, and other parameters. We recommend that you configure your payment methods from the Stripe Dashboard using the instructions in Accept a payment.

If you want to continue manually configuring the payment methods you present to your customers with Checkout, use this guide. Otherwise, update your integration to configure payment methods in the Dashboard.

FPX is a single-use payment method. Customers pay with FPX by redirecting from your website, sending you payment, then returning to your website where you get immediate notification on whether the payment succeeded or failed.

Determine compatibility

Customer Geography: Malaysia

Supported currencies: myr

Presentment currencies: myr

Payment mode: Yes

Setup mode: No

Subscription mode: No

A Checkout Session must satisfy all of the following conditions to support FPX payments:

  • Prices for all line items must be in the same currency. If you have line items in different currencies, create separate Checkout Sessions for each currency.
  • You can only use one-time line items (recurring subscription plans are not supported).

Accept a payment

注意

Build an integration to accept a payment with Checkout before using this guide.

Use this guide to learn how to enable FPX—it shows the differences between accepting a card payment and using FPX.

Enable FPX as a payment method

When creating a new Checkout Session, you need to:

  1. Add fpx to the list of payment_method_types
  2. Make sure all your line_items use the myr currency
Ruby
Python
PHP
Java
Node
Go
.NET
No results
Stripe::Checkout::Session.create({ mode: 'payment', payment_method_types: ['card'], payment_method_types: ['card', 'fpx'], line_items: [{ price_data: { currency: 'usd', # To accept `fpx`, all line items must have currency: myr currency: 'myr', product_data: { name: 'T-shirt', }, unit_amount: 2000, }, quantity: 1, }], success_url: 'https://example.com/success', cancel_url: 'https://example.com/cancel', })

Fulfill your orders

After accepting a payment, learn how to fulfill orders.

Confirmation page

FPX requires showing your customer their transaction information after they’ve completed their payment. Follow the custom success page guide to learn how to customize your success page.

When customizing, you’ll need to retrieve the Charge object directly from the PaymentIntent object using the PaymentIntent ID from your Checkout Session and display the following information on your success_url page.

InformationSource of information
Transaction Date & Timecreated from the Charge object.
Amountamount from the Charge object.
Seller Order No.statement_descriptor from the Charge object.
FPX Transaction IDpayment_method_details[fpx][transaction_id] from the Charge object.
Buyer Bank Namepayment_method_details[fpx][bank] from the Charge object
Transaction Statusstatus from the Charge object

Test your integration

When testing your Checkout integration, select FPX as the payment method and click the Pay button.

Handle refunds and disputes

The refund period for FPX is up to 60 days after the original payment.

There is no dispute process—customers authenticate with their bank.

另见

  • More about FPX
  • Checkout fulfillment
  • Customizing Checkout
此页面的内容有帮助吗?
是否
  • 需要帮助?联系支持。
  • 加入我们的早期使用计划。
  • 查看我们的更改日志。
  • 有问题?联系销售。
  • LLM? Read llms.txt.
  • Powered by Markdoc