Braintree Payments

Utilize Braintree to accept wallets such as PayPal, Venmo, Google Pay, and Apple Pay. When integrating with Braintree, use both 'process' (found below) and 'secure-pay' (Yuansfer Checkout).

Process

POST https://mapi.yuansfer.com/creditpay/v3/process

Path Parameters

NameTypeDescription

paymentMethodNonce*

string

ID of the payment method. A single token used for each single payment.

merchantNo*

string

Merchant ID

paymentMethod*

string

Identifier of the wallet type being used.

storeNo*

string

Store ID

transactionNo*

string

The ID of the transaction in the Yuansfer system.

verifySign*

string

The parameter signature.

{
    "result":
    {
        "reference": "a6d19b881699dfea0c8b78e91bc64d42",
        "amount": "22.00",
        "supUserid": "sb-lfgk83666547@business.example.com",
        "transactionNo": "302589410330531000",
        "vendorId": "a902q221",
        "currency": "USD",
        "paymentTime": "2021-01-22T19:23:00Z",
        "status": "success"
    },
    "ret_msg": "success",
    "ret_code": "000100"
}

Response

Parameter

Type

Description

result

object

The result object.

ret_msg

string

The response return message.

ret_code

string

The response return code. For more details, see here.

Result Object

Parameter

Type

Description

reference

string

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

amount

number

The transaction amount.

supUserid

string

Encrypted wallet username or credit card number.

transactionNo

string

The ID of the transaction in the Yuansfer system.

vendorId

string

The providers transaction ID.

currency

string

The supported transaction currency is "USD".

paymentTime

string

The date and time when the transaction was created. Format : yyyy-MM-dd'T'HH:mm:ss'Z'.

status

string

The status of the transaction.

Payment Methods

Wallet

Value

Credit Card

credit_card

PayPal

paypal_account

Google Pay

android_pay_card

Apple Pay

apple_pay_card

{
    "merchantNo": "202333",
    "paymentMethod": "credit_card",
    "paymentMethodNonce": "0cd43d3c-911c-0186-7f2d-7a9b53ced56f",
    "storeNo": "301854",
    "transactionNo": "297553640378707470",
    "verifySign": "893fd2c61aebbfd9b1f4543afb727063"
}

Last updated