-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
459 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"request": { | ||
"method": "DELETE", | ||
"urlPattern": "^\\/v1\\/requestOrder\\/.*[0-9a-zA-Z].*$" | ||
}, | ||
"response": { | ||
"status": 201, | ||
"headers": { | ||
"Content-Type": "application/json" | ||
}, | ||
"jsonBody": { | ||
"resultInfo": { | ||
"code": "REQUEST_ACCEPTED", | ||
"message": "Request accepted", | ||
"codeId": "08100001" | ||
}, | ||
"data": null | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"request": { | ||
"method": "POST", | ||
"url": "/v1/requestOrder" | ||
}, | ||
"response": { | ||
"status": 201, | ||
"headers": { | ||
"Content-Type": "application/json" | ||
}, | ||
"jsonBody": { | ||
"resultInfo": { | ||
"code": "SUCCESS", | ||
"message": "Success", | ||
"codeId": "08100001" | ||
}, | ||
"data": { | ||
"merchantPaymentId": "TESTMERCH_PAY_ID5f55c201d6359", | ||
"userAuthorizationId": "SAME-USER-AUTH-ID-PROVIDED_BY_YOU", | ||
"amount": { | ||
"amount": 12, | ||
"currency": "JPY" | ||
}, | ||
"orderItems": [], | ||
"expiryDate": 1599477346, | ||
"requestedAt": 1599455745 | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"urlPattern": "^\\/v1\\/requestOrder\\/.*[0-9a-zA-Z].*$" | ||
}, | ||
"response": { | ||
"status": 201, | ||
"headers": { | ||
"Content-Type": "application/json" | ||
}, | ||
"jsonBody": { | ||
"resultInfo": { | ||
"code": "SUCCESS", | ||
"message": "Success", | ||
"codeId": "08100001" | ||
}, | ||
"data": { | ||
"merchantPaymentId": "MERCHANT_PAYMENT_IDENTIFIER", | ||
"userAuthorizationId": "USER_AUTHORIZATION", | ||
"amount": { | ||
"amount": 15, | ||
"currency": "JPY" | ||
}, | ||
"orderItems": [], | ||
"status": "COMPLETED", | ||
"requestedAt": 1601281573, | ||
"refunds": { | ||
"data": [] | ||
}, | ||
"expiryDate": 1601303174, | ||
"paymentId": "PAYPAY_PAYMENT_IDENTIFIER", | ||
"acceptedAt": 1601281610 | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"request": { | ||
"method": "POST", | ||
"url": "/v1/requestOrder/refunds" | ||
}, | ||
"response": { | ||
"status": 201, | ||
"headers": { | ||
"Content-Type": "application/json" | ||
}, | ||
"jsonBody": { | ||
"resultInfo": { | ||
"code": "SUCCESS", | ||
"message": "Success", | ||
"codeId": "08100001" | ||
}, | ||
"data": { | ||
"status": "CREATED", | ||
"acceptedAt": 1601280078, | ||
"merchantRefundId": "TESTREFUNDID", | ||
"paymentId": "PAYPAY-PAYMENTID", | ||
"amount": { | ||
"amount": 2, | ||
"currency": "JPY" | ||
}, | ||
"requestedAt": 1601280078, | ||
"assumeMerchant": "YOURMERCHANTID" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<phpunit colors="true"> | ||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">src</directory> | ||
</whitelist> | ||
</filter> | ||
<logging> | ||
<log type="coverage-php" target="./build/cov/clover.xml"/> | ||
</logging> | ||
<testsuites> | ||
<testsuite name="Core Classes"> | ||
<file> tests/CoreClassesTest.php</file> | ||
</testsuite> | ||
<testsuite name="Payloads"> | ||
<file> tests/PayloadsTest.php</file> | ||
</testsuite> | ||
<testsuite name="QR Code"> | ||
<file> tests/QrTest.php</file> | ||
</testsuite> | ||
<testsuite name="Payments"> | ||
<file> tests/PaymentTest.php</file> | ||
<file> tests/PreAuthTest.php</file> | ||
<file> tests/ContinuousPaymentTest.php</file> | ||
<file> tests/RefundTest.php</file> | ||
</testsuite> | ||
<testsuite name="User"> | ||
<file>tests/PipelinedAccountLinkTest.php</file> | ||
<file> tests/UserTest.php</file> | ||
<file> tests/WalletTest.php </file> | ||
</testsuite> | ||
<testsuite name="Housekeeping"> | ||
<file> tests/ZCleanupTest.php</file> | ||
</testsuite> | ||
</testsuites> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> | ||
<coverage processUncoveredFiles="true"> | ||
<include> | ||
<directory suffix=".php">src</directory> | ||
</include> | ||
<report> | ||
<php outputFile="./build/cov/clover.xml"/> | ||
</report> | ||
</coverage> | ||
<logging/> | ||
<testsuites> | ||
<testsuite name="Core Classes"> | ||
<file> tests/CoreClassesTest.php</file> | ||
</testsuite> | ||
<testsuite name="Payloads"> | ||
<file> tests/PayloadsTest.php</file> | ||
</testsuite> | ||
<testsuite name="QR Code"> | ||
<file> tests/QrTest.php</file> | ||
</testsuite> | ||
<testsuite name="Payments"> | ||
<file> tests/PaymentTest.php</file> | ||
<file> tests/PreAuthTest.php</file> | ||
<file> tests/PendingPaymentTest.php</file> | ||
<file> tests/ContinuousPaymentTest.php</file> | ||
<file> tests/RefundTest.php</file> | ||
</testsuite> | ||
<testsuite name="User"> | ||
<file>tests/PipelinedAccountLinkTest.php</file> | ||
<file> tests/UserTest.php</file> | ||
<file> tests/WalletTest.php </file> | ||
</testsuite> | ||
<testsuite name="Housekeeping"> | ||
<file> tests/ZCleanupTest.php</file> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<phpunit colors="true"> | ||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">src</directory> | ||
</whitelist> | ||
</filter> | ||
<logging> | ||
<log type="coverage-php" target="./build/cov/clover.xml"/> | ||
</logging> | ||
<testsuites> | ||
<testsuite name="Core Classes"> | ||
<file> tests/CoreClassesTest.php</file> | ||
</testsuite> | ||
<testsuite name="Payloads"> | ||
<file> tests/PayloadsTest.php</file> | ||
</testsuite> | ||
<testsuite name="QR Code"> | ||
<file> tests/QrTest.php</file> | ||
</testsuite> | ||
<testsuite name="Payments"> | ||
<file> tests/PaymentTest.php</file> | ||
<file> tests/PreAuthTest.php</file> | ||
<file> tests/PendingPaymentTest.php</file> | ||
<file> tests/ContinuousPaymentTest.php</file> | ||
<file> tests/RefundTest.php</file> | ||
</testsuite> | ||
<testsuite name="User"> | ||
<file>tests/PipelinedAccountLinkTest.php</file> | ||
<file> tests/UserTest.php</file> | ||
<file> tests/WalletTest.php </file> | ||
</testsuite> | ||
<testsuite name="Housekeeping"> | ||
<file> tests/ZCleanupTest.php</file> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.