Creating Order / Introduction

Scenario

Before using ECPay’s Embedded Checkout Page, merchant’s server should call ECPay’s API to get a Token. After receiving the token, merchants should set this token onto merchant’s webpage with the integration of ECPay’s JavaScript SDK to access the checkout page. ECPay will then validate this token to check merchant’s identity before displaying the checkout page.

Credit card payment process flow with 3D secure authentication

  1. Initialize the SDK and inputting ServerType.
  2. Send API request (/GetTokenByTrade) to get a Token.
  3. Call createPayment() of SDK (inputting Token, Language, and callback) to get payment methods.
  4. Receive payment result from createPayement().
  5. Receive payment result from ReturnURL.

Credit card payment without using 3D secure authentication

  1. Initialize the SDK and inputting ServerType.
  2. Send API request (/GetTokenByTrade) to get a Token.
  3. Call createPayment() of SDK (inputting Token, Language, and callback) to get payment methods.
  4. Receive payment result from createPayement().
  5. Receive payment result from ReturnURL.

UnionPay card payment

  1. Initialize the SDK and inputting ServerType.
  2. Send API request (/GetTokenByTrade) to get a Token.
  3. Call createPayment() of SDK (inputting Token, Language, and callback) to get payment methods.
  4. Receive payment result from createPayement().
  5. Receive payment result from ReturnURL.

Non-credit card payment process

  1. Initialize the SDK and inputting ServerType.
  2. Send API request (/GetTokenByTrade) to get a Token.
  3. Call createPayment() of SDK (inputting Token, Language, and callback) to get payment methods.
  4. Display the payment number to consumer.
  5. Receive payment result from createPayement().
  6. Receive payment result from ReturnURL.

ApplePay payment process

  1. Before integration of ApplePay, please send the ApplePay certificate to ECPay’s techsupport team. Details of setting of ApplePay’s certification please check the chapter: Preliminary preparation for Apple developers.

  2. Initialize the SDK and inputting ServerType.
  3. Send API request (/GetTokenByTrade) to get a Token.
  4. Call createPayment() of SDK (inputting Token, Language, and callback) to get payment methods.
  5. Receive payment result from createPayement().
  6. Receive payment result from ReturnURL.

Copyright © Green World FinTech Service Co., Ltd. All rights reserved.

Green World