Card Transaction

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
❗️

Rate limiting Enabled-We process only 20 request/seconds from same IP

You can collect payments from customers with leading cards using the Merchant Hosted integration. You need to ensure that all the card related values are passed to in request

📘

We process domestic and international card transaction for leading networks like Visa/Mastercard/RuPay/Amex etc

Click on the below link to explore the API endpoints

API endpoints

Sample Card Details

Card Number-Visa- 4111 1111 1111 1111
Card Number-MasterCard-5111 1111 1111 1111
Name on card- Test
Expiry Date- 12/2025 ( always take month ahead of current month to set expiry month for the card)
cvv- 123
❗️

Note: Secure Hash is to be always generated and passed in request message. After generating the Secure Hash if you wish to change any parameter then again the secure hash has to be generated

click to read more Generate Hash Details




Body Params
string
required
Defaults to I_00001

MerchantID used to do transaction, use default

string

use this parameter if you want to integrate as aggregator,If aggregator is attached to your MID then Passing this value is mandatory, Please change MID to I_00002 if you have aggregator attached and use Aggregator ID as A_00001 in request

string
required

Unique rerefernce number sent by merchant, this has to be unique for every transaction

number
required
Defaults to 51

Transaction Amount

number
required
Defaults to 356

Transcation currency, 356 is for INR

string
required
Defaults to 1

use default value 1

string
required
Defaults to card

Mode of Payment, Always use Default value

string
required

Define Type of card Credit Card/Debit Card Use Value DC for Debit Card and CC for credit card

number
required
Defaults to 4111111111111111

Card Number

number
required
Defaults to 202612

Card Expiry

string
required
Defaults to Test

Name of Card Holder

number
required
Defaults to 123

Card CVV value

string
Defaults to https://sandbox.api.phicommerce.com/pg/api/merchant

Return Url to post back response, if this is not passed then url configured for merchant will be used, this might have been given at the time of onboarding

string
Defaults to SALE

Type Of Transaction, Use Default Value

string
required
Defaults to [email protected]

Customer email ID, use default value incase email ID is not present

string
Defaults to 20260321113913
string
Defaults to 9999999999

Customer Mobile No, use default value incase Mobile Number is not present

string
Defaults to abc

Customer Name

string
required

Pass Application number , this is not needed in UAT and Live environment, this is echoed back in response

string

Additional value of the transaction, this will be echoed back in transaction

string

Click to generate the Hash, Hash will be calculated and copied , This is used to authenticate the request coming into Phicommerce PG

Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
apps-fileview.texmex_20251104.05_p0 temp.txt Displaying temp.txt.