Yuansfer DOCS
  • Introduction
  • GUIDE
    • Online Payment
    • Point of Sale
      • Scan QR Code
      • Create QR Code
    • Plugins
    • Payment Methods
    • Financial Report
    • Security
    • Incident Priorities
    • SDK
    • Tutorials & Examples
      • PHP SDK
      • JAVA SDK
      • C# SDK
      • JS SDK
  • API REFERENCE V3
    • Sandbox Environment
      • Apply Sandbox Credentials
    • Signing API Parameters
    • Customers
      • Register Customer
      • Retrieve Customer
      • Update Customer
    • Payments
      • Online Payment
        • Yuansfer Checkout
        • Yuansfer Integrated Payment
          • Braintree Payments
          • Prepay
        • Recurring Payments
          • Authorize
          • Apply Token
          • Pay
          • Revoke
      • Point of Sale Payment
        • Scan QR Code
          • Add
          • Prepay
        • Create QR Code
    • Transaction Revert
      • Refund
      • Cancel
    • Transaction Data Search
      • Transaction Query
    • Payouts
      • Create Payee
      • Retrieve Payee
      • Balance
      • Send Money
      • Search Payments
    • Notes
  • 中文
Powered by GitBook
On this page

Was this helpful?

  1. API REFERENCE V3
  2. Payments
  3. Online Payment
  4. Recurring Payments

Pay

Pay

POST https://mapi.yuansfer.com/auto-debit/v3/pay

Use this interface to initiate a payment and process payment results according to the status and operation instruction returned by Yuansfer. AccessToken will be used when deductions are made.

Request Body

Name
Type
Description

merchantNo*

string

Merchant ID

storeNo*

string

Store ID

autoDebitNo*

string

The auto-debit record ID.

amount*

string

The transaction amount.

currency*

string

The supported transaction currency is "USD".

settleCurrency*

string

The supported settlement currency is "USD".

reference*

string

The Invoice Number of the transaction in the merchant's system.

ipnUrl*

string

Asynchronous callback address.

verifySign*

string

The parameter signature.

{
    "result": {
        "amount": 100,
        "autoDebitNo": "298222562856331071",
        "currency": "PHP",
        "reference": "test2021010801",
        "transactionNo": "297553645779430418"
    },
    "ret_code": "000100",
    "ret_msg": "pay success"
}

Response

Parameter

Type

Description

result

object

The result object.

ret_msg

string

The response return message.

ret_code

string

Result Object

Parameter

Type

Description

amount

string

The transaction amount.

autoDebitNo

string

Unique ID of auto debit record in Yuansfer's system.

currency

string

The supported transaction currency is "USD".

settleCurrency

string

The supported settlement currency is "USD".

reference

string

The invoice number of the transaction in the merchant's system.

transactionNo

string

The unique ID of a transaction.

{
    "merchantNo": "200043",
    "storeNo": "300014",
    "verifySign": "cec6cc1dc16c399f68b66d74f8e363f5",
    "autoDebitNo": "298222562856331071",
    "amount": "100",
    "currency": "PHP",
    "settleCurrency": "USD",
    "reference": "test2021010801",
    "ipnUrl": "http://zk-tys.yunkeguan.com/ttest/test"
}
{
    "result": {
        "amount": 100,
        "autoDebitNo": "298222562856331071",
        "currency": "PHP",
        "settleCurrency": "USD",
        "reference": "test2021010801",
        "transactionNo": "297553645779430418"
    },
    "ret_code": "000100",
    "ret_msg": "pay success"
}
{
   "ret_code": "000000",
   "ret_msg": "data error : verifySign",
}
PreviousApply TokenNextRevoke

Last updated 2 years ago

Was this helpful?

The response return code. For more details, see .

here