diff --git a/README.md b/README.md
index 1c1aa62..1e53765 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
A production-ready 綠界全方位金流(ECPay All-In-One, AIO) SDK for Node.js with TypeScript Support
[![build](https://github.com/simenkid/node-ecpay-aio/actions/workflows/build.yml/badge.svg)](https://github.com/simenkid/node-ecpay-aio/actions/workflows/build.yml)
-![Coverage Badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/simenkid/6cd8ec3f4115bc7b0fc0cb646da2dd77/raw/d473b387740594dc486c5b8032ad8ba7adb7b91b/node-ecpay-aio__heads_main.json)
+![Coverage Badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/simenkid/6cd8ec3f4115bc7b0fc0cb646da2dd77/raw/37458fd300efcea7ef2d3adbc4598e47a76a34d9/node-ecpay-aio__heads_main.json)
[![npm](https://img.shields.io/npm/v/node-ecpay-aio.svg?cacheSeconds=3600)](https://www.npmjs.com/package/node-ecpay-aio)
[![npm](https://img.shields.io/npm/l/node-ecpay-aio.svg?cacheSeconds=3600)](https://github.com/simenkid/node-ecpay-aio/blob/main/LICENSE)
[![node version](https://img.shields.io/node/v/node-ecpay-aio)](https://img.shields.io/node/v/node-ecpay-aio)
@@ -65,3 +65,7 @@ npm install --save node-ecpay-aio
## License
Licensed under [MIT](https://github.com/simenkid/node-ecpay-aio/blob/main/LICENSE).
+
+
+
+
diff --git a/package.json b/package.json
index 2673a56..1a4ac8d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "node-ecpay-aio",
- "version": "0.1.9",
+ "version": "0.2.0",
"description": "A production-ready ECPay AIO SDK for Node.js with TypeScript support.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
diff --git a/src/__tests__/Merchant.test.ts b/src/__tests__/Merchant.test.ts
index d4c7d31..be8e34b 100644
--- a/src/__tests__/Merchant.test.ts
+++ b/src/__tests__/Merchant.test.ts
@@ -19,7 +19,6 @@ import {
TradeV2Query,
FundingReconDetailQuery,
} from '../feature/Query';
-
import { CreditCardPeriodAction, DoAction } from '../feature/Action';
import { ECPayServiceUrls } from '../config';
import { TEST_MERCHANT_CONFIG, TEST_BASE_PARAMS } from './test_setting';
diff --git a/src/__tests__/Payment.test.ts b/src/__tests__/Payment.test.ts
index 6961a4e..26f9439 100644
--- a/src/__tests__/Payment.test.ts
+++ b/src/__tests__/Payment.test.ts
@@ -1,5 +1,4 @@
//@ts-nocheck
-
import { Merchant } from '../feature/Merchant';
import { CreditOneTimePayment } from '../feature/Payment';
import { TEST_MERCHANT_CONFIG } from './test_setting';
diff --git a/src/__tests__/payments/ALLPayPayment.test.ts b/src/__tests__/payments/ALLPayPayment.test.ts
index 7df70d1..19a37c9 100644
--- a/src/__tests__/payments/ALLPayPayment.test.ts
+++ b/src/__tests__/payments/ALLPayPayment.test.ts
@@ -1,6 +1,7 @@
//@ts-nocheck
import { Merchant } from '../../feature/Merchant';
import { ALLPayment } from '../../feature/Payment';
+import { getCurrentTaipeiTimeString } from '../../utils';
import { TEST_MERCHANT_CONFIG, TEST_BASE_PARAMS } from '../test_setting';
describe('AndroidPayment: Check Params Types', () => {
@@ -119,3 +120,22 @@ describe('AndroidPayment: Check Params Types', () => {
}).toThrowError('must be less than or equal to 999');
});
});
+
+describe('ALLPayment: Redirect Post Form', () => {
+ const merchant = new Merchant('Test', TEST_MERCHANT_CONFIG);
+
+ const baseParams: BasePaymentParams = {
+ MerchantTradeNo: `nea${getCurrentTaipeiTimeString({ format: 'Serial' })}`,
+ MerchantTradeDate: getCurrentTaipeiTimeString(),
+ TotalAmount: 999,
+ TradeDesc: 'node-ecpay-aio testing order for ALLPayment',
+ ItemName: 'test item name',
+ };
+
+ test('Checkout with ', async () => {
+ const payment = merchant.createPayment(ALLPayment, baseParams, {});
+
+ const html = await payment.checkout();
+ expect(html.startsWith('