v1

latestOpenAPI 3.0.02026-07-24130633.0 KB

paymentMethod

post/paymentMethod

Headers

Authorizationstring required

Sign key assigned by Evonet

Content-typestring required

Specify application/json; charset=utf-8, which means the message body of the request and response must be in the JSON format, and the character encoding is UTF-8. It will be echoed back in the response message.

DateTimestring required

The time when the message is sent. The format follows ISO 8601, which is YYYY-MMDDThh:mm:ssTZD. For example, 2021-05-26T10:08:25+08:00. It will be echoed back in the response message.

KeyIDstring required

KeyID is a unique key identifier of up to 36 characters that is generated along with the signature key by Evonet

MsgIDstring

An ID for a merchant to trace every API request. The suggested value is UUID or GUID, such as 2d21a5715c034efb7e0aa383b885fc7a. It is suggested to specify this value with no more than 32 characters in length. Evonet will not validate this value and will echo it back in the response message.

SignTypestring required

Fixed value: Key-based

Idempotency-Keystring

Request idempotent identity, no more than 64 characters.

Request body

allowAuthenticationboolean

This is to indicate if this Payment or Payment Method needs to conduct authentication

  • Usage instruction:
  1. In Evonet, each merchant is configured with Non-Authentication, Optional-Authentication and Must-Authentication. When store is configured Optional-Authentication, this field is applied.
  2. This filed is used in POST Payment request and Payment Method request, if true, Evonet will conduct additional authentication for this transaction or tokenize.
  3. If not present, means default value=false, Evonet will not conduct authentication process for this transaction
  4. Only used when paymentMethod.type=card
  5. In Payment request, when paymentMethod.type=card and authenticationOnly=true this field is not applied.
  6. Field Type: boolean
returnURLstring

This is the URL address provided by merchant. After completing the authentication or payment processing, the user is redirected back to the merchant site. This URL address specifies which merchant site page the user goes back to.

  • Usage Instruction
  1. Required in POST PaymentMethod or POST Payment request message when 3DS authentication is being performed.
  2. Required in POST PaymentMethod request message when performing the tokenization with Alipay.
  3. Required in POST Payment request message when performing the payment with E-Wallets, points and onlineBanking including: 3.1 Alipay, Alipay+ and Jkopay on PC WEB 3.2 Alipay, Alipay+, Alipay HK, WeChat Pay and Jkopay on Mobile WAP 3.3 WeChat Pay in Official Account 3.4 SecurePay for UnionPay, TrueMoney Wallet, Rabbit LINE Pay, Pay with Points, Krungsri Online, Bualuang iBanking, Boost, MCash, ShopeePay, Touch 'N Go eWallet, Cards_KOR, Naver_Pay, Kakao_Pay and PAYCO, DANA, OVO, ShopeePay Indonesia, Akulaku, BNI VA, BRI VA, CIMB VA, Mandiri VA, Maybank VA, Permata VA, au, SoftBank, NTT Docomo, LINE Pay, Merpay, Paypay, Rakuten Pay, BC_Card, Kookmin_Bank_Card, Hana_Bank_Card, Samsung_Card, Shinhan_Bank_Card, Hyundai_Card, Lotte_Card or Nonghyup_Bank_Card on PC WEB, Mobile WAP and wallet APP. 3.5 K PLUS on Mobile WAP and wallet APP. 3.6 SCB Easy Net on wallet APP
  4. Field Type: String(300) 4.1 When authentication.type=threeDSIntegrator or threeDSPage, the maximum is 75. 4.2 When Payment Brand is Alipay or AlipayHK, the maximum is 200.
  5. The format of the webhook must contain http:// or htps://
webhookstring

This filed is used for merchant to provide asynchronous notification endpoint

  • Usage Instruction
  1. Merchant may provide this information in the request message, once it is processed successfully, Evonet will send notification to this endpoint
  2. The format of the webhook must contain http:// or htps://
  3. Field Type: String(300)
metadatastring

This field is used for merchant to state reference information

  • Usage Instruction
  1. If merchant sends this field in the request message, Evonet will echo it back in the response
  2. Field Type: String(512)

Response

metadatastring

This field is used for merchant to state reference information

  • Usage Instruction
  1. If merchant sends this field in the request message, Evonet will echo it back in the response
  2. Field Type: String(512)