iMerchant Sandbox: https://gw-test.passfeed.com

iMerchant Production: https://api.passfeed.com/

To charge a credit or a debit card, you create a Charge object. You can accept a payment using Charge api.

Request Body

bid string [32] required

bid is the account number generated by iMerchant for the merchant. It is a string of 32 bits long to uniquely identify the merchant generated by the system. It comes after the URL as a parameter url?bid=xxxxxx to visit the payment page

example:

Example: py_live_gRDxmTUWdWrIzqsITuLzke9T

order_id string

It is a string of number to uniquely distribute the id to a specific order, which the id is created by iMerchant

amount Int required

total amount to be charged for an order. the units are cents, and in some areas the units are yuan. for details please refer to the ‘support currency’ chapter

sign string(32) required

Digital signature

Response Field

status string

Information about the charge result
example: "successful", "fail"

message string

description to the response result

Language
Click Try It! to start a request and see the response here!