Credit Card V3

  1. Credit Card Visa
  2. Credit Card V3 Login

Sep 25, 2020 Contactless Credit Cards - Frequently Asked Questions What are Contactless credit cards? Contactless credit cards are just like a chip credit card but better. Contactless cards enable you to “tap and go”. Just tap the payment terminal when completing a purchase at a contactless enabled merchant and be on your way. Fast, Easy, Secure. This is NOT A place to discuss strategies to pay-down credit card debt, take advantage of balance transfer or 0% interest offers, or anything else related to credit card debt. It is HIGHLY recommended to avoid the 'churning' game if you currently have or are susceptible to credit card debt.

  • Only CAD transaction supported.

  • There are two modes for credit card integration:
    Simple Purchase
    Recurring Purchase

  1. Credit card generator is software that is used to generate and validate a credit card.It is commonly used for online shopping. Our credit card generator allow you Credit Card Generator v3.8 - free shopping online anytime, anywhere!
  2. Icon-credit-card Unicode: f09d Created: v2.0 Categories: Web Application Icons After you get up and running, you can place Font Awesome icons just about anywhere with the tag: icon-credit-card.

# Sign generate and check

# Request and response format

All request and response are in JSON format.The response body is also in JSON format. It should not be treated as fixed or as a schema, new fields may be added as the API evolves, and the order of fields might change. Your applications must therefore be resilient to the reordering of fields within a JSON object.

# Sending request demo code

# Simple purchase

User input card info and purchase once, users will be prompted to input card info each time when they purchase.

# Sequence

1, Call cc_purchase and redirect to redirectUrl to let user input credit card info;
2, After purchase, will redirect to returnUrl;
3, If the transaction is successful, IOTPay will notify to notifyUrl;

# Request URL for simple purchase

Endpoint: https://ccapi.iotpaycloud.com/v3/cc_purchase

Reqeust method:

  • POST
  • Content-Type: application/json;charset=UTF-8

# Parameters

namerequiredtypesampledescription
mchIdyString(30)10000701assigned by IOTPay
mchOrderNoyString(30)1234567890abcassigned by merchant
mchUserIdyString(30)007assigned by merchant
amountyInt1500in cents
currencyyString(3)CADfor now only CAD supported
loginNameyString(12)jack123merchant's login name
subjectnString(64)
bodynString(250)
channelyStringPF_CCfixed value: PF_CC
notifyUrlyString(200)get notify when success
returnUrlyString(200)redirect to this url after payment
signyString(32)C380BEC2BFD727A4B6845133519F3AD6Sign algorithm

# Response

namerequiredtypesampledescription
retCodeyStringSUCCESS or FAIL
retMsgyString
retData.redirectUrlyStringif retCode=SUCCESS, merchant redirect to this url
retData.secureIdyStringFor SDK integration only

Credit Card Visa

# NotifyUrl message(post request in json format)

namerequiredtypesampledescription
payOrderIdyStringSUCCESS or FAIL
mchIdyString
mchOrderNoyString
originalOrderIdyStringoriginal pay order id if payType=refund
amountyInt100in cents
currencyyStringCAD
payTypeyStringpay or refund
refundableyInt100in cents
statusyInt22 or 3 means success
invoiceNumyString
paySuccTimeyString2021-04-07 19:44:51
cardNumyString432567******2266
cardTypeyStringV or M
expiryDateyString
authNumyString
transNumyString
signyString(32)C380BEC2BFD727A4B6845133519F3AD6Sign algorithm

# ReturnUrl parameters

namerequiredtypesampledescription
retCodeyStringSUCCESS or FAIL
retMsgnString
statusyInt22 or 3 both mean the transaction is successful

# Recurring purchase

User input card info once, can purchase with the tokenized card multiple times.

# Sequence

1, Call cc_addcard and then redirect to retData.redirectUrl to let user input credit card info;
2, After addcard, will redirect to returnUrl with the following parameters:
If success: retCode=SUCCESS
If fail: retCode=FAIL&retMsg=xxxx
3, (optional) Call cc_querycard to get card info;
4, If cc_addcard is successful, call cc_purchasewithtoken to do a real purchase

# Request URL for cc_addcard

Endpoint: https://ccapi.iotpaycloud.com/v3/cc_addcard

Reqeust method:

  • POST
  • Content-Type: application/json;charset=UTF-8

# Parameters

namerequiredtypesampledescription
mchIdyString(30)10000701assigned by IOTPay
cardIdyString(30)604567999assigned by merchant,must be unique
loginNameyString(12)jack123merchant's login name
channelyStringPF_CCfixed value: PF_CC
returnUrlyString(200)redirect to this url after payment
signyString(32)C380BEC2BFD727A4B6845133519F3AD6Sign algorithm

each cardId can bind only one credit card, if one user need to bind more cards, use different cardId

# Response

namerequiredtypesampledescription
retCodeyStringSUCCESS or FAIL
retMsgyString
retData.redirectUrlyStringif retCode=SUCCESS, merchant redirect to this url
retData.secureIdyStringused for sdk integration

# ReturnUrl parameters

namerequiredtypesampledescription
retCodeyStringSUCCESS or FAIL
retMsgnString

# Request URL for cc_directaddcard

Endpoint: https://ccapi.iotpaycloud.com/v3/cc_directaddcard

Reqeust method:

  • POST
  • Content-Type: application/json;charset=UTF-8

As an IOTPAY client or partner using this method of integration, your solution must demonstrate compliance to the Payment Card Industry Data Security Standard (PCI DSS) .

# Parameters

namerequiredtypesampledescription
mchIdyString(30)10000701assigned by IOTPay
cardIdyString(30)604567999assigned by merchant
cardNumyString4223456789564532card number
expiryDatenString0725
holderyStringcard holder's name
cvvyString786
loginNameyString(12)jack123merchant's login name
channelyStringPF_CCfixed value: PF_CC
signyString(32)C380BEC2BFD727A4B6845133519F3AD6Sign algorithm

# Response

namerequiredtypesampledescription
retCodeyStringSUCCESS or FAIL
retMsgyString
retDatayJSONif retCode=SUCCESS, card info returned

# retData contains card infomation:

namerequiredtypesampledescription
cardIdyString
cardNumyString
expiryDatenString
holderyString
cvvyString

# Request URL for cc_querycard

Endpoint: https://ccapi.iotpaycloud.com/v3/cc_querycard

Reqeust method:

  • POST
  • Content-Type: application/json;charset=UTF-8

# Parameters

namerequiredtypesampledescription
mchIdyString(30)10000701assigned by IOTPay
cardIdyString(30)604567999assigned by merchant
signyString(32)C380BEC2BFD727A4B6845133519F3AD6Sign algorithm

# Response

namerequiredtypesampledescription
retCodeyStringSUCCESS or FAIL
retMsgyString
retDatayJSONif retCode=SUCCESS, card info returned

# retData contains card infomation:

namerequiredtypesampledescription
cardIdyString
cardNumyString
expiryDateyString
holderyString
cvvyString

# Request URL for purchasewithtoken

Endpoint: https://ccapi.iotpaycloud.com/v3/cc_purchasewithtoken

Reqeust method:

  • POST
  • Content-Type: application/json;charset=UTF-8

# Parameters

namerequiredtypesampledescription
mchIdyString(30)10000701assigned by IOTPay
mchOrderNoyString(30)1234567890abcassigned by merchant
mchUserIdyString(30)007assigned by merchant
cardIdyString(30)604567999assigned by merchant
amountyInt1500in cents
currencyyString(3)CADfor now only CAD supported
loginNameyString(12)jack123merchant's login name
subjectnString(64)
bodynString(250)
clientIpnString(50)192.77.33.56consumer's ip address, for better transaction trace
signyString(32)C380BEC2BFD727A4B6845133519F3AD6Sign algorithm

# Response

namerequiredtypesampledescription
retCodeyStringSUCCESS or FAIL
retMsgyString
retDatayJSONif retCode=SUCCESS, order detailed info returned

# retData contains order infomation:

namerequiredtypesampledescription
payOrderIdyStringSUCCESS or FAIL
mchIdyString
mchOrderNonString
originalOrderIdyStringoriginal pay order id if payType=refund
amountyInt100in cents
currencyyStringCAD
payTypeyStringpay or refund
refundableyInt100in cents
statusyInt22 or 3 means success
invoiceNumyString
paySuccTimeyString2021-04-07 19:44:51
cardNumyString432567******2266
cardTypeyStringV or M
expiryDateyString
authNumyString
transNumyString
channelyStringPF_CCfixed value:PF_CC

Credit Card V3 Login

# Purchase with wallet

Endpoint: https://ccapi.iotpaycloud.com/v3/cc_purchasewithwallet

Reqeust method:

  • POST
  • Content-Type: application/json;charset=UTF-8

# This API is for Apple Pay and Google Pay, contact us before integrating this API.

# Parameters

namerequiredtypesampledescription
mchIdyString(30)10000701assigned by IOTPay
mchOrderNoyString(30)1234567890abcassigned by merchant
amountyInt1500in cents
currencyyString(3)CADfor now only CAD supported
walletTypenString(250)“ApplePay” for ApplePay, “GooglePay” for Google Pay
walletDatanString(250)The OEM Wallet data is generated by the mobile device authorized wallet
loginNameyString(12)jack123merchant's login name
subjectnString(64)
bodynString(250)
signyString(32)C380BEC2BFD727A4B6845133519F3AD6Sign algorithm
CardCredit

walletData must be base64encoded. For ApplePay, you must send the Apple payment token as received by the passkit.For Google Pay, you must send the payment token (paymentData.paymentMethodData.tokenizationData.token) as received by Google Pay API.

# Response

namerequiredtypesampledescription
retCodeyStringSUCCESS or FAIL
retMsgyString
retDatayJSONif retCode=SUCCESS, order detailed info returned

# retData contains order infomation:

namerequiredtypesampledescription
payOrderIdyStringSUCCESS or FAIL
mchIdyString
mchOrderNonString
originalOrderIdyStringoriginal pay order id if payType=refund
amountyInt100in cents
currencyyStringCAD
payTypeyStringpay or refund
refundableyInt100in cents
statusyInt22 or 3 means success
invoiceNumyString
paySuccTimeyString2021-04-07 19:44:51
cardNumyString432567******2266
cardTypeyStringV or M
expiryDateyString
authNumyString
transNumyString
channelyStringPF_CCfixed value:PF_CC

# Refund a transaction

Endpoint: https://ccapi.iotpaycloud.com/v3/cc_refund

Reqeust method:

  • POST
  • Content-Type: application/json;charset=UTF-8

# Parameters

namerequiredtypesampledescription
mchIdyString(30)10000701assigned by IOTPay
mchRefundNoyString(30)R1234567890abcassigned by merchant
loginNameyString(12)jack_chenassigned by merchant,equals to jobNo
refundAmountyInt100in cents
payOrderIdyString(30)
signyString(32)C380BEC2BFD727A4B6845133519F3AD6Sign algorithm

# Response

namerequiredtypesampledescription
retCodeyStringSUCCESS or FAIL
retMsgyString
retDatayJSONif retCode=SUCCESS, order detailed info returned

# Void a transaction

Endpoint: https://ccapi.iotpaycloud.com/v3/cc_void

Reqeust method:

  • POST
  • Content-Type: application/json;charset=UTF-8

# Parameters

namerequiredtypesampledescription
mchIdyString(30)10000701assigned by IOTPay
mchRefundNoyString(30)R1234567890abcassigned by merchant
loginNameyString(12)jack_chenassigned by merchant,equals to jobNo
payOrderIdyString(30)
signyString(32)C380BEC2BFD727A4B6845133519F3AD6Sign algorithm

# Response

namerequiredtypesampledescription
retCodeyStringSUCCESS or FAIL
retMsgyString
retDatayJSONif retCode=SUCCESS, order detailed info returned

# Query order

Endpoint: https://ccapi.iotpaycloud.com/v3/cc_query

Reqeust method:

  • POST
  • Content-Type: application/json;charset=UTF-8

# Parameters

namerequiredtypesampledescription
mchIdyString(30)10000701assigned by IOTPay
mchOrderNoyString(30)1234567890abcassigned by merchant
payOrderIdyString(30)
signyString(32)C380BEC2BFD727A4B6845133519F3AD6Sign algorithm

use either payOrderId or mchOrderNo, use one of them

# Response

namerequiredtypesampledescription
retCodeyStringSUCCESS or FAIL
retMsgyString
retDatayJSONif retCode=SUCCESS, order detailed info returned

# SDKs and document

For iOS integration: iOS sdk
For Android integration: Android sdk
PHP and JS integration: Php sdk

# Demo and source code

Simple purchase: demoRecurring purchase: demosource code download