YoboPay
  1. Data Object
YoboPay
  • 接入说明
  • Introduction
  • Webhook接入
  • Webhook Introduction
  • Test Card
  • Embedded Checkout
  • Checkout
    • Create Session
      POST
    • Expire Session
      POST
    • Retrieve Session
      GET
  • PaymentIntents
    • Retrieve PaymentIntent
      GET
    • List all paymentIntent
      GET
  • Charges
    • List all charges
      GET
  • Customers
    • Create Customer
      POST
    • Update Customer
      POST
    • Retrieve Customer
      GET
  • Events
    • The Event object
    • Types of Events
    • Data Object
      • PaymentIntent
      • Charge
  • Refunds
    • Create Refund
      POST
    • List all refunds
      GET
  1. Data Object

Charge

Schema
Example
Charge
chargeId
string 
charge唯一id
required
Unique identifier for the charge object.
paymentIntentId
string 
交易流水号
required
Payment intenet id
clientReferenceId
string 
自定义订单号
optional
A client unique string
amount
number 
支付金额
required
Amount intended to be collected by this payment
currency
string 
币种
required
Three-letter ISO currency code, in upcase.
paymentMethodId
string 
支付方式id
optional
Payment method id
paymentMethodDetails
object 
支付方式明细
optional
Details about the payment method at the time of the transaction.
type
enum<string> 
required
Allowed value:
card
card
object 
required
If this is a card payment, this hash contains a snapshot of the transaction specific details of the card payment method.
failureCode
string 
异常代码
optional
failureMessage
string 
异常信息
optional
status
enum<string> 
状态
required
Allowed values:
succeededfailedpending
created
integer 
创建时间
required
Timestamp at which the object was created.
Modified at 2025-06-13 09:14:46
Previous
PaymentIntent
Next
Create Refund
Built with