Version Notes
Highlights
- Add option to allows merchant config a card type support by themselves.
Download this release
Release Info
Developer | Omise |
Extension | Omise_Gateway |
Version | 1.10.0 |
Comparing to | |
See all releases |
Code changes from version 1.8.0.0 to 1.10.0
- app/code/community/Omise/Gateway/Model/Config/Var/Cctype.php +13 -0
- app/code/community/Omise/Gateway/Model/Config/Var/Currency.php +0 -17
- app/code/community/Omise/Gateway/Model/Omise.php +1 -1
- app/code/community/Omise/Gateway/etc/config.xml +1 -1
- app/code/community/Omise/Gateway/etc/system.xml +11 -0
- lib/omise-php/.gitignore +0 -3
- lib/omise-php/circle.yml +0 -9
- lib/omise-php/composer.json +0 -23
- lib/omise-php/phpunit.xml +0 -24
- lib/omise-php/tests/fixtures/api.omise.co/account-get.json +0 -6
- lib/omise-php/tests/fixtures/api.omise.co/balance-get.json +0 -7
- lib/omise-php/tests/fixtures/api.omise.co/charges-get.json +0 -1161
- lib/omise-php/tests/fixtures/api.omise.co/charges-post.json +0 -52
- lib/omise-php/tests/fixtures/api.omise.co/charges/.DS_Store +0 -0
- lib/omise-php/tests/fixtures/api.omise.co/charges/chrg_test_4zmrjgxdh4ycj2qncoj-get.json +0 -61
- lib/omise-php/tests/fixtures/api.omise.co/charges/chrg_test_4zmrjgxdh4ycj2qncoj-patch.json +0 -52
- lib/omise-php/tests/fixtures/api.omise.co/charges/chrg_test_4zmrjgxdh4ycj2qncoj/capture-post.json +0 -52
- lib/omise-php/tests/fixtures/api.omise.co/charges/chrg_test_4zmrjgxdh4ycj2qncoj/refunds-get.json +0 -21
- lib/omise-php/tests/fixtures/api.omise.co/charges/chrg_test_4zmrjgxdh4ycj2qncoj/refunds-post.json +0 -10
- lib/omise-php/tests/fixtures/api.omise.co/charges/chrg_test_4zmrjgxdh4ycj2qncoj/refunds/rfnd_test_4zmrjhlbqy587sw6fwt-get.json +0 -10
- lib/omise-php/tests/fixtures/api.omise.co/customers-get.json +0 -467
- lib/omise-php/tests/fixtures/api.omise.co/customers-post.json +0 -39
- lib/omise-php/tests/fixtures/api.omise.co/customers/cust_test_4zmrjg2hct06ybwobqc-delete.json +0 -6
- lib/omise-php/tests/fixtures/api.omise.co/customers/cust_test_4zmrjg2hct06ybwobqc-get.json +0 -39
- lib/omise-php/tests/fixtures/api.omise.co/customers/cust_test_4zmrjg2hct06ybwobqc-patch.json +0 -39
- lib/omise-php/tests/fixtures/api.omise.co/customers/cust_test_4zmrjg2hct06ybwobqc/cards/card_test_4zmrjfzf0spz3mh63cs-delete.json +0 -6
- lib/omise-php/tests/fixtures/api.omise.co/customers/cust_test_4zmrjg2hct06ybwobqc/cards/card_test_4zmrjfzf0spz3mh63cs-get.json +0 -18
- lib/omise-php/tests/fixtures/api.omise.co/customers/cust_test_4zmrjg2hct06ybwobqc/cards/card_test_4zmrjfzf0spz3mh63cs-patch.json +0 -18
- lib/omise-php/tests/fixtures/api.omise.co/disputes-get.json +0 -22
- lib/omise-php/tests/fixtures/api.omise.co/disputes/closed-get.json +0 -22
- lib/omise-php/tests/fixtures/api.omise.co/disputes/dspt_test_4zgf15h89w8t775kcm8-get.json +0 -12
- lib/omise-php/tests/fixtures/api.omise.co/disputes/dspt_test_4zgf15h89w8t775kcm8-patch.json +0 -12
- lib/omise-php/tests/fixtures/api.omise.co/disputes/open-get.json +0 -22
- lib/omise-php/tests/fixtures/api.omise.co/disputes/pending-get.json +0 -22
- lib/omise-php/tests/fixtures/api.omise.co/recipients-get.json +0 -33
- lib/omise-php/tests/fixtures/api.omise.co/recipients-post.json +0 -22
- lib/omise-php/tests/fixtures/api.omise.co/recipients/recp_test_508a9dytz793gxv9m77-delete.json +0 -6
- lib/omise-php/tests/fixtures/api.omise.co/recipients/recp_test_508a9dytz793gxv9m77-get.json +0 -22
- lib/omise-php/tests/fixtures/api.omise.co/recipients/recp_test_508a9dytz793gxv9m77-patch.json +0 -22
- lib/omise-php/tests/fixtures/api.omise.co/transactions-get.json +0 -170
- lib/omise-php/tests/fixtures/api.omise.co/transactions/trxn_test_4zmrjhlflnz6id6q0bo-get.json +0 -8
- lib/omise-php/tests/fixtures/api.omise.co/transfers-get.json +0 -38
- lib/omise-php/tests/fixtures/api.omise.co/transfers-post.json +0 -14
- lib/omise-php/tests/fixtures/api.omise.co/transfers/trsf_test_4zmrjicrvw7j6uhv1l4-delete.json +0 -6
- lib/omise-php/tests/fixtures/api.omise.co/transfers/trsf_test_4zmrjicrvw7j6uhv1l4-get.json +0 -14
- lib/omise-php/tests/fixtures/api.omise.co/transfers/trsf_test_4zmrjicrvw7j6uhv1l4-patch.json +0 -14
- lib/omise-php/tests/fixtures/vault.omise.co/tokens-post.json +0 -25
- lib/omise-php/tests/fixtures/vault.omise.co/tokens/tokn_test_4zmrjhuk2rndz24a6x0-get.json +0 -25
- lib/omise-php/tests/omise/AccountTest.php +0 -36
- lib/omise-php/tests/omise/BalanceTest.php +0 -36
- lib/omise-php/tests/omise/CardTest.php +0 -82
- lib/omise-php/tests/omise/ChargeTest.php +0 -81
- lib/omise-php/tests/omise/CustomerTest.php +0 -78
- lib/omise-php/tests/omise/DisputeTest.php +0 -88
- lib/omise-php/tests/omise/RecipientTest.php +0 -78
- lib/omise-php/tests/omise/RefundTest.php +0 -43
- lib/omise-php/tests/omise/TestConfig.php +0 -14
- lib/omise-php/tests/omise/TokenTest.php +0 -43
- lib/omise-php/tests/omise/TransactionTest.php +0 -51
- lib/omise-php/tests/omise/TransferTest.php +0 -76
- lib/omise-php/tests/omise/exception/OmiseExceptionTest.php +0 -147
- lib/omise-php/tests/omise/res/obj/OmiseObjectTest.php +0 -134
- lib/omise-php/tests/omise/testall.sh +0 -6
- package.xml +33 -44
app/code/community/Omise/Gateway/Model/Config/Var/Cctype.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Omise_Gateway_Model_Config_Var_Cctype extends Mage_Payment_Model_Source_Cctype
|
3 |
+
{
|
4 |
+
/**
|
5 |
+
* {@inheritDoc}
|
6 |
+
*
|
7 |
+
* @see app/code/core/Mage/Payment/Model/Source/Cctype.php
|
8 |
+
*/
|
9 |
+
public function getAllowedTypes()
|
10 |
+
{
|
11 |
+
return array('VI', 'MC', 'AE', 'JCB');
|
12 |
+
}
|
13 |
+
}
|
app/code/community/Omise/Gateway/Model/Config/Var/Currency.php
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Omise_Gateway_Model_Config_Var_Currency
|
3 |
-
{
|
4 |
-
/**
|
5 |
-
* Return an array that use for 'currency' configuration
|
6 |
-
* @return array
|
7 |
-
*/
|
8 |
-
public function toOptionArray()
|
9 |
-
{
|
10 |
-
return array(
|
11 |
-
array(
|
12 |
-
'value' => 'thb',
|
13 |
-
'label' => 'THB'
|
14 |
-
)
|
15 |
-
);
|
16 |
-
}
|
17 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Omise/Gateway/Model/Omise.php
CHANGED
@@ -105,7 +105,7 @@ class Omise_Gateway_Model_Omise extends Mage_Core_Model_Abstract
|
|
105 |
public function defineUserAgent()
|
106 |
{
|
107 |
if (! defined('OMISE_USER_AGENT_SUFFIX')) {
|
108 |
-
define('OMISE_USER_AGENT_SUFFIX', 'OmiseMagento/1.
|
109 |
}
|
110 |
}
|
111 |
|
105 |
public function defineUserAgent()
|
106 |
{
|
107 |
if (! defined('OMISE_USER_AGENT_SUFFIX')) {
|
108 |
+
define('OMISE_USER_AGENT_SUFFIX', 'OmiseMagento/1.10 Magento/' . Mage::getVersion());
|
109 |
}
|
110 |
}
|
111 |
|
app/code/community/Omise/Gateway/etc/config.xml
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
-->
|
15 |
<modules>
|
16 |
<Omise_Gateway>
|
17 |
-
<version>1.
|
18 |
</Omise_Gateway>
|
19 |
</modules>
|
20 |
|
14 |
-->
|
15 |
<modules>
|
16 |
<Omise_Gateway>
|
17 |
+
<version>1.10.0</version>
|
18 |
</Omise_Gateway>
|
19 |
</modules>
|
20 |
|
app/code/community/Omise/Gateway/etc/system.xml
CHANGED
@@ -68,6 +68,17 @@
|
|
68 |
<show_in_website>1</show_in_website>
|
69 |
<show_in_store>0</show_in_store>
|
70 |
</order_status>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
</fields>
|
72 |
</omise_gateway>
|
73 |
|
68 |
<show_in_website>1</show_in_website>
|
69 |
<show_in_store>0</show_in_store>
|
70 |
</order_status>
|
71 |
+
|
72 |
+
<cctypes translate="label">
|
73 |
+
<label>Card type support</label>
|
74 |
+
<comment><![CDATA[This only controls the credit card type option on the checkout page. It is not related to card processing on Omise payment gateway.<br/><br/>Feel free to contact us at support@omise.co if you cannot process a payment with those card types.]]></comment>
|
75 |
+
<frontend_type>multiselect</frontend_type>
|
76 |
+
<source_model>omise_gateway/config_var_cctype</source_model>
|
77 |
+
<sort_order>6</sort_order>
|
78 |
+
<show_in_default>1</show_in_default>
|
79 |
+
<show_in_website>1</show_in_website>
|
80 |
+
<show_in_store>0</show_in_store>
|
81 |
+
</cctypes>
|
82 |
</fields>
|
83 |
</omise_gateway>
|
84 |
|
lib/omise-php/.gitignore
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
vendor/
|
2 |
-
composer.lock
|
3 |
-
composer.phar
|
|
|
|
|
|
lib/omise-php/circle.yml
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
machine:
|
2 |
-
timezone:
|
3 |
-
Asia/Bangkok
|
4 |
-
php:
|
5 |
-
version: 5.3.20
|
6 |
-
|
7 |
-
test:
|
8 |
-
override:
|
9 |
-
- php ./vendor/bin/phpunit tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/composer.json
DELETED
@@ -1,23 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"name": "omise/omise-php",
|
3 |
-
"description": "Omise API PHP Lib",
|
4 |
-
"keywords": ["payment", "omise", "creditcard"],
|
5 |
-
"type": "library",
|
6 |
-
"license": "MIT",
|
7 |
-
"homepage": "https://github.com/omise/omise-php.git",
|
8 |
-
"authors": [
|
9 |
-
{
|
10 |
-
"name": "omise",
|
11 |
-
"email": "apps@omise.co"
|
12 |
-
}
|
13 |
-
],
|
14 |
-
"require": {
|
15 |
-
"php": ">=5.3.2"
|
16 |
-
},
|
17 |
-
"require-dev": {
|
18 |
-
"phpunit/phpunit": "4.4.*"
|
19 |
-
},
|
20 |
-
"autoload": {
|
21 |
-
"classmap": ["lib/omise/"]
|
22 |
-
}
|
23 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/phpunit.xml
DELETED
@@ -1,24 +0,0 @@
|
|
1 |
-
<phpunit
|
2 |
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
3 |
-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.5/phpunit.xsd"
|
4 |
-
backupGlobals="true"
|
5 |
-
backupStaticAttributes="false"
|
6 |
-
cacheTokens="false"
|
7 |
-
colors="false"
|
8 |
-
convertErrorsToExceptions="true"
|
9 |
-
convertNoticesToExceptions="true"
|
10 |
-
convertWarningsToExceptions="true"
|
11 |
-
forceCoversAnnotation="false"
|
12 |
-
mapTestClassNameToCoveredClassName="false"
|
13 |
-
printerClass="PHPUnit_TextUI_ResultPrinter"
|
14 |
-
processIsolation="false"
|
15 |
-
stopOnError="false"
|
16 |
-
stopOnFailure="false"
|
17 |
-
stopOnIncomplete="false"
|
18 |
-
stopOnSkipped="false"
|
19 |
-
testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
|
20 |
-
timeoutForSmallTests="1"
|
21 |
-
timeoutForMediumTests="10"
|
22 |
-
timeoutForLargeTests="60"
|
23 |
-
verbose="false">
|
24 |
-
</phpunit>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/account-get.json
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "account",
|
3 |
-
"id": "acct_4yyvy93tmab34q2ywlo",
|
4 |
-
"email": "iam.nuttanon@gmail.com",
|
5 |
-
"created": "2015-02-06T09:45:48Z"
|
6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/balance-get.json
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "balance",
|
3 |
-
"livemode": false,
|
4 |
-
"available": 5646205,
|
5 |
-
"total": 5646205,
|
6 |
-
"currency": "thb"
|
7 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/charges-get.json
DELETED
@@ -1,1161 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "list",
|
3 |
-
"from": "1970-01-01T00:00:00+00:00",
|
4 |
-
"to": "2015-04-08T10:53:28+00:00",
|
5 |
-
"offset": 0,
|
6 |
-
"limit": 20,
|
7 |
-
"total": 67,
|
8 |
-
"data": [
|
9 |
-
{
|
10 |
-
"object": "charge",
|
11 |
-
"id": "chrg_test_4zkam2l6yj5sry58exn",
|
12 |
-
"livemode": false,
|
13 |
-
"location": "/charges/chrg_test_4zkam2l6yj5sry58exn",
|
14 |
-
"amount": 99,
|
15 |
-
"currency": "thb",
|
16 |
-
"description": "Charge for order 3947",
|
17 |
-
"capture": true,
|
18 |
-
"authorized": true,
|
19 |
-
"captured": true,
|
20 |
-
"transaction": "trxn_test_4zkam2llotki51i8wey",
|
21 |
-
"refunded": 0,
|
22 |
-
"refunds": {
|
23 |
-
"object": "list",
|
24 |
-
"from": "1970-01-01T00:00:00+00:00",
|
25 |
-
"to": "2015-04-08T10:53:28+00:00",
|
26 |
-
"offset": 0,
|
27 |
-
"limit": 20,
|
28 |
-
"total": 0,
|
29 |
-
"data": [
|
30 |
-
|
31 |
-
],
|
32 |
-
"location": "/charges/chrg_test_4zkam2l6yj5sry58exn/refunds"
|
33 |
-
},
|
34 |
-
"failure_code": null,
|
35 |
-
"failure_message": null,
|
36 |
-
"card": {
|
37 |
-
"object": "card",
|
38 |
-
"id": "card_test_4zkam2giccpn93f9ggo",
|
39 |
-
"livemode": false,
|
40 |
-
"country": "us",
|
41 |
-
"city": "Bangkok",
|
42 |
-
"postal_code": "10320",
|
43 |
-
"financing": "",
|
44 |
-
"last_digits": "4242",
|
45 |
-
"brand": "Visa",
|
46 |
-
"expiration_month": 2,
|
47 |
-
"expiration_year": 2017,
|
48 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
49 |
-
"name": "JOHN DOE",
|
50 |
-
"security_code_check": true,
|
51 |
-
"created": "2015-04-02T03:19:13Z"
|
52 |
-
},
|
53 |
-
"customer": null,
|
54 |
-
"ip": null,
|
55 |
-
"dispute": null,
|
56 |
-
"created": "2015-04-02T03:19:13Z"
|
57 |
-
},
|
58 |
-
{
|
59 |
-
"object": "charge",
|
60 |
-
"id": "chrg_test_4zkos0vdtv58o6ompc1",
|
61 |
-
"livemode": false,
|
62 |
-
"location": "/charges/chrg_test_4zkos0vdtv58o6ompc1",
|
63 |
-
"amount": 100000,
|
64 |
-
"currency": "thb",
|
65 |
-
"description": "Another description",
|
66 |
-
"capture": false,
|
67 |
-
"authorized": true,
|
68 |
-
"captured": true,
|
69 |
-
"transaction": "trxn_test_4zkos1i79n10v3cnjsf",
|
70 |
-
"refunded": 0,
|
71 |
-
"refunds": {
|
72 |
-
"object": "list",
|
73 |
-
"from": "1970-01-01T00:00:00+00:00",
|
74 |
-
"to": "2015-04-08T10:53:28+00:00",
|
75 |
-
"offset": 0,
|
76 |
-
"limit": 20,
|
77 |
-
"total": 0,
|
78 |
-
"data": [
|
79 |
-
|
80 |
-
],
|
81 |
-
"location": "/charges/chrg_test_4zkos0vdtv58o6ompc1/refunds"
|
82 |
-
},
|
83 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
84 |
-
"reference": "paym_test_4zkos0vg0upc1ei3b88",
|
85 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zkos0vg0upc1ei3b88/authorize",
|
86 |
-
"failure_code": null,
|
87 |
-
"failure_message": null,
|
88 |
-
"card": {
|
89 |
-
"object": "card",
|
90 |
-
"id": "card_test_4zkos0sdq3wa91uqokf",
|
91 |
-
"livemode": false,
|
92 |
-
"country": "us",
|
93 |
-
"city": "Bangkok",
|
94 |
-
"postal_code": "10320",
|
95 |
-
"financing": "",
|
96 |
-
"last_digits": "4242",
|
97 |
-
"brand": "Visa",
|
98 |
-
"expiration_month": 10,
|
99 |
-
"expiration_year": 2018,
|
100 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
101 |
-
"name": "Somchai Prasert",
|
102 |
-
"security_code_check": true,
|
103 |
-
"created": "2015-04-03T03:27:52Z"
|
104 |
-
},
|
105 |
-
"customer": null,
|
106 |
-
"ip": "127.0.0.1",
|
107 |
-
"dispute": null,
|
108 |
-
"created": "2015-04-03T03:27:53Z"
|
109 |
-
},
|
110 |
-
{
|
111 |
-
"object": "charge",
|
112 |
-
"id": "chrg_test_4zkos145pr97qt0khw8",
|
113 |
-
"livemode": false,
|
114 |
-
"location": "/charges/chrg_test_4zkos145pr97qt0khw8",
|
115 |
-
"amount": 100000,
|
116 |
-
"currency": "thb",
|
117 |
-
"description": "Order-384",
|
118 |
-
"capture": true,
|
119 |
-
"authorized": true,
|
120 |
-
"captured": true,
|
121 |
-
"transaction": "trxn_test_4zkos14w9bpdrcv9kbf",
|
122 |
-
"refunded": 0,
|
123 |
-
"refunds": {
|
124 |
-
"object": "list",
|
125 |
-
"from": "1970-01-01T00:00:00+00:00",
|
126 |
-
"to": "2015-04-08T10:53:28+00:00",
|
127 |
-
"offset": 0,
|
128 |
-
"limit": 20,
|
129 |
-
"total": 0,
|
130 |
-
"data": [
|
131 |
-
|
132 |
-
],
|
133 |
-
"location": "/charges/chrg_test_4zkos145pr97qt0khw8/refunds"
|
134 |
-
},
|
135 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
136 |
-
"reference": "paym_test_4zkos14dct2lr76202q",
|
137 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zkos14dct2lr76202q/authorize",
|
138 |
-
"failure_code": null,
|
139 |
-
"failure_message": null,
|
140 |
-
"card": {
|
141 |
-
"object": "card",
|
142 |
-
"id": "card_test_4zkos11cptt56so9uro",
|
143 |
-
"livemode": false,
|
144 |
-
"country": "us",
|
145 |
-
"city": "Bangkok",
|
146 |
-
"postal_code": "10320",
|
147 |
-
"financing": "",
|
148 |
-
"last_digits": "4242",
|
149 |
-
"brand": "Visa",
|
150 |
-
"expiration_month": 10,
|
151 |
-
"expiration_year": 2018,
|
152 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
153 |
-
"name": "Somchai Prasert",
|
154 |
-
"security_code_check": true,
|
155 |
-
"created": "2015-04-03T03:27:53Z"
|
156 |
-
},
|
157 |
-
"customer": null,
|
158 |
-
"ip": "127.0.0.1",
|
159 |
-
"dispute": null,
|
160 |
-
"created": "2015-04-03T03:27:54Z"
|
161 |
-
},
|
162 |
-
{
|
163 |
-
"object": "charge",
|
164 |
-
"id": "chrg_test_4zkos2fm2t4humybpta",
|
165 |
-
"livemode": false,
|
166 |
-
"location": "/charges/chrg_test_4zkos2fm2t4humybpta",
|
167 |
-
"amount": 100000,
|
168 |
-
"currency": "thb",
|
169 |
-
"description": "Order-384",
|
170 |
-
"capture": true,
|
171 |
-
"authorized": true,
|
172 |
-
"captured": true,
|
173 |
-
"transaction": "trxn_test_4zkos2g8s4zjo0d4ijd",
|
174 |
-
"refunded": 20000,
|
175 |
-
"refunds": {
|
176 |
-
"object": "list",
|
177 |
-
"from": "1970-01-01T00:00:00+00:00",
|
178 |
-
"to": "2015-04-08T10:53:28+00:00",
|
179 |
-
"offset": 0,
|
180 |
-
"limit": 20,
|
181 |
-
"total": 2,
|
182 |
-
"data": [
|
183 |
-
{
|
184 |
-
"object": "refund",
|
185 |
-
"id": "rfnd_test_4zkos318tludqrv8ofb",
|
186 |
-
"location": "/charges/chrg_test_4zkos2fm2t4humybpta/refunds/rfnd_test_4zkos318tludqrv8ofb",
|
187 |
-
"amount": 10000,
|
188 |
-
"currency": "thb",
|
189 |
-
"charge": "chrg_test_4zkos2fm2t4humybpta",
|
190 |
-
"transaction": "trxn_test_4zkos31e9cfb0o8any6",
|
191 |
-
"created": "2015-04-03T03:28:03Z"
|
192 |
-
},
|
193 |
-
{
|
194 |
-
"object": "refund",
|
195 |
-
"id": "rfnd_test_4zkos2t3mui0agxabdg",
|
196 |
-
"location": "/charges/chrg_test_4zkos2fm2t4humybpta/refunds/rfnd_test_4zkos2t3mui0agxabdg",
|
197 |
-
"amount": 10000,
|
198 |
-
"currency": "thb",
|
199 |
-
"charge": "chrg_test_4zkos2fm2t4humybpta",
|
200 |
-
"transaction": "trxn_test_4zkos2t8c1wwim7x52t",
|
201 |
-
"created": "2015-04-03T03:28:02Z"
|
202 |
-
}
|
203 |
-
],
|
204 |
-
"location": "/charges/chrg_test_4zkos2fm2t4humybpta/refunds"
|
205 |
-
},
|
206 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
207 |
-
"reference": "paym_test_4zkos2fplzzhn66pj3s",
|
208 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zkos2fplzzhn66pj3s/authorize",
|
209 |
-
"failure_code": null,
|
210 |
-
"failure_message": null,
|
211 |
-
"card": {
|
212 |
-
"object": "card",
|
213 |
-
"id": "card_test_4zkos2c9xbna0rj7jxm",
|
214 |
-
"livemode": false,
|
215 |
-
"country": "us",
|
216 |
-
"city": "Bangkok",
|
217 |
-
"postal_code": "10320",
|
218 |
-
"financing": "",
|
219 |
-
"last_digits": "4242",
|
220 |
-
"brand": "Visa",
|
221 |
-
"expiration_month": 10,
|
222 |
-
"expiration_year": 2018,
|
223 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
224 |
-
"name": "Somchai Prasert",
|
225 |
-
"security_code_check": true,
|
226 |
-
"created": "2015-04-03T03:27:59Z"
|
227 |
-
},
|
228 |
-
"customer": null,
|
229 |
-
"ip": "127.0.0.1",
|
230 |
-
"dispute": null,
|
231 |
-
"created": "2015-04-03T03:28:00Z"
|
232 |
-
},
|
233 |
-
{
|
234 |
-
"object": "charge",
|
235 |
-
"id": "chrg_test_4zkoszeu9mxmamcmozg",
|
236 |
-
"livemode": false,
|
237 |
-
"location": "/charges/chrg_test_4zkoszeu9mxmamcmozg",
|
238 |
-
"amount": 100000,
|
239 |
-
"currency": "thb",
|
240 |
-
"description": "Another description",
|
241 |
-
"capture": false,
|
242 |
-
"authorized": true,
|
243 |
-
"captured": true,
|
244 |
-
"transaction": "trxn_test_4zkot01ywqtrghdikh0",
|
245 |
-
"refunded": 0,
|
246 |
-
"refunds": {
|
247 |
-
"object": "list",
|
248 |
-
"from": "1970-01-01T00:00:00+00:00",
|
249 |
-
"to": "2015-04-08T10:53:28+00:00",
|
250 |
-
"offset": 0,
|
251 |
-
"limit": 20,
|
252 |
-
"total": 0,
|
253 |
-
"data": [
|
254 |
-
|
255 |
-
],
|
256 |
-
"location": "/charges/chrg_test_4zkoszeu9mxmamcmozg/refunds"
|
257 |
-
},
|
258 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
259 |
-
"reference": "paym_test_4zkoszew4rnfcfttcu7",
|
260 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zkoszew4rnfcfttcu7/authorize",
|
261 |
-
"failure_code": null,
|
262 |
-
"failure_message": null,
|
263 |
-
"card": {
|
264 |
-
"object": "card",
|
265 |
-
"id": "card_test_4zkoszc5dp61wa9ycl8",
|
266 |
-
"livemode": false,
|
267 |
-
"country": "us",
|
268 |
-
"city": "Bangkok",
|
269 |
-
"postal_code": "10320",
|
270 |
-
"financing": "",
|
271 |
-
"last_digits": "4242",
|
272 |
-
"brand": "Visa",
|
273 |
-
"expiration_month": 10,
|
274 |
-
"expiration_year": 2018,
|
275 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
276 |
-
"name": "Somchai Prasert",
|
277 |
-
"security_code_check": true,
|
278 |
-
"created": "2015-04-03T03:30:36Z"
|
279 |
-
},
|
280 |
-
"customer": null,
|
281 |
-
"ip": "127.0.0.1",
|
282 |
-
"dispute": null,
|
283 |
-
"created": "2015-04-03T03:30:36Z"
|
284 |
-
},
|
285 |
-
{
|
286 |
-
"object": "charge",
|
287 |
-
"id": "chrg_test_4zkoszo501pkx0eiwva",
|
288 |
-
"livemode": false,
|
289 |
-
"location": "/charges/chrg_test_4zkoszo501pkx0eiwva",
|
290 |
-
"amount": 100000,
|
291 |
-
"currency": "thb",
|
292 |
-
"description": "Order-384",
|
293 |
-
"capture": true,
|
294 |
-
"authorized": true,
|
295 |
-
"captured": true,
|
296 |
-
"transaction": "trxn_test_4zkoszoohbu5zt7ki8o",
|
297 |
-
"refunded": 0,
|
298 |
-
"refunds": {
|
299 |
-
"object": "list",
|
300 |
-
"from": "1970-01-01T00:00:00+00:00",
|
301 |
-
"to": "2015-04-08T10:53:28+00:00",
|
302 |
-
"offset": 0,
|
303 |
-
"limit": 20,
|
304 |
-
"total": 0,
|
305 |
-
"data": [
|
306 |
-
|
307 |
-
],
|
308 |
-
"location": "/charges/chrg_test_4zkoszo501pkx0eiwva/refunds"
|
309 |
-
},
|
310 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
311 |
-
"reference": "paym_test_4zkoszo7hja2ejc2te9",
|
312 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zkoszo7hja2ejc2te9/authorize",
|
313 |
-
"failure_code": null,
|
314 |
-
"failure_message": null,
|
315 |
-
"card": {
|
316 |
-
"object": "card",
|
317 |
-
"id": "card_test_4zkoszlg54kibjaegco",
|
318 |
-
"livemode": false,
|
319 |
-
"country": "us",
|
320 |
-
"city": "Bangkok",
|
321 |
-
"postal_code": "10320",
|
322 |
-
"financing": "",
|
323 |
-
"last_digits": "4242",
|
324 |
-
"brand": "Visa",
|
325 |
-
"expiration_month": 10,
|
326 |
-
"expiration_year": 2018,
|
327 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
328 |
-
"name": "Somchai Prasert",
|
329 |
-
"security_code_check": true,
|
330 |
-
"created": "2015-04-03T03:30:37Z"
|
331 |
-
},
|
332 |
-
"customer": null,
|
333 |
-
"ip": "127.0.0.1",
|
334 |
-
"dispute": null,
|
335 |
-
"created": "2015-04-03T03:30:37Z"
|
336 |
-
},
|
337 |
-
{
|
338 |
-
"object": "charge",
|
339 |
-
"id": "chrg_test_4zkot0za5enyxjafrtk",
|
340 |
-
"livemode": false,
|
341 |
-
"location": "/charges/chrg_test_4zkot0za5enyxjafrtk",
|
342 |
-
"amount": 100000,
|
343 |
-
"currency": "thb",
|
344 |
-
"description": "Order-384",
|
345 |
-
"capture": true,
|
346 |
-
"authorized": true,
|
347 |
-
"captured": true,
|
348 |
-
"transaction": "trxn_test_4zkot0zoocruvgplg7u",
|
349 |
-
"refunded": 20000,
|
350 |
-
"refunds": {
|
351 |
-
"object": "list",
|
352 |
-
"from": "1970-01-01T00:00:00+00:00",
|
353 |
-
"to": "2015-04-08T10:53:28+00:00",
|
354 |
-
"offset": 0,
|
355 |
-
"limit": 20,
|
356 |
-
"total": 2,
|
357 |
-
"data": [
|
358 |
-
{
|
359 |
-
"object": "refund",
|
360 |
-
"id": "rfnd_test_4zkot1l36ibh463h6cr",
|
361 |
-
"location": "/charges/chrg_test_4zkot0za5enyxjafrtk/refunds/rfnd_test_4zkot1l36ibh463h6cr",
|
362 |
-
"amount": 10000,
|
363 |
-
"currency": "thb",
|
364 |
-
"charge": "chrg_test_4zkot0za5enyxjafrtk",
|
365 |
-
"transaction": "trxn_test_4zkot1l70pdlql44zsj",
|
366 |
-
"created": "2015-04-03T03:30:46Z"
|
367 |
-
},
|
368 |
-
{
|
369 |
-
"object": "refund",
|
370 |
-
"id": "rfnd_test_4zkot1crha4tp1pmow3",
|
371 |
-
"location": "/charges/chrg_test_4zkot0za5enyxjafrtk/refunds/rfnd_test_4zkot1crha4tp1pmow3",
|
372 |
-
"amount": 10000,
|
373 |
-
"currency": "thb",
|
374 |
-
"charge": "chrg_test_4zkot0za5enyxjafrtk",
|
375 |
-
"transaction": "trxn_test_4zkot1cwob313khurex",
|
376 |
-
"created": "2015-04-03T03:30:45Z"
|
377 |
-
}
|
378 |
-
],
|
379 |
-
"location": "/charges/chrg_test_4zkot0za5enyxjafrtk/refunds"
|
380 |
-
},
|
381 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
382 |
-
"reference": "paym_test_4zkot0zc2nigx51rjpc",
|
383 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zkot0zc2nigx51rjpc/authorize",
|
384 |
-
"failure_code": null,
|
385 |
-
"failure_message": null,
|
386 |
-
"card": {
|
387 |
-
"object": "card",
|
388 |
-
"id": "card_test_4zkot0wlr6dqmg4kicj",
|
389 |
-
"livemode": false,
|
390 |
-
"country": "us",
|
391 |
-
"city": "Bangkok",
|
392 |
-
"postal_code": "10320",
|
393 |
-
"financing": "",
|
394 |
-
"last_digits": "4242",
|
395 |
-
"brand": "Visa",
|
396 |
-
"expiration_month": 10,
|
397 |
-
"expiration_year": 2018,
|
398 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
399 |
-
"name": "Somchai Prasert",
|
400 |
-
"security_code_check": true,
|
401 |
-
"created": "2015-04-03T03:30:43Z"
|
402 |
-
},
|
403 |
-
"customer": null,
|
404 |
-
"ip": "127.0.0.1",
|
405 |
-
"dispute": null,
|
406 |
-
"created": "2015-04-03T03:30:43Z"
|
407 |
-
},
|
408 |
-
{
|
409 |
-
"object": "charge",
|
410 |
-
"id": "chrg_test_4zkoxc5me8fw7ezp1ej",
|
411 |
-
"livemode": false,
|
412 |
-
"location": "/charges/chrg_test_4zkoxc5me8fw7ezp1ej",
|
413 |
-
"amount": 100000,
|
414 |
-
"currency": "thb",
|
415 |
-
"description": "Another description",
|
416 |
-
"capture": false,
|
417 |
-
"authorized": true,
|
418 |
-
"captured": true,
|
419 |
-
"transaction": "trxn_test_4zkoxcuikir89jgyg59",
|
420 |
-
"refunded": 0,
|
421 |
-
"refunds": {
|
422 |
-
"object": "list",
|
423 |
-
"from": "1970-01-01T00:00:00+00:00",
|
424 |
-
"to": "2015-04-08T10:53:28+00:00",
|
425 |
-
"offset": 0,
|
426 |
-
"limit": 20,
|
427 |
-
"total": 0,
|
428 |
-
"data": [
|
429 |
-
|
430 |
-
],
|
431 |
-
"location": "/charges/chrg_test_4zkoxc5me8fw7ezp1ej/refunds"
|
432 |
-
},
|
433 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
434 |
-
"reference": "paym_test_4zkoxc5qtmvyit57efe",
|
435 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zkoxc5qtmvyit57efe/authorize",
|
436 |
-
"failure_code": null,
|
437 |
-
"failure_message": null,
|
438 |
-
"card": {
|
439 |
-
"object": "card",
|
440 |
-
"id": "card_test_4zkoxc2o8hizvbkm960",
|
441 |
-
"livemode": false,
|
442 |
-
"country": "us",
|
443 |
-
"city": "Bangkok",
|
444 |
-
"postal_code": "10320",
|
445 |
-
"financing": "",
|
446 |
-
"last_digits": "4242",
|
447 |
-
"brand": "Visa",
|
448 |
-
"expiration_month": 10,
|
449 |
-
"expiration_year": 2018,
|
450 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
451 |
-
"name": "Somchai Prasert",
|
452 |
-
"security_code_check": true,
|
453 |
-
"created": "2015-04-03T03:42:58Z"
|
454 |
-
},
|
455 |
-
"customer": null,
|
456 |
-
"ip": "127.0.0.1",
|
457 |
-
"dispute": null,
|
458 |
-
"created": "2015-04-03T03:42:58Z"
|
459 |
-
},
|
460 |
-
{
|
461 |
-
"object": "charge",
|
462 |
-
"id": "chrg_test_4zkoxcgdg53tyxxek32",
|
463 |
-
"livemode": false,
|
464 |
-
"location": "/charges/chrg_test_4zkoxcgdg53tyxxek32",
|
465 |
-
"amount": 100000,
|
466 |
-
"currency": "thb",
|
467 |
-
"description": "Order-384",
|
468 |
-
"capture": true,
|
469 |
-
"authorized": true,
|
470 |
-
"captured": true,
|
471 |
-
"transaction": "trxn_test_4zkoxcgxq6fcdu6wyie",
|
472 |
-
"refunded": 0,
|
473 |
-
"refunds": {
|
474 |
-
"object": "list",
|
475 |
-
"from": "1970-01-01T00:00:00+00:00",
|
476 |
-
"to": "2015-04-08T10:53:28+00:00",
|
477 |
-
"offset": 0,
|
478 |
-
"limit": 20,
|
479 |
-
"total": 0,
|
480 |
-
"data": [
|
481 |
-
|
482 |
-
],
|
483 |
-
"location": "/charges/chrg_test_4zkoxcgdg53tyxxek32/refunds"
|
484 |
-
},
|
485 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
486 |
-
"reference": "paym_test_4zkoxcggg74jpb2ofd3",
|
487 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zkoxcggg74jpb2ofd3/authorize",
|
488 |
-
"failure_code": null,
|
489 |
-
"failure_message": null,
|
490 |
-
"card": {
|
491 |
-
"object": "card",
|
492 |
-
"id": "card_test_4zkoxcd42k93x9qrxcw",
|
493 |
-
"livemode": false,
|
494 |
-
"country": "us",
|
495 |
-
"city": "Bangkok",
|
496 |
-
"postal_code": "10320",
|
497 |
-
"financing": "",
|
498 |
-
"last_digits": "4242",
|
499 |
-
"brand": "Visa",
|
500 |
-
"expiration_month": 10,
|
501 |
-
"expiration_year": 2018,
|
502 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
503 |
-
"name": "Somchai Prasert",
|
504 |
-
"security_code_check": true,
|
505 |
-
"created": "2015-04-03T03:42:59Z"
|
506 |
-
},
|
507 |
-
"customer": null,
|
508 |
-
"ip": "127.0.0.1",
|
509 |
-
"dispute": null,
|
510 |
-
"created": "2015-04-03T03:43:00Z"
|
511 |
-
},
|
512 |
-
{
|
513 |
-
"object": "charge",
|
514 |
-
"id": "chrg_test_4zkoxdtjdu02xnjui2g",
|
515 |
-
"livemode": false,
|
516 |
-
"location": "/charges/chrg_test_4zkoxdtjdu02xnjui2g",
|
517 |
-
"amount": 100000,
|
518 |
-
"currency": "thb",
|
519 |
-
"description": "Order-384",
|
520 |
-
"capture": true,
|
521 |
-
"authorized": true,
|
522 |
-
"captured": true,
|
523 |
-
"transaction": "trxn_test_4zkoxdu46ivfuwff42c",
|
524 |
-
"refunded": 20000,
|
525 |
-
"refunds": {
|
526 |
-
"object": "list",
|
527 |
-
"from": "1970-01-01T00:00:00+00:00",
|
528 |
-
"to": "2015-04-08T10:53:28+00:00",
|
529 |
-
"offset": 0,
|
530 |
-
"limit": 20,
|
531 |
-
"total": 2,
|
532 |
-
"data": [
|
533 |
-
{
|
534 |
-
"object": "refund",
|
535 |
-
"id": "rfnd_test_4zkoxefvvjyp75pk7ni",
|
536 |
-
"location": "/charges/chrg_test_4zkoxdtjdu02xnjui2g/refunds/rfnd_test_4zkoxefvvjyp75pk7ni",
|
537 |
-
"amount": 10000,
|
538 |
-
"currency": "thb",
|
539 |
-
"charge": "chrg_test_4zkoxdtjdu02xnjui2g",
|
540 |
-
"transaction": "trxn_test_4zkoxeg1cbvflzfybng",
|
541 |
-
"created": "2015-04-03T03:43:09Z"
|
542 |
-
},
|
543 |
-
{
|
544 |
-
"object": "refund",
|
545 |
-
"id": "rfnd_test_4zkoxe7oapibwotcn3a",
|
546 |
-
"location": "/charges/chrg_test_4zkoxdtjdu02xnjui2g/refunds/rfnd_test_4zkoxe7oapibwotcn3a",
|
547 |
-
"amount": 10000,
|
548 |
-
"currency": "thb",
|
549 |
-
"charge": "chrg_test_4zkoxdtjdu02xnjui2g",
|
550 |
-
"transaction": "trxn_test_4zkoxe7v37bq2dsu7gb",
|
551 |
-
"created": "2015-04-03T03:43:08Z"
|
552 |
-
}
|
553 |
-
],
|
554 |
-
"location": "/charges/chrg_test_4zkoxdtjdu02xnjui2g/refunds"
|
555 |
-
},
|
556 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
557 |
-
"reference": "paym_test_4zkoxdtmei3gh29v7fh",
|
558 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zkoxdtmei3gh29v7fh/authorize",
|
559 |
-
"failure_code": null,
|
560 |
-
"failure_message": null,
|
561 |
-
"card": {
|
562 |
-
"object": "card",
|
563 |
-
"id": "card_test_4zkoxdqn52ya3zlpibc",
|
564 |
-
"livemode": false,
|
565 |
-
"country": "us",
|
566 |
-
"city": "Bangkok",
|
567 |
-
"postal_code": "10320",
|
568 |
-
"financing": "",
|
569 |
-
"last_digits": "4242",
|
570 |
-
"brand": "Visa",
|
571 |
-
"expiration_month": 10,
|
572 |
-
"expiration_year": 2018,
|
573 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
574 |
-
"name": "Somchai Prasert",
|
575 |
-
"security_code_check": true,
|
576 |
-
"created": "2015-04-03T03:43:06Z"
|
577 |
-
},
|
578 |
-
"customer": null,
|
579 |
-
"ip": "127.0.0.1",
|
580 |
-
"dispute": null,
|
581 |
-
"created": "2015-04-03T03:43:06Z"
|
582 |
-
},
|
583 |
-
{
|
584 |
-
"object": "charge",
|
585 |
-
"id": "chrg_test_4zkr8jwxmhxhtfi7f2k",
|
586 |
-
"livemode": false,
|
587 |
-
"location": "/charges/chrg_test_4zkr8jwxmhxhtfi7f2k",
|
588 |
-
"amount": 100000,
|
589 |
-
"currency": "thb",
|
590 |
-
"description": "Another description",
|
591 |
-
"capture": false,
|
592 |
-
"authorized": true,
|
593 |
-
"captured": true,
|
594 |
-
"transaction": "trxn_test_4zkr8kpvxxlb2ophb3l",
|
595 |
-
"refunded": 0,
|
596 |
-
"refunds": {
|
597 |
-
"object": "list",
|
598 |
-
"from": "1970-01-01T00:00:00+00:00",
|
599 |
-
"to": "2015-04-08T10:53:28+00:00",
|
600 |
-
"offset": 0,
|
601 |
-
"limit": 20,
|
602 |
-
"total": 0,
|
603 |
-
"data": [
|
604 |
-
|
605 |
-
],
|
606 |
-
"location": "/charges/chrg_test_4zkr8jwxmhxhtfi7f2k/refunds"
|
607 |
-
},
|
608 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
609 |
-
"reference": "paym_test_4zkr8jx0mj8z0wqqlq7",
|
610 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zkr8jx0mj8z0wqqlq7/authorize",
|
611 |
-
"failure_code": null,
|
612 |
-
"failure_message": null,
|
613 |
-
"card": {
|
614 |
-
"object": "card",
|
615 |
-
"id": "card_test_4zkr8jtnbbmqtgiio37",
|
616 |
-
"livemode": false,
|
617 |
-
"country": "us",
|
618 |
-
"city": "Bangkok",
|
619 |
-
"postal_code": "10320",
|
620 |
-
"financing": "",
|
621 |
-
"last_digits": "4242",
|
622 |
-
"brand": "Visa",
|
623 |
-
"expiration_month": 10,
|
624 |
-
"expiration_year": 2018,
|
625 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
626 |
-
"name": "Somchai Prasert",
|
627 |
-
"security_code_check": true,
|
628 |
-
"created": "2015-04-03T07:39:21Z"
|
629 |
-
},
|
630 |
-
"customer": null,
|
631 |
-
"ip": "127.0.0.1",
|
632 |
-
"dispute": null,
|
633 |
-
"created": "2015-04-03T07:39:22Z"
|
634 |
-
},
|
635 |
-
{
|
636 |
-
"object": "charge",
|
637 |
-
"id": "chrg_test_4zkr8k97ordcoy0z2l3",
|
638 |
-
"livemode": false,
|
639 |
-
"location": "/charges/chrg_test_4zkr8k97ordcoy0z2l3",
|
640 |
-
"amount": 100000,
|
641 |
-
"currency": "thb",
|
642 |
-
"description": "Order-384",
|
643 |
-
"capture": true,
|
644 |
-
"authorized": true,
|
645 |
-
"captured": true,
|
646 |
-
"transaction": "trxn_test_4zkr8k9s5w9u58pjjn4",
|
647 |
-
"refunded": 0,
|
648 |
-
"refunds": {
|
649 |
-
"object": "list",
|
650 |
-
"from": "1970-01-01T00:00:00+00:00",
|
651 |
-
"to": "2015-04-08T10:53:28+00:00",
|
652 |
-
"offset": 0,
|
653 |
-
"limit": 20,
|
654 |
-
"total": 0,
|
655 |
-
"data": [
|
656 |
-
|
657 |
-
],
|
658 |
-
"location": "/charges/chrg_test_4zkr8k97ordcoy0z2l3/refunds"
|
659 |
-
},
|
660 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
661 |
-
"reference": "paym_test_4zkr8k9ay9ce9vmq0ze",
|
662 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zkr8k9ay9ce9vmq0ze/authorize",
|
663 |
-
"failure_code": null,
|
664 |
-
"failure_message": null,
|
665 |
-
"card": {
|
666 |
-
"object": "card",
|
667 |
-
"id": "card_test_4zkr8k5ku3gvwjk4wac",
|
668 |
-
"livemode": false,
|
669 |
-
"country": "us",
|
670 |
-
"city": "Bangkok",
|
671 |
-
"postal_code": "10320",
|
672 |
-
"financing": "",
|
673 |
-
"last_digits": "4242",
|
674 |
-
"brand": "Visa",
|
675 |
-
"expiration_month": 10,
|
676 |
-
"expiration_year": 2018,
|
677 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
678 |
-
"name": "Somchai Prasert",
|
679 |
-
"security_code_check": true,
|
680 |
-
"created": "2015-04-03T07:39:23Z"
|
681 |
-
},
|
682 |
-
"customer": null,
|
683 |
-
"ip": "127.0.0.1",
|
684 |
-
"dispute": null,
|
685 |
-
"created": "2015-04-03T07:39:23Z"
|
686 |
-
},
|
687 |
-
{
|
688 |
-
"object": "charge",
|
689 |
-
"id": "chrg_test_4zkr8lumcjspbbhd3td",
|
690 |
-
"livemode": false,
|
691 |
-
"location": "/charges/chrg_test_4zkr8lumcjspbbhd3td",
|
692 |
-
"amount": 100000,
|
693 |
-
"currency": "thb",
|
694 |
-
"description": "Order-384",
|
695 |
-
"capture": true,
|
696 |
-
"authorized": true,
|
697 |
-
"captured": true,
|
698 |
-
"transaction": "trxn_test_4zkr8lv0amws88h5dl9",
|
699 |
-
"refunded": 20000,
|
700 |
-
"refunds": {
|
701 |
-
"object": "list",
|
702 |
-
"from": "1970-01-01T00:00:00+00:00",
|
703 |
-
"to": "2015-04-08T10:53:28+00:00",
|
704 |
-
"offset": 0,
|
705 |
-
"limit": 20,
|
706 |
-
"total": 2,
|
707 |
-
"data": [
|
708 |
-
{
|
709 |
-
"object": "refund",
|
710 |
-
"id": "rfnd_test_4zkr8mnnz6m0lpe986i",
|
711 |
-
"location": "/charges/chrg_test_4zkr8lumcjspbbhd3td/refunds/rfnd_test_4zkr8mnnz6m0lpe986i",
|
712 |
-
"amount": 10000,
|
713 |
-
"currency": "thb",
|
714 |
-
"charge": "chrg_test_4zkr8lumcjspbbhd3td",
|
715 |
-
"transaction": "trxn_test_4zkr8mnruekulh2n214",
|
716 |
-
"created": "2015-04-03T07:39:35Z"
|
717 |
-
},
|
718 |
-
{
|
719 |
-
"object": "refund",
|
720 |
-
"id": "rfnd_test_4zkr8mejhcqwmqtpig3",
|
721 |
-
"location": "/charges/chrg_test_4zkr8lumcjspbbhd3td/refunds/rfnd_test_4zkr8mejhcqwmqtpig3",
|
722 |
-
"amount": 10000,
|
723 |
-
"currency": "thb",
|
724 |
-
"charge": "chrg_test_4zkr8lumcjspbbhd3td",
|
725 |
-
"transaction": "trxn_test_4zkr8meozh1ckq7wgfs",
|
726 |
-
"created": "2015-04-03T07:39:34Z"
|
727 |
-
}
|
728 |
-
],
|
729 |
-
"location": "/charges/chrg_test_4zkr8lumcjspbbhd3td/refunds"
|
730 |
-
},
|
731 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
732 |
-
"reference": "paym_test_4zkr8luo7l1v35mwy69",
|
733 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zkr8luo7l1v35mwy69/authorize",
|
734 |
-
"failure_code": null,
|
735 |
-
"failure_message": null,
|
736 |
-
"card": {
|
737 |
-
"object": "card",
|
738 |
-
"id": "card_test_4zkr8lrntg0nj7xe3tn",
|
739 |
-
"livemode": false,
|
740 |
-
"country": "us",
|
741 |
-
"city": "Bangkok",
|
742 |
-
"postal_code": "10320",
|
743 |
-
"financing": "",
|
744 |
-
"last_digits": "4242",
|
745 |
-
"brand": "Visa",
|
746 |
-
"expiration_month": 10,
|
747 |
-
"expiration_year": 2018,
|
748 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
749 |
-
"name": "Somchai Prasert",
|
750 |
-
"security_code_check": true,
|
751 |
-
"created": "2015-04-03T07:39:31Z"
|
752 |
-
},
|
753 |
-
"customer": null,
|
754 |
-
"ip": "127.0.0.1",
|
755 |
-
"dispute": null,
|
756 |
-
"created": "2015-04-03T07:39:31Z"
|
757 |
-
},
|
758 |
-
{
|
759 |
-
"object": "charge",
|
760 |
-
"id": "chrg_test_4zksixanset5gkd5t5q",
|
761 |
-
"livemode": false,
|
762 |
-
"location": "/charges/chrg_test_4zksixanset5gkd5t5q",
|
763 |
-
"amount": 100000,
|
764 |
-
"currency": "thb",
|
765 |
-
"description": "Another description",
|
766 |
-
"capture": false,
|
767 |
-
"authorized": true,
|
768 |
-
"captured": true,
|
769 |
-
"transaction": "trxn_test_4zksiy1mplgtofojuvn",
|
770 |
-
"refunded": 0,
|
771 |
-
"refunds": {
|
772 |
-
"object": "list",
|
773 |
-
"from": "1970-01-01T00:00:00+00:00",
|
774 |
-
"to": "2015-04-08T10:53:28+00:00",
|
775 |
-
"offset": 0,
|
776 |
-
"limit": 20,
|
777 |
-
"total": 0,
|
778 |
-
"data": [
|
779 |
-
|
780 |
-
],
|
781 |
-
"location": "/charges/chrg_test_4zksixanset5gkd5t5q/refunds"
|
782 |
-
},
|
783 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
784 |
-
"reference": "paym_test_4zksixar4j8vjw2wj1w",
|
785 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zksixar4j8vjw2wj1w/authorize",
|
786 |
-
"failure_code": null,
|
787 |
-
"failure_message": null,
|
788 |
-
"card": {
|
789 |
-
"object": "card",
|
790 |
-
"id": "card_test_4zksix7vwd04lxpfn2v",
|
791 |
-
"livemode": false,
|
792 |
-
"country": "us",
|
793 |
-
"city": "Bangkok",
|
794 |
-
"postal_code": "10320",
|
795 |
-
"financing": "",
|
796 |
-
"last_digits": "4242",
|
797 |
-
"brand": "Visa",
|
798 |
-
"expiration_month": 10,
|
799 |
-
"expiration_year": 2018,
|
800 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
801 |
-
"name": "Somchai Prasert",
|
802 |
-
"security_code_check": true,
|
803 |
-
"created": "2015-04-03T09:51:05Z"
|
804 |
-
},
|
805 |
-
"customer": null,
|
806 |
-
"ip": "127.0.0.1",
|
807 |
-
"dispute": null,
|
808 |
-
"created": "2015-04-03T09:51:06Z"
|
809 |
-
},
|
810 |
-
{
|
811 |
-
"object": "charge",
|
812 |
-
"id": "chrg_test_4zksixnbjtn1c86xhs1",
|
813 |
-
"livemode": false,
|
814 |
-
"location": "/charges/chrg_test_4zksixnbjtn1c86xhs1",
|
815 |
-
"amount": 100000,
|
816 |
-
"currency": "thb",
|
817 |
-
"description": "Order-384",
|
818 |
-
"capture": true,
|
819 |
-
"authorized": true,
|
820 |
-
"captured": true,
|
821 |
-
"transaction": "trxn_test_4zksixnvkd1dedjo8kc",
|
822 |
-
"refunded": 0,
|
823 |
-
"refunds": {
|
824 |
-
"object": "list",
|
825 |
-
"from": "1970-01-01T00:00:00+00:00",
|
826 |
-
"to": "2015-04-08T10:53:28+00:00",
|
827 |
-
"offset": 0,
|
828 |
-
"limit": 20,
|
829 |
-
"total": 0,
|
830 |
-
"data": [
|
831 |
-
|
832 |
-
],
|
833 |
-
"location": "/charges/chrg_test_4zksixnbjtn1c86xhs1/refunds"
|
834 |
-
},
|
835 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
836 |
-
"reference": "paym_test_4zksixnekxg5cz2yqre",
|
837 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zksixnekxg5cz2yqre/authorize",
|
838 |
-
"failure_code": null,
|
839 |
-
"failure_message": null,
|
840 |
-
"card": {
|
841 |
-
"object": "card",
|
842 |
-
"id": "card_test_4zksixkgwoauens7r73",
|
843 |
-
"livemode": false,
|
844 |
-
"country": "us",
|
845 |
-
"city": "Bangkok",
|
846 |
-
"postal_code": "10320",
|
847 |
-
"financing": "",
|
848 |
-
"last_digits": "4242",
|
849 |
-
"brand": "Visa",
|
850 |
-
"expiration_month": 10,
|
851 |
-
"expiration_year": 2018,
|
852 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
853 |
-
"name": "Somchai Prasert",
|
854 |
-
"security_code_check": true,
|
855 |
-
"created": "2015-04-03T09:51:07Z"
|
856 |
-
},
|
857 |
-
"customer": null,
|
858 |
-
"ip": "127.0.0.1",
|
859 |
-
"dispute": null,
|
860 |
-
"created": "2015-04-03T09:51:07Z"
|
861 |
-
},
|
862 |
-
{
|
863 |
-
"object": "charge",
|
864 |
-
"id": "chrg_test_4zksiyzmuzzdtjbe9us",
|
865 |
-
"livemode": false,
|
866 |
-
"location": "/charges/chrg_test_4zksiyzmuzzdtjbe9us",
|
867 |
-
"amount": 100000,
|
868 |
-
"currency": "thb",
|
869 |
-
"description": "Order-384",
|
870 |
-
"capture": true,
|
871 |
-
"authorized": true,
|
872 |
-
"captured": true,
|
873 |
-
"transaction": "trxn_test_4zksiz08rlb26bmlxk3",
|
874 |
-
"refunded": 20000,
|
875 |
-
"refunds": {
|
876 |
-
"object": "list",
|
877 |
-
"from": "1970-01-01T00:00:00+00:00",
|
878 |
-
"to": "2015-04-08T10:53:28+00:00",
|
879 |
-
"offset": 0,
|
880 |
-
"limit": 20,
|
881 |
-
"total": 2,
|
882 |
-
"data": [
|
883 |
-
{
|
884 |
-
"object": "refund",
|
885 |
-
"id": "rfnd_test_4zksizm5e04w4gkicqm",
|
886 |
-
"location": "/charges/chrg_test_4zksiyzmuzzdtjbe9us/refunds/rfnd_test_4zksizm5e04w4gkicqm",
|
887 |
-
"amount": 10000,
|
888 |
-
"currency": "thb",
|
889 |
-
"charge": "chrg_test_4zksiyzmuzzdtjbe9us",
|
890 |
-
"transaction": "trxn_test_4zksizmalo4i27cfnvg",
|
891 |
-
"created": "2015-04-03T09:51:17Z"
|
892 |
-
},
|
893 |
-
{
|
894 |
-
"object": "refund",
|
895 |
-
"id": "rfnd_test_4zksize4kaskpeymbt0",
|
896 |
-
"location": "/charges/chrg_test_4zksiyzmuzzdtjbe9us/refunds/rfnd_test_4zksize4kaskpeymbt0",
|
897 |
-
"amount": 10000,
|
898 |
-
"currency": "thb",
|
899 |
-
"charge": "chrg_test_4zksiyzmuzzdtjbe9us",
|
900 |
-
"transaction": "trxn_test_4zksize8oqufc1mc4po",
|
901 |
-
"created": "2015-04-03T09:51:16Z"
|
902 |
-
}
|
903 |
-
],
|
904 |
-
"location": "/charges/chrg_test_4zksiyzmuzzdtjbe9us/refunds"
|
905 |
-
},
|
906 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
907 |
-
"reference": "paym_test_4zksiyzpurs592i1961",
|
908 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zksiyzpurs592i1961/authorize",
|
909 |
-
"failure_code": null,
|
910 |
-
"failure_message": null,
|
911 |
-
"card": {
|
912 |
-
"object": "card",
|
913 |
-
"id": "card_test_4zksiywb8wscduu75cz",
|
914 |
-
"livemode": false,
|
915 |
-
"country": "us",
|
916 |
-
"city": "Bangkok",
|
917 |
-
"postal_code": "10320",
|
918 |
-
"financing": "",
|
919 |
-
"last_digits": "4242",
|
920 |
-
"brand": "Visa",
|
921 |
-
"expiration_month": 10,
|
922 |
-
"expiration_year": 2018,
|
923 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
924 |
-
"name": "Somchai Prasert",
|
925 |
-
"security_code_check": true,
|
926 |
-
"created": "2015-04-03T09:51:13Z"
|
927 |
-
},
|
928 |
-
"customer": null,
|
929 |
-
"ip": "127.0.0.1",
|
930 |
-
"dispute": null,
|
931 |
-
"created": "2015-04-03T09:51:14Z"
|
932 |
-
},
|
933 |
-
{
|
934 |
-
"object": "charge",
|
935 |
-
"id": "chrg_test_4zksmqf9wkpvj2o6fkg",
|
936 |
-
"livemode": false,
|
937 |
-
"location": "/charges/chrg_test_4zksmqf9wkpvj2o6fkg",
|
938 |
-
"amount": 100000,
|
939 |
-
"currency": "thb",
|
940 |
-
"description": "Another description",
|
941 |
-
"capture": false,
|
942 |
-
"authorized": true,
|
943 |
-
"captured": true,
|
944 |
-
"transaction": "trxn_test_4zksmr5hp3clafh27oo",
|
945 |
-
"refunded": 0,
|
946 |
-
"refunds": {
|
947 |
-
"object": "list",
|
948 |
-
"from": "1970-01-01T00:00:00+00:00",
|
949 |
-
"to": "2015-04-08T10:53:28+00:00",
|
950 |
-
"offset": 0,
|
951 |
-
"limit": 20,
|
952 |
-
"total": 0,
|
953 |
-
"data": [
|
954 |
-
|
955 |
-
],
|
956 |
-
"location": "/charges/chrg_test_4zksmqf9wkpvj2o6fkg/refunds"
|
957 |
-
},
|
958 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
959 |
-
"reference": "paym_test_4zksmqfbs1gfa7zd628",
|
960 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zksmqfbs1gfa7zd628/authorize",
|
961 |
-
"failure_code": null,
|
962 |
-
"failure_message": null,
|
963 |
-
"card": {
|
964 |
-
"object": "card",
|
965 |
-
"id": "card_test_4zksmqcf6n21lgdly3l",
|
966 |
-
"livemode": false,
|
967 |
-
"country": "us",
|
968 |
-
"city": "Bangkok",
|
969 |
-
"postal_code": "10320",
|
970 |
-
"financing": "",
|
971 |
-
"last_digits": "4242",
|
972 |
-
"brand": "Visa",
|
973 |
-
"expiration_month": 10,
|
974 |
-
"expiration_year": 2018,
|
975 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
976 |
-
"name": "Somchai Prasert",
|
977 |
-
"security_code_check": true,
|
978 |
-
"created": "2015-04-03T10:01:55Z"
|
979 |
-
},
|
980 |
-
"customer": null,
|
981 |
-
"ip": "127.0.0.1",
|
982 |
-
"dispute": null,
|
983 |
-
"created": "2015-04-03T10:01:55Z"
|
984 |
-
},
|
985 |
-
{
|
986 |
-
"object": "charge",
|
987 |
-
"id": "chrg_test_4zksmqrd3iuvfyi88nq",
|
988 |
-
"livemode": false,
|
989 |
-
"location": "/charges/chrg_test_4zksmqrd3iuvfyi88nq",
|
990 |
-
"amount": 100000,
|
991 |
-
"currency": "thb",
|
992 |
-
"description": "Order-384",
|
993 |
-
"capture": true,
|
994 |
-
"authorized": true,
|
995 |
-
"captured": true,
|
996 |
-
"transaction": "trxn_test_4zksmqrxniy3a0fqbvs",
|
997 |
-
"refunded": 0,
|
998 |
-
"refunds": {
|
999 |
-
"object": "list",
|
1000 |
-
"from": "1970-01-01T00:00:00+00:00",
|
1001 |
-
"to": "2015-04-08T10:53:28+00:00",
|
1002 |
-
"offset": 0,
|
1003 |
-
"limit": 20,
|
1004 |
-
"total": 0,
|
1005 |
-
"data": [
|
1006 |
-
|
1007 |
-
],
|
1008 |
-
"location": "/charges/chrg_test_4zksmqrd3iuvfyi88nq/refunds"
|
1009 |
-
},
|
1010 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
1011 |
-
"reference": "paym_test_4zksmqrg3ctood2pg1j",
|
1012 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zksmqrg3ctood2pg1j/authorize",
|
1013 |
-
"failure_code": null,
|
1014 |
-
"failure_message": null,
|
1015 |
-
"card": {
|
1016 |
-
"object": "card",
|
1017 |
-
"id": "card_test_4zksmqom9uopyf5m2n0",
|
1018 |
-
"livemode": false,
|
1019 |
-
"country": "us",
|
1020 |
-
"city": "Bangkok",
|
1021 |
-
"postal_code": "10320",
|
1022 |
-
"financing": "",
|
1023 |
-
"last_digits": "4242",
|
1024 |
-
"brand": "Visa",
|
1025 |
-
"expiration_month": 10,
|
1026 |
-
"expiration_year": 2018,
|
1027 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
1028 |
-
"name": "Somchai Prasert",
|
1029 |
-
"security_code_check": true,
|
1030 |
-
"created": "2015-04-03T10:01:56Z"
|
1031 |
-
},
|
1032 |
-
"customer": null,
|
1033 |
-
"ip": "127.0.0.1",
|
1034 |
-
"dispute": null,
|
1035 |
-
"created": "2015-04-03T10:01:57Z"
|
1036 |
-
},
|
1037 |
-
{
|
1038 |
-
"object": "charge",
|
1039 |
-
"id": "chrg_test_4zksms5imwoxd890vp3",
|
1040 |
-
"livemode": false,
|
1041 |
-
"location": "/charges/chrg_test_4zksms5imwoxd890vp3",
|
1042 |
-
"amount": 100000,
|
1043 |
-
"currency": "thb",
|
1044 |
-
"description": "Order-384",
|
1045 |
-
"capture": true,
|
1046 |
-
"authorized": true,
|
1047 |
-
"captured": true,
|
1048 |
-
"transaction": "trxn_test_4zksms63piv9sgzu80z",
|
1049 |
-
"refunded": 20000,
|
1050 |
-
"refunds": {
|
1051 |
-
"object": "list",
|
1052 |
-
"from": "1970-01-01T00:00:00+00:00",
|
1053 |
-
"to": "2015-04-08T10:53:28+00:00",
|
1054 |
-
"offset": 0,
|
1055 |
-
"limit": 20,
|
1056 |
-
"total": 2,
|
1057 |
-
"data": [
|
1058 |
-
{
|
1059 |
-
"object": "refund",
|
1060 |
-
"id": "rfnd_test_4zksmsrojvlre25eo96",
|
1061 |
-
"location": "/charges/chrg_test_4zksms5imwoxd890vp3/refunds/rfnd_test_4zksmsrojvlre25eo96",
|
1062 |
-
"amount": 10000,
|
1063 |
-
"currency": "thb",
|
1064 |
-
"charge": "chrg_test_4zksms5imwoxd890vp3",
|
1065 |
-
"transaction": "trxn_test_4zksmsrtfzf9fjwmay5",
|
1066 |
-
"created": "2015-04-03T10:02:06Z"
|
1067 |
-
},
|
1068 |
-
{
|
1069 |
-
"object": "refund",
|
1070 |
-
"id": "rfnd_test_4zksmsjan5ip6zb189n",
|
1071 |
-
"location": "/charges/chrg_test_4zksms5imwoxd890vp3/refunds/rfnd_test_4zksmsjan5ip6zb189n",
|
1072 |
-
"amount": 10000,
|
1073 |
-
"currency": "thb",
|
1074 |
-
"charge": "chrg_test_4zksms5imwoxd890vp3",
|
1075 |
-
"transaction": "trxn_test_4zksmsjeqywl9ex4p81",
|
1076 |
-
"created": "2015-04-03T10:02:05Z"
|
1077 |
-
}
|
1078 |
-
],
|
1079 |
-
"location": "/charges/chrg_test_4zksms5imwoxd890vp3/refunds"
|
1080 |
-
},
|
1081 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
1082 |
-
"reference": "paym_test_4zksms5m5m7gxkhmw08",
|
1083 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zksms5m5m7gxkhmw08/authorize",
|
1084 |
-
"failure_code": null,
|
1085 |
-
"failure_message": null,
|
1086 |
-
"card": {
|
1087 |
-
"object": "card",
|
1088 |
-
"id": "card_test_4zksms2pw6h9kpc611i",
|
1089 |
-
"livemode": false,
|
1090 |
-
"country": "us",
|
1091 |
-
"city": "Bangkok",
|
1092 |
-
"postal_code": "10320",
|
1093 |
-
"financing": "",
|
1094 |
-
"last_digits": "4242",
|
1095 |
-
"brand": "Visa",
|
1096 |
-
"expiration_month": 10,
|
1097 |
-
"expiration_year": 2018,
|
1098 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
1099 |
-
"name": "Somchai Prasert",
|
1100 |
-
"security_code_check": true,
|
1101 |
-
"created": "2015-04-03T10:02:03Z"
|
1102 |
-
},
|
1103 |
-
"customer": null,
|
1104 |
-
"ip": "127.0.0.1",
|
1105 |
-
"dispute": null,
|
1106 |
-
"created": "2015-04-03T10:02:03Z"
|
1107 |
-
},
|
1108 |
-
{
|
1109 |
-
"object": "charge",
|
1110 |
-
"id": "chrg_test_4zksq5qzxcucuki8m6k",
|
1111 |
-
"livemode": false,
|
1112 |
-
"location": "/charges/chrg_test_4zksq5qzxcucuki8m6k",
|
1113 |
-
"amount": 100000,
|
1114 |
-
"currency": "thb",
|
1115 |
-
"description": "Another description",
|
1116 |
-
"capture": false,
|
1117 |
-
"authorized": true,
|
1118 |
-
"captured": true,
|
1119 |
-
"transaction": "trxn_test_4zksq6hizs4h9h2bv72",
|
1120 |
-
"refunded": 0,
|
1121 |
-
"refunds": {
|
1122 |
-
"object": "list",
|
1123 |
-
"from": "1970-01-01T00:00:00+00:00",
|
1124 |
-
"to": "2015-04-08T10:53:28+00:00",
|
1125 |
-
"offset": 0,
|
1126 |
-
"limit": 20,
|
1127 |
-
"total": 0,
|
1128 |
-
"data": [
|
1129 |
-
|
1130 |
-
],
|
1131 |
-
"location": "/charges/chrg_test_4zksq5qzxcucuki8m6k/refunds"
|
1132 |
-
},
|
1133 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
1134 |
-
"reference": "paym_test_4zksq5r2y8t8r8ms8kb",
|
1135 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zksq5r2y8t8r8ms8kb/authorize",
|
1136 |
-
"failure_code": null,
|
1137 |
-
"failure_message": null,
|
1138 |
-
"card": {
|
1139 |
-
"object": "card",
|
1140 |
-
"id": "card_test_4zksq5o78kus2i8t02q",
|
1141 |
-
"livemode": false,
|
1142 |
-
"country": "us",
|
1143 |
-
"city": "Bangkok",
|
1144 |
-
"postal_code": "10320",
|
1145 |
-
"financing": "",
|
1146 |
-
"last_digits": "4242",
|
1147 |
-
"brand": "Visa",
|
1148 |
-
"expiration_month": 10,
|
1149 |
-
"expiration_year": 2018,
|
1150 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
1151 |
-
"name": "Somchai Prasert",
|
1152 |
-
"security_code_check": true,
|
1153 |
-
"created": "2015-04-03T10:11:38Z"
|
1154 |
-
},
|
1155 |
-
"customer": null,
|
1156 |
-
"ip": "127.0.0.1",
|
1157 |
-
"dispute": null,
|
1158 |
-
"created": "2015-04-03T10:11:39Z"
|
1159 |
-
}
|
1160 |
-
]
|
1161 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/charges-post.json
DELETED
@@ -1,52 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "charge",
|
3 |
-
"id": "chrg_test_4zmrjgxdh4ycj2qncoj",
|
4 |
-
"livemode": false,
|
5 |
-
"location": "/charges/chrg_test_4zmrjgxdh4ycj2qncoj",
|
6 |
-
"amount": 100000,
|
7 |
-
"currency": "thb",
|
8 |
-
"description": "Order-384",
|
9 |
-
"capture": true,
|
10 |
-
"authorized": true,
|
11 |
-
"captured": true,
|
12 |
-
"transaction": "trxn_test_4zmrjgxww057xi0wbh9",
|
13 |
-
"refunded": 0,
|
14 |
-
"refunds": {
|
15 |
-
"object": "list",
|
16 |
-
"from": "1970-01-01T00:00:00+00:00",
|
17 |
-
"to": "2015-04-08T10:53:37+00:00",
|
18 |
-
"offset": 0,
|
19 |
-
"limit": 20,
|
20 |
-
"total": 0,
|
21 |
-
"data": [
|
22 |
-
|
23 |
-
],
|
24 |
-
"location": "/charges/chrg_test_4zmrjgxdh4ycj2qncoj/refunds"
|
25 |
-
},
|
26 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
27 |
-
"reference": "paym_test_4zmrjgxg87a2zq0rcta",
|
28 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zmrjgxg87a2zq0rcta/authorize",
|
29 |
-
"failure_code": null,
|
30 |
-
"failure_message": null,
|
31 |
-
"card": {
|
32 |
-
"object": "card",
|
33 |
-
"id": "card_test_4zmrjglkywgn49idf8o",
|
34 |
-
"livemode": false,
|
35 |
-
"country": "us",
|
36 |
-
"city": "Bangkok",
|
37 |
-
"postal_code": "10320",
|
38 |
-
"financing": "",
|
39 |
-
"last_digits": "4242",
|
40 |
-
"brand": "Visa",
|
41 |
-
"expiration_month": 10,
|
42 |
-
"expiration_year": 2018,
|
43 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
44 |
-
"name": "Somchai Prasert",
|
45 |
-
"security_code_check": true,
|
46 |
-
"created": "2015-04-08T10:53:36Z"
|
47 |
-
},
|
48 |
-
"customer": null,
|
49 |
-
"ip": "127.0.0.1",
|
50 |
-
"dispute": null,
|
51 |
-
"created": "2015-04-08T10:53:37Z"
|
52 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/charges/.DS_Store
DELETED
Binary file
|
lib/omise-php/tests/fixtures/api.omise.co/charges/chrg_test_4zmrjgxdh4ycj2qncoj-get.json
DELETED
@@ -1,61 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "charge",
|
3 |
-
"id": "chrg_test_4zmrjgxdh4ycj2qncoj",
|
4 |
-
"livemode": false,
|
5 |
-
"location": "/charges/chrg_test_4zmrjgxdh4ycj2qncoj",
|
6 |
-
"amount": 100000,
|
7 |
-
"currency": "thb",
|
8 |
-
"description": "Order-384",
|
9 |
-
"capture": true,
|
10 |
-
"authorized": true,
|
11 |
-
"captured": true,
|
12 |
-
"transaction": "trxn_test_4zmrjgxww057xi0wbh9",
|
13 |
-
"refunded": 10000,
|
14 |
-
"refunds": {
|
15 |
-
"object": "list",
|
16 |
-
"from": "1970-01-01T00:00:00+00:00",
|
17 |
-
"to": "2015-04-08T10:53:39+00:00",
|
18 |
-
"offset": 0,
|
19 |
-
"limit": 20,
|
20 |
-
"total": 1,
|
21 |
-
"data": [
|
22 |
-
{
|
23 |
-
"object": "refund",
|
24 |
-
"id": "rfnd_test_4zmrjhc8lrbfzhdwg7c",
|
25 |
-
"location": "/charges/chrg_test_4zmrjgxdh4ycj2qncoj/refunds/rfnd_test_4zmrjhc8lrbfzhdwg7c",
|
26 |
-
"amount": 10000,
|
27 |
-
"currency": "thb",
|
28 |
-
"charge": "chrg_test_4zmrjgxdh4ycj2qncoj",
|
29 |
-
"transaction": "trxn_test_4zmrjhccfigwe9a3xfe",
|
30 |
-
"created": "2015-04-08T10:53:39Z"
|
31 |
-
}
|
32 |
-
],
|
33 |
-
"location": "/charges/chrg_test_4zmrjgxdh4ycj2qncoj/refunds"
|
34 |
-
},
|
35 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
36 |
-
"reference": "paym_test_4zmrjgxg87a2zq0rcta",
|
37 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zmrjgxg87a2zq0rcta/authorize",
|
38 |
-
"failure_code": null,
|
39 |
-
"failure_message": null,
|
40 |
-
"card": {
|
41 |
-
"object": "card",
|
42 |
-
"id": "card_test_4zmrjglkywgn49idf8o",
|
43 |
-
"livemode": false,
|
44 |
-
"country": "us",
|
45 |
-
"city": "Bangkok",
|
46 |
-
"postal_code": "10320",
|
47 |
-
"financing": "",
|
48 |
-
"last_digits": "4242",
|
49 |
-
"brand": "Visa",
|
50 |
-
"expiration_month": 10,
|
51 |
-
"expiration_year": 2018,
|
52 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
53 |
-
"name": "Somchai Prasert",
|
54 |
-
"security_code_check": true,
|
55 |
-
"created": "2015-04-08T10:53:36Z"
|
56 |
-
},
|
57 |
-
"customer": null,
|
58 |
-
"ip": "127.0.0.1",
|
59 |
-
"dispute": null,
|
60 |
-
"created": "2015-04-08T10:53:37Z"
|
61 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/charges/chrg_test_4zmrjgxdh4ycj2qncoj-patch.json
DELETED
@@ -1,52 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "charge",
|
3 |
-
"id": "chrg_test_4zmrjgxdh4ycj2qncoj",
|
4 |
-
"livemode": false,
|
5 |
-
"location": "/charges/chrg_test_4zmrjgxdh4ycj2qncoj",
|
6 |
-
"amount": 100000,
|
7 |
-
"currency": "thb",
|
8 |
-
"description": "Another description",
|
9 |
-
"capture": false,
|
10 |
-
"authorized": true,
|
11 |
-
"captured": false,
|
12 |
-
"transaction": null,
|
13 |
-
"refunded": 0,
|
14 |
-
"refunds": {
|
15 |
-
"object": "list",
|
16 |
-
"from": "1970-01-01T00:00:00+00:00",
|
17 |
-
"to": "2015-04-08T10:53:30+00:00",
|
18 |
-
"offset": 0,
|
19 |
-
"limit": 20,
|
20 |
-
"total": 0,
|
21 |
-
"data": [
|
22 |
-
|
23 |
-
],
|
24 |
-
"location": "/charges/chrg_test_4zmrjgxdh4ycj2qncoj/refunds"
|
25 |
-
},
|
26 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
27 |
-
"reference": "paym_test_4zmrjeujqntoxrxd8g2",
|
28 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zmrjeujqntoxrxd8g2/authorize",
|
29 |
-
"failure_code": null,
|
30 |
-
"failure_message": null,
|
31 |
-
"card": {
|
32 |
-
"object": "card",
|
33 |
-
"id": "card_test_4zmrjera07arnc1sctr",
|
34 |
-
"livemode": false,
|
35 |
-
"country": "us",
|
36 |
-
"city": "Bangkok",
|
37 |
-
"postal_code": "10320",
|
38 |
-
"financing": "",
|
39 |
-
"last_digits": "4242",
|
40 |
-
"brand": "Visa",
|
41 |
-
"expiration_month": 10,
|
42 |
-
"expiration_year": 2018,
|
43 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
44 |
-
"name": "Somchai Prasert",
|
45 |
-
"security_code_check": true,
|
46 |
-
"created": "2015-04-08T10:53:27Z"
|
47 |
-
},
|
48 |
-
"customer": null,
|
49 |
-
"ip": "127.0.0.1",
|
50 |
-
"dispute": null,
|
51 |
-
"created": "2015-04-08T10:53:27Z"
|
52 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/charges/chrg_test_4zmrjgxdh4ycj2qncoj/capture-post.json
DELETED
@@ -1,52 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "charge",
|
3 |
-
"id": "chrg_test_4zmrjgxdh4ycj2qncoj",
|
4 |
-
"livemode": false,
|
5 |
-
"location": "/charges/chrg_test_4zmrjgxdh4ycj2qncoj",
|
6 |
-
"amount": 100000,
|
7 |
-
"currency": "thb",
|
8 |
-
"description": "Another description",
|
9 |
-
"capture": false,
|
10 |
-
"authorized": true,
|
11 |
-
"captured": true,
|
12 |
-
"transaction": "trxn_test_4zmrjfmyx1ax70sx0rb",
|
13 |
-
"refunded": 0,
|
14 |
-
"refunds": {
|
15 |
-
"object": "list",
|
16 |
-
"from": "1970-01-01T00:00:00+00:00",
|
17 |
-
"to": "2015-04-08T10:53:31+00:00",
|
18 |
-
"offset": 0,
|
19 |
-
"limit": 20,
|
20 |
-
"total": 0,
|
21 |
-
"data": [
|
22 |
-
|
23 |
-
],
|
24 |
-
"location": "/charges/chrg_test_4zmrjgxdh4ycj2qncoj/refunds"
|
25 |
-
},
|
26 |
-
"return_uri": "https://example.co.th/orders/384/complete",
|
27 |
-
"reference": "paym_test_4zmrjeujqntoxrxd8g2",
|
28 |
-
"authorize_uri": "https://api.omise.co/payments/paym_test_4zmrjeujqntoxrxd8g2/authorize",
|
29 |
-
"failure_code": null,
|
30 |
-
"failure_message": null,
|
31 |
-
"card": {
|
32 |
-
"object": "card",
|
33 |
-
"id": "card_test_4zmrjera07arnc1sctr",
|
34 |
-
"livemode": false,
|
35 |
-
"country": "us",
|
36 |
-
"city": "Bangkok",
|
37 |
-
"postal_code": "10320",
|
38 |
-
"financing": "",
|
39 |
-
"last_digits": "4242",
|
40 |
-
"brand": "Visa",
|
41 |
-
"expiration_month": 10,
|
42 |
-
"expiration_year": 2018,
|
43 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
44 |
-
"name": "Somchai Prasert",
|
45 |
-
"security_code_check": true,
|
46 |
-
"created": "2015-04-08T10:53:27Z"
|
47 |
-
},
|
48 |
-
"customer": null,
|
49 |
-
"ip": "127.0.0.1",
|
50 |
-
"dispute": null,
|
51 |
-
"created": "2015-04-08T10:53:27Z"
|
52 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/charges/chrg_test_4zmrjgxdh4ycj2qncoj/refunds-get.json
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "list",
|
3 |
-
"from": "1970-01-01T00:00:00+00:00",
|
4 |
-
"to": "2015-04-08T10:53:40+00:00",
|
5 |
-
"offset": 0,
|
6 |
-
"limit": 20,
|
7 |
-
"total": 1,
|
8 |
-
"data": [
|
9 |
-
{
|
10 |
-
"object": "refund",
|
11 |
-
"id": "rfnd_test_4zmrjhc8lrbfzhdwg7c",
|
12 |
-
"location": "/charges/chrg_test_4zmrjgxdh4ycj2qncoj/refunds/rfnd_test_4zmrjhc8lrbfzhdwg7c",
|
13 |
-
"amount": 10000,
|
14 |
-
"currency": "thb",
|
15 |
-
"charge": "chrg_test_4zmrjgxdh4ycj2qncoj",
|
16 |
-
"transaction": "trxn_test_4zmrjhccfigwe9a3xfe",
|
17 |
-
"created": "2015-04-08T10:53:39Z"
|
18 |
-
}
|
19 |
-
],
|
20 |
-
"location": "/charges/chrg_test_4zmrjgxdh4ycj2qncoj/refunds"
|
21 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/charges/chrg_test_4zmrjgxdh4ycj2qncoj/refunds-post.json
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "refund",
|
3 |
-
"id": "rfnd_test_4zmrjhlbqy587sw6fwt",
|
4 |
-
"location": "/charges/chrg_test_4zmrjgxdh4ycj2qncoj/refunds/rfnd_test_4zmrjhlbqy587sw6fwt",
|
5 |
-
"amount": 10000,
|
6 |
-
"currency": "thb",
|
7 |
-
"charge": "chrg_test_4zmrjgxdh4ycj2qncoj",
|
8 |
-
"transaction": "trxn_test_4zmrjhlflnz6id6q0bo",
|
9 |
-
"created": "2015-04-08T10:53:40Z"
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/charges/chrg_test_4zmrjgxdh4ycj2qncoj/refunds/rfnd_test_4zmrjhlbqy587sw6fwt-get.json
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "refund",
|
3 |
-
"id": "rfnd_test_4zmrjhlbqy587sw6fwt",
|
4 |
-
"location": "/charges/chrg_test_4zmrjgxdh4ycj2qncoj/refunds/rfnd_test_4zmrjhlbqy587sw6fwt",
|
5 |
-
"amount": 10000,
|
6 |
-
"currency": "thb",
|
7 |
-
"charge": "chrg_test_4zmrjgxdh4ycj2qncoj",
|
8 |
-
"transaction": "trxn_test_4zmrjhlflnz6id6q0bo",
|
9 |
-
"created": "2015-04-08T10:53:40Z"
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/customers-get.json
DELETED
@@ -1,467 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "list",
|
3 |
-
"from": "1970-01-01T00:00:00+00:00",
|
4 |
-
"to": "2015-04-08T10:53:32+00:00",
|
5 |
-
"offset": 0,
|
6 |
-
"limit": 20,
|
7 |
-
"total": 179,
|
8 |
-
"data": [
|
9 |
-
{
|
10 |
-
"object": "customer",
|
11 |
-
"id": "cust_test_4zkdaqsurbtjbgtgv7w",
|
12 |
-
"livemode": false,
|
13 |
-
"location": "/customers/cust_test_4zkdaqsurbtjbgtgv7w",
|
14 |
-
"default_card": null,
|
15 |
-
"email": "john.doe@example.com",
|
16 |
-
"description": "John Doe (id: 30)",
|
17 |
-
"created": "2015-04-02T07:53:51Z",
|
18 |
-
"cards": {
|
19 |
-
"object": "list",
|
20 |
-
"from": "1970-01-01T00:00:00+00:00",
|
21 |
-
"to": "2015-04-08T10:53:32+00:00",
|
22 |
-
"offset": 0,
|
23 |
-
"limit": 20,
|
24 |
-
"total": 0,
|
25 |
-
"data": [
|
26 |
-
|
27 |
-
],
|
28 |
-
"location": "/customers/cust_test_4zkdaqsurbtjbgtgv7w/cards"
|
29 |
-
}
|
30 |
-
},
|
31 |
-
{
|
32 |
-
"object": "customer",
|
33 |
-
"id": "cust_test_4zkor57qm2b8wl0lkzv",
|
34 |
-
"livemode": false,
|
35 |
-
"location": "/customers/cust_test_4zkor57qm2b8wl0lkzv",
|
36 |
-
"default_card": "card_test_4zkor54z95a9s3mtwln",
|
37 |
-
"email": "john.doe@example.com",
|
38 |
-
"description": "John Doe (id: 30)",
|
39 |
-
"created": "2015-04-03T03:25:23Z",
|
40 |
-
"cards": {
|
41 |
-
"object": "list",
|
42 |
-
"from": "1970-01-01T00:00:00+00:00",
|
43 |
-
"to": "2015-04-08T10:53:32+00:00",
|
44 |
-
"offset": 0,
|
45 |
-
"limit": 20,
|
46 |
-
"total": 1,
|
47 |
-
"data": [
|
48 |
-
{
|
49 |
-
"object": "card",
|
50 |
-
"id": "card_test_4zkor54z95a9s3mtwln",
|
51 |
-
"livemode": false,
|
52 |
-
"location": "/customers/cust_test_4zkor57qm2b8wl0lkzv/cards/card_test_4zkor54z95a9s3mtwln",
|
53 |
-
"country": "us",
|
54 |
-
"city": "Bangkok",
|
55 |
-
"postal_code": "10320",
|
56 |
-
"financing": "",
|
57 |
-
"last_digits": "1111",
|
58 |
-
"brand": "Visa",
|
59 |
-
"expiration_month": 10,
|
60 |
-
"expiration_year": 2018,
|
61 |
-
"fingerprint": "zoT22qQjIGifavlKMASVVJ7+XsEBwVd4PzEL3zqs6eA=",
|
62 |
-
"name": "Somchai Prasert",
|
63 |
-
"security_code_check": true,
|
64 |
-
"created": "2015-04-03T03:25:22Z"
|
65 |
-
}
|
66 |
-
],
|
67 |
-
"location": "/customers/cust_test_4zkor57qm2b8wl0lkzv/cards"
|
68 |
-
}
|
69 |
-
},
|
70 |
-
{
|
71 |
-
"object": "customer",
|
72 |
-
"id": "cust_test_4zkoryfgxq4yegrinq7",
|
73 |
-
"livemode": false,
|
74 |
-
"location": "/customers/cust_test_4zkoryfgxq4yegrinq7",
|
75 |
-
"default_card": null,
|
76 |
-
"email": "john.doe@example.com",
|
77 |
-
"description": "John Doe (id: 30)",
|
78 |
-
"created": "2015-04-03T03:27:41Z",
|
79 |
-
"cards": {
|
80 |
-
"object": "list",
|
81 |
-
"from": "1970-01-01T00:00:00+00:00",
|
82 |
-
"to": "2015-04-08T10:53:32+00:00",
|
83 |
-
"offset": 0,
|
84 |
-
"limit": 20,
|
85 |
-
"total": 0,
|
86 |
-
"data": [
|
87 |
-
|
88 |
-
],
|
89 |
-
"location": "/customers/cust_test_4zkoryfgxq4yegrinq7/cards"
|
90 |
-
}
|
91 |
-
},
|
92 |
-
{
|
93 |
-
"object": "customer",
|
94 |
-
"id": "cust_test_4zkoryv4lkh96642mae",
|
95 |
-
"livemode": false,
|
96 |
-
"location": "/customers/cust_test_4zkoryv4lkh96642mae",
|
97 |
-
"default_card": null,
|
98 |
-
"email": "john.doe@example.com",
|
99 |
-
"description": "John Doe (id: 30)",
|
100 |
-
"created": "2015-04-03T03:27:43Z",
|
101 |
-
"cards": {
|
102 |
-
"object": "list",
|
103 |
-
"from": "1970-01-01T00:00:00+00:00",
|
104 |
-
"to": "2015-04-08T10:53:32+00:00",
|
105 |
-
"offset": 0,
|
106 |
-
"limit": 20,
|
107 |
-
"total": 0,
|
108 |
-
"data": [
|
109 |
-
|
110 |
-
],
|
111 |
-
"location": "/customers/cust_test_4zkoryv4lkh96642mae/cards"
|
112 |
-
}
|
113 |
-
},
|
114 |
-
{
|
115 |
-
"object": "customer",
|
116 |
-
"id": "cust_test_4zkorzczuo6ge0w0svt",
|
117 |
-
"livemode": false,
|
118 |
-
"location": "/customers/cust_test_4zkorzczuo6ge0w0svt",
|
119 |
-
"default_card": null,
|
120 |
-
"email": "john.doe@example.com",
|
121 |
-
"description": "John Doe (id: 30)",
|
122 |
-
"created": "2015-04-03T03:27:45Z",
|
123 |
-
"cards": {
|
124 |
-
"object": "list",
|
125 |
-
"from": "1970-01-01T00:00:00+00:00",
|
126 |
-
"to": "2015-04-08T10:53:32+00:00",
|
127 |
-
"offset": 0,
|
128 |
-
"limit": 20,
|
129 |
-
"total": 0,
|
130 |
-
"data": [
|
131 |
-
|
132 |
-
],
|
133 |
-
"location": "/customers/cust_test_4zkorzczuo6ge0w0svt/cards"
|
134 |
-
}
|
135 |
-
},
|
136 |
-
{
|
137 |
-
"object": "customer",
|
138 |
-
"id": "cust_test_4zkorzxd4flz37o32pz",
|
139 |
-
"livemode": false,
|
140 |
-
"location": "/customers/cust_test_4zkorzxd4flz37o32pz",
|
141 |
-
"default_card": null,
|
142 |
-
"email": "john.doe@example.com",
|
143 |
-
"description": "John Doe (id: 30)",
|
144 |
-
"created": "2015-04-03T03:27:48Z",
|
145 |
-
"cards": {
|
146 |
-
"object": "list",
|
147 |
-
"from": "1970-01-01T00:00:00+00:00",
|
148 |
-
"to": "2015-04-08T10:53:32+00:00",
|
149 |
-
"offset": 0,
|
150 |
-
"limit": 20,
|
151 |
-
"total": 0,
|
152 |
-
"data": [
|
153 |
-
|
154 |
-
],
|
155 |
-
"location": "/customers/cust_test_4zkorzxd4flz37o32pz/cards"
|
156 |
-
}
|
157 |
-
},
|
158 |
-
{
|
159 |
-
"object": "customer",
|
160 |
-
"id": "cust_test_4zkos0hx1lr9p2hev6v",
|
161 |
-
"livemode": false,
|
162 |
-
"location": "/customers/cust_test_4zkos0hx1lr9p2hev6v",
|
163 |
-
"default_card": null,
|
164 |
-
"email": "john.doe@example.com",
|
165 |
-
"description": "John Doe (id: 30)",
|
166 |
-
"created": "2015-04-03T03:27:51Z",
|
167 |
-
"cards": {
|
168 |
-
"object": "list",
|
169 |
-
"from": "1970-01-01T00:00:00+00:00",
|
170 |
-
"to": "2015-04-08T10:53:32+00:00",
|
171 |
-
"offset": 0,
|
172 |
-
"limit": 20,
|
173 |
-
"total": 0,
|
174 |
-
"data": [
|
175 |
-
|
176 |
-
],
|
177 |
-
"location": "/customers/cust_test_4zkos0hx1lr9p2hev6v/cards"
|
178 |
-
}
|
179 |
-
},
|
180 |
-
{
|
181 |
-
"object": "customer",
|
182 |
-
"id": "cust_test_4zkoswp2d7v2k3hcsu3",
|
183 |
-
"livemode": false,
|
184 |
-
"location": "/customers/cust_test_4zkoswp2d7v2k3hcsu3",
|
185 |
-
"default_card": null,
|
186 |
-
"email": "john.doe@example.com",
|
187 |
-
"description": "John Doe (id: 30)",
|
188 |
-
"created": "2015-04-03T03:30:23Z",
|
189 |
-
"cards": {
|
190 |
-
"object": "list",
|
191 |
-
"from": "1970-01-01T00:00:00+00:00",
|
192 |
-
"to": "2015-04-08T10:53:32+00:00",
|
193 |
-
"offset": 0,
|
194 |
-
"limit": 20,
|
195 |
-
"total": 0,
|
196 |
-
"data": [
|
197 |
-
|
198 |
-
],
|
199 |
-
"location": "/customers/cust_test_4zkoswp2d7v2k3hcsu3/cards"
|
200 |
-
}
|
201 |
-
},
|
202 |
-
{
|
203 |
-
"object": "customer",
|
204 |
-
"id": "cust_test_4zkosx5fpceitn99wgo",
|
205 |
-
"livemode": false,
|
206 |
-
"location": "/customers/cust_test_4zkosx5fpceitn99wgo",
|
207 |
-
"default_card": null,
|
208 |
-
"email": "john.doe@example.com",
|
209 |
-
"description": "John Doe (id: 30)",
|
210 |
-
"created": "2015-04-03T03:30:25Z",
|
211 |
-
"cards": {
|
212 |
-
"object": "list",
|
213 |
-
"from": "1970-01-01T00:00:00+00:00",
|
214 |
-
"to": "2015-04-08T10:53:32+00:00",
|
215 |
-
"offset": 0,
|
216 |
-
"limit": 20,
|
217 |
-
"total": 0,
|
218 |
-
"data": [
|
219 |
-
|
220 |
-
],
|
221 |
-
"location": "/customers/cust_test_4zkosx5fpceitn99wgo/cards"
|
222 |
-
}
|
223 |
-
},
|
224 |
-
{
|
225 |
-
"object": "customer",
|
226 |
-
"id": "cust_test_4zkosxnn0ku1oeyg1x3",
|
227 |
-
"livemode": false,
|
228 |
-
"location": "/customers/cust_test_4zkosxnn0ku1oeyg1x3",
|
229 |
-
"default_card": null,
|
230 |
-
"email": "john.doe@example.com",
|
231 |
-
"description": "John Doe (id: 30)",
|
232 |
-
"created": "2015-04-03T03:30:28Z",
|
233 |
-
"cards": {
|
234 |
-
"object": "list",
|
235 |
-
"from": "1970-01-01T00:00:00+00:00",
|
236 |
-
"to": "2015-04-08T10:53:32+00:00",
|
237 |
-
"offset": 0,
|
238 |
-
"limit": 20,
|
239 |
-
"total": 0,
|
240 |
-
"data": [
|
241 |
-
|
242 |
-
],
|
243 |
-
"location": "/customers/cust_test_4zkosxnn0ku1oeyg1x3/cards"
|
244 |
-
}
|
245 |
-
},
|
246 |
-
{
|
247 |
-
"object": "customer",
|
248 |
-
"id": "cust_test_4zkosy8hvdi7f7ku68w",
|
249 |
-
"livemode": false,
|
250 |
-
"location": "/customers/cust_test_4zkosy8hvdi7f7ku68w",
|
251 |
-
"default_card": null,
|
252 |
-
"email": "john.doe@example.com",
|
253 |
-
"description": "John Doe (id: 30)",
|
254 |
-
"created": "2015-04-03T03:30:30Z",
|
255 |
-
"cards": {
|
256 |
-
"object": "list",
|
257 |
-
"from": "1970-01-01T00:00:00+00:00",
|
258 |
-
"to": "2015-04-08T10:53:32+00:00",
|
259 |
-
"offset": 0,
|
260 |
-
"limit": 20,
|
261 |
-
"total": 0,
|
262 |
-
"data": [
|
263 |
-
|
264 |
-
],
|
265 |
-
"location": "/customers/cust_test_4zkosy8hvdi7f7ku68w/cards"
|
266 |
-
}
|
267 |
-
},
|
268 |
-
{
|
269 |
-
"object": "customer",
|
270 |
-
"id": "cust_test_4zkosz1vu6lofd8wnb0",
|
271 |
-
"livemode": false,
|
272 |
-
"location": "/customers/cust_test_4zkosz1vu6lofd8wnb0",
|
273 |
-
"default_card": null,
|
274 |
-
"email": "john.doe@example.com",
|
275 |
-
"description": "John Doe (id: 30)",
|
276 |
-
"created": "2015-04-03T03:30:34Z",
|
277 |
-
"cards": {
|
278 |
-
"object": "list",
|
279 |
-
"from": "1970-01-01T00:00:00+00:00",
|
280 |
-
"to": "2015-04-08T10:53:32+00:00",
|
281 |
-
"offset": 0,
|
282 |
-
"limit": 20,
|
283 |
-
"total": 0,
|
284 |
-
"data": [
|
285 |
-
|
286 |
-
],
|
287 |
-
"location": "/customers/cust_test_4zkosz1vu6lofd8wnb0/cards"
|
288 |
-
}
|
289 |
-
},
|
290 |
-
{
|
291 |
-
"object": "customer",
|
292 |
-
"id": "cust_test_4zkox9519rkvsh0r53j",
|
293 |
-
"livemode": false,
|
294 |
-
"location": "/customers/cust_test_4zkox9519rkvsh0r53j",
|
295 |
-
"default_card": null,
|
296 |
-
"email": "john.doe@example.com",
|
297 |
-
"description": "John Doe (id: 30)",
|
298 |
-
"created": "2015-04-03T03:42:44Z",
|
299 |
-
"cards": {
|
300 |
-
"object": "list",
|
301 |
-
"from": "1970-01-01T00:00:00+00:00",
|
302 |
-
"to": "2015-04-08T10:53:32+00:00",
|
303 |
-
"offset": 0,
|
304 |
-
"limit": 20,
|
305 |
-
"total": 0,
|
306 |
-
"data": [
|
307 |
-
|
308 |
-
],
|
309 |
-
"location": "/customers/cust_test_4zkox9519rkvsh0r53j/cards"
|
310 |
-
}
|
311 |
-
},
|
312 |
-
{
|
313 |
-
"object": "customer",
|
314 |
-
"id": "cust_test_4zkox9l8k8q4wn1oq2f",
|
315 |
-
"livemode": false,
|
316 |
-
"location": "/customers/cust_test_4zkox9l8k8q4wn1oq2f",
|
317 |
-
"default_card": null,
|
318 |
-
"email": "john.doe@example.com",
|
319 |
-
"description": "John Doe (id: 30)",
|
320 |
-
"created": "2015-04-03T03:42:46Z",
|
321 |
-
"cards": {
|
322 |
-
"object": "list",
|
323 |
-
"from": "1970-01-01T00:00:00+00:00",
|
324 |
-
"to": "2015-04-08T10:53:32+00:00",
|
325 |
-
"offset": 0,
|
326 |
-
"limit": 20,
|
327 |
-
"total": 0,
|
328 |
-
"data": [
|
329 |
-
|
330 |
-
],
|
331 |
-
"location": "/customers/cust_test_4zkox9l8k8q4wn1oq2f/cards"
|
332 |
-
}
|
333 |
-
},
|
334 |
-
{
|
335 |
-
"object": "customer",
|
336 |
-
"id": "cust_test_4zkoxa3wvb43ra5t65r",
|
337 |
-
"livemode": false,
|
338 |
-
"location": "/customers/cust_test_4zkoxa3wvb43ra5t65r",
|
339 |
-
"default_card": null,
|
340 |
-
"email": "john.doe@example.com",
|
341 |
-
"description": "John Doe (id: 30)",
|
342 |
-
"created": "2015-04-03T03:42:48Z",
|
343 |
-
"cards": {
|
344 |
-
"object": "list",
|
345 |
-
"from": "1970-01-01T00:00:00+00:00",
|
346 |
-
"to": "2015-04-08T10:53:32+00:00",
|
347 |
-
"offset": 0,
|
348 |
-
"limit": 20,
|
349 |
-
"total": 0,
|
350 |
-
"data": [
|
351 |
-
|
352 |
-
],
|
353 |
-
"location": "/customers/cust_test_4zkoxa3wvb43ra5t65r/cards"
|
354 |
-
}
|
355 |
-
},
|
356 |
-
{
|
357 |
-
"object": "customer",
|
358 |
-
"id": "cust_test_4zkoxaoto01bhbazudc",
|
359 |
-
"livemode": false,
|
360 |
-
"location": "/customers/cust_test_4zkoxaoto01bhbazudc",
|
361 |
-
"default_card": null,
|
362 |
-
"email": "john.doe@example.com",
|
363 |
-
"description": "John Doe (id: 30)",
|
364 |
-
"created": "2015-04-03T03:42:51Z",
|
365 |
-
"cards": {
|
366 |
-
"object": "list",
|
367 |
-
"from": "1970-01-01T00:00:00+00:00",
|
368 |
-
"to": "2015-04-08T10:53:32+00:00",
|
369 |
-
"offset": 0,
|
370 |
-
"limit": 20,
|
371 |
-
"total": 0,
|
372 |
-
"data": [
|
373 |
-
|
374 |
-
],
|
375 |
-
"location": "/customers/cust_test_4zkoxaoto01bhbazudc/cards"
|
376 |
-
}
|
377 |
-
},
|
378 |
-
{
|
379 |
-
"object": "customer",
|
380 |
-
"id": "cust_test_4zkoxbryikd2cirk1qp",
|
381 |
-
"livemode": false,
|
382 |
-
"location": "/customers/cust_test_4zkoxbryikd2cirk1qp",
|
383 |
-
"default_card": null,
|
384 |
-
"email": "john.doe@example.com",
|
385 |
-
"description": "John Doe (id: 30)",
|
386 |
-
"created": "2015-04-03T03:42:56Z",
|
387 |
-
"cards": {
|
388 |
-
"object": "list",
|
389 |
-
"from": "1970-01-01T00:00:00+00:00",
|
390 |
-
"to": "2015-04-08T10:53:32+00:00",
|
391 |
-
"offset": 0,
|
392 |
-
"limit": 20,
|
393 |
-
"total": 0,
|
394 |
-
"data": [
|
395 |
-
|
396 |
-
],
|
397 |
-
"location": "/customers/cust_test_4zkoxbryikd2cirk1qp/cards"
|
398 |
-
}
|
399 |
-
},
|
400 |
-
{
|
401 |
-
"object": "customer",
|
402 |
-
"id": "cust_test_4zkoxtbj247vrt1g72a",
|
403 |
-
"livemode": false,
|
404 |
-
"location": "/customers/cust_test_4zkoxtbj247vrt1g72a",
|
405 |
-
"default_card": null,
|
406 |
-
"email": "john.doe@example.com",
|
407 |
-
"description": "John Doe (id: 30)",
|
408 |
-
"created": "2015-04-03T03:44:19Z",
|
409 |
-
"cards": {
|
410 |
-
"object": "list",
|
411 |
-
"from": "1970-01-01T00:00:00+00:00",
|
412 |
-
"to": "2015-04-08T10:53:32+00:00",
|
413 |
-
"offset": 0,
|
414 |
-
"limit": 20,
|
415 |
-
"total": 0,
|
416 |
-
"data": [
|
417 |
-
|
418 |
-
],
|
419 |
-
"location": "/customers/cust_test_4zkoxtbj247vrt1g72a/cards"
|
420 |
-
}
|
421 |
-
},
|
422 |
-
{
|
423 |
-
"object": "customer",
|
424 |
-
"id": "cust_test_4zkoxtrhnvn9vq52eva",
|
425 |
-
"livemode": false,
|
426 |
-
"location": "/customers/cust_test_4zkoxtrhnvn9vq52eva",
|
427 |
-
"default_card": null,
|
428 |
-
"email": "john.doe@example.com",
|
429 |
-
"description": "John Doe (id: 30)",
|
430 |
-
"created": "2015-04-03T03:44:22Z",
|
431 |
-
"cards": {
|
432 |
-
"object": "list",
|
433 |
-
"from": "1970-01-01T00:00:00+00:00",
|
434 |
-
"to": "2015-04-08T10:53:32+00:00",
|
435 |
-
"offset": 0,
|
436 |
-
"limit": 20,
|
437 |
-
"total": 0,
|
438 |
-
"data": [
|
439 |
-
|
440 |
-
],
|
441 |
-
"location": "/customers/cust_test_4zkoxtrhnvn9vq52eva/cards"
|
442 |
-
}
|
443 |
-
},
|
444 |
-
{
|
445 |
-
"object": "customer",
|
446 |
-
"id": "cust_test_4zkoxua54knkla9o8c8",
|
447 |
-
"livemode": false,
|
448 |
-
"location": "/customers/cust_test_4zkoxua54knkla9o8c8",
|
449 |
-
"default_card": null,
|
450 |
-
"email": "john.doe@example.com",
|
451 |
-
"description": "John Doe (id: 30)",
|
452 |
-
"created": "2015-04-03T03:44:24Z",
|
453 |
-
"cards": {
|
454 |
-
"object": "list",
|
455 |
-
"from": "1970-01-01T00:00:00+00:00",
|
456 |
-
"to": "2015-04-08T10:53:32+00:00",
|
457 |
-
"offset": 0,
|
458 |
-
"limit": 20,
|
459 |
-
"total": 0,
|
460 |
-
"data": [
|
461 |
-
|
462 |
-
],
|
463 |
-
"location": "/customers/cust_test_4zkoxua54knkla9o8c8/cards"
|
464 |
-
}
|
465 |
-
}
|
466 |
-
]
|
467 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/customers-post.json
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "customer",
|
3 |
-
"id": "cust_test_4zmrjg2hct06ybwobqc",
|
4 |
-
"livemode": false,
|
5 |
-
"location": "/customers/cust_test_4zmrjg2hct06ybwobqc",
|
6 |
-
"default_card": "card_test_4zmrjfzf0spz3mh63cs",
|
7 |
-
"email": "john.doe@example.com",
|
8 |
-
"description": "John Doe (id: 30)",
|
9 |
-
"created": "2015-04-08T10:53:33Z",
|
10 |
-
"cards": {
|
11 |
-
"object": "list",
|
12 |
-
"from": "1970-01-01T00:00:00+00:00",
|
13 |
-
"to": "2015-04-08T10:53:33+00:00",
|
14 |
-
"offset": 0,
|
15 |
-
"limit": 20,
|
16 |
-
"total": 1,
|
17 |
-
"data": [
|
18 |
-
{
|
19 |
-
"object": "card",
|
20 |
-
"id": "card_test_4zmrjfzf0spz3mh63cs",
|
21 |
-
"livemode": false,
|
22 |
-
"location": "/customers/cust_test_4zmrjg2hct06ybwobqc/cards/card_test_4zmrjfzf0spz3mh63cs",
|
23 |
-
"country": "us",
|
24 |
-
"city": "Bangkok",
|
25 |
-
"postal_code": "10320",
|
26 |
-
"financing": "",
|
27 |
-
"last_digits": "4242",
|
28 |
-
"brand": "Visa",
|
29 |
-
"expiration_month": 10,
|
30 |
-
"expiration_year": 2018,
|
31 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
32 |
-
"name": "Somchai Prasert",
|
33 |
-
"security_code_check": true,
|
34 |
-
"created": "2015-04-08T10:53:33Z"
|
35 |
-
}
|
36 |
-
],
|
37 |
-
"location": "/customers/cust_test_4zmrjg2hct06ybwobqc/cards"
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/customers/cust_test_4zmrjg2hct06ybwobqc-delete.json
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "customer",
|
3 |
-
"id": "cust_test_4zmrjg2hct06ybwobqc",
|
4 |
-
"livemode": false,
|
5 |
-
"deleted": true
|
6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/customers/cust_test_4zmrjg2hct06ybwobqc-get.json
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "customer",
|
3 |
-
"id": "cust_test_4zmrjg2hct06ybwobqc",
|
4 |
-
"livemode": false,
|
5 |
-
"location": "/customers/cust_test_4zmrjg2hct06ybwobqc",
|
6 |
-
"default_card": "card_test_4zmrjfpyqg3f0ygdnwz",
|
7 |
-
"email": "john.doe@example.com",
|
8 |
-
"description": "John Doe (id: 30)",
|
9 |
-
"created": "2015-04-08T10:53:32Z",
|
10 |
-
"cards": {
|
11 |
-
"object": "list",
|
12 |
-
"from": "1970-01-01T00:00:00+00:00",
|
13 |
-
"to": "2015-04-08T10:53:34+00:00",
|
14 |
-
"offset": 0,
|
15 |
-
"limit": 20,
|
16 |
-
"total": 1,
|
17 |
-
"data": [
|
18 |
-
{
|
19 |
-
"object": "card",
|
20 |
-
"id": "card_test_4zmrjfpyqg3f0ygdnwz",
|
21 |
-
"livemode": false,
|
22 |
-
"location": "/customers/cust_test_4zmrjg2hct06ybwobqc/cards/card_test_4zmrjfpyqg3f0ygdnwz",
|
23 |
-
"country": "us",
|
24 |
-
"city": "Bangkok",
|
25 |
-
"postal_code": "10320",
|
26 |
-
"financing": "",
|
27 |
-
"last_digits": "1111",
|
28 |
-
"brand": "Visa",
|
29 |
-
"expiration_month": 10,
|
30 |
-
"expiration_year": 2018,
|
31 |
-
"fingerprint": "zoT22qQjIGifavlKMASVVJ7+XsEBwVd4PzEL3zqs6eA=",
|
32 |
-
"name": "Somchai Prasert",
|
33 |
-
"security_code_check": true,
|
34 |
-
"created": "2015-04-08T10:53:31Z"
|
35 |
-
}
|
36 |
-
],
|
37 |
-
"location": "/customers/cust_test_4zmrjg2hct06ybwobqc/cards"
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/customers/cust_test_4zmrjg2hct06ybwobqc-patch.json
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "customer",
|
3 |
-
"id": "cust_test_4zmrjg2hct06ybwobqc",
|
4 |
-
"livemode": false,
|
5 |
-
"location": "/customers/cust_test_4zmrjg2hct06ybwobqc",
|
6 |
-
"default_card": "card_test_4zmrjfpyqg3f0ygdnwz",
|
7 |
-
"email": "john.smith@example.com",
|
8 |
-
"description": "Another description",
|
9 |
-
"created": "2015-04-08T10:53:32Z",
|
10 |
-
"cards": {
|
11 |
-
"object": "list",
|
12 |
-
"from": "1970-01-01T00:00:00+00:00",
|
13 |
-
"to": "2015-04-08T10:53:35+00:00",
|
14 |
-
"offset": 0,
|
15 |
-
"limit": 20,
|
16 |
-
"total": 1,
|
17 |
-
"data": [
|
18 |
-
{
|
19 |
-
"object": "card",
|
20 |
-
"id": "card_test_4zmrjfpyqg3f0ygdnwz",
|
21 |
-
"livemode": false,
|
22 |
-
"location": "/customers/cust_test_4zmrjg2hct06ybwobqc/cards/card_test_4zmrjfpyqg3f0ygdnwz",
|
23 |
-
"country": "us",
|
24 |
-
"city": "Bangkok",
|
25 |
-
"postal_code": "10320",
|
26 |
-
"financing": "",
|
27 |
-
"last_digits": "1111",
|
28 |
-
"brand": "Visa",
|
29 |
-
"expiration_month": 10,
|
30 |
-
"expiration_year": 2018,
|
31 |
-
"fingerprint": "zoT22qQjIGifavlKMASVVJ7+XsEBwVd4PzEL3zqs6eA=",
|
32 |
-
"name": "Somchai Prasert",
|
33 |
-
"security_code_check": true,
|
34 |
-
"created": "2015-04-08T10:53:31Z"
|
35 |
-
}
|
36 |
-
],
|
37 |
-
"location": "/customers/cust_test_4zmrjg2hct06ybwobqc/cards"
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/customers/cust_test_4zmrjg2hct06ybwobqc/cards/card_test_4zmrjfzf0spz3mh63cs-delete.json
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "card",
|
3 |
-
"id": "card_test_4zmrjfzf0spz3mh63cs",
|
4 |
-
"livemode": false,
|
5 |
-
"deleted": true
|
6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/customers/cust_test_4zmrjg2hct06ybwobqc/cards/card_test_4zmrjfzf0spz3mh63cs-get.json
DELETED
@@ -1,18 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "card",
|
3 |
-
"id": "card_test_4zmrjfzf0spz3mh63cs",
|
4 |
-
"livemode": false,
|
5 |
-
"location": "/customers/cust_test_4zmrjd5aa0timiwo7y7/cards/card_test_4zmrjfzf0spz3mh63cs",
|
6 |
-
"country": "us",
|
7 |
-
"city": "Bangkok",
|
8 |
-
"postal_code": "10320",
|
9 |
-
"financing": "",
|
10 |
-
"last_digits": "1111",
|
11 |
-
"brand": "Visa",
|
12 |
-
"expiration_month": 10,
|
13 |
-
"expiration_year": 2018,
|
14 |
-
"fingerprint": "zoT22qQjIGifavlKMASVVJ7+XsEBwVd4PzEL3zqs6eA=",
|
15 |
-
"name": "Somchai Prasert",
|
16 |
-
"security_code_check": true,
|
17 |
-
"created": "2015-04-08T10:53:19Z"
|
18 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/customers/cust_test_4zmrjg2hct06ybwobqc/cards/card_test_4zmrjfzf0spz3mh63cs-patch.json
DELETED
@@ -1,18 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "card",
|
3 |
-
"id": "card_test_4zmrjfzf0spz3mh63cs",
|
4 |
-
"livemode": false,
|
5 |
-
"location": "/customers/cust_test_4zmrjdsl9hs10oepm0t/cards/card_test_4zmrjfzf0spz3mh63cs",
|
6 |
-
"country": "us",
|
7 |
-
"city": "Bangkok",
|
8 |
-
"postal_code": "10310",
|
9 |
-
"financing": "",
|
10 |
-
"last_digits": "1111",
|
11 |
-
"brand": "Visa",
|
12 |
-
"expiration_month": 11,
|
13 |
-
"expiration_year": 2017,
|
14 |
-
"fingerprint": "zoT22qQjIGifavlKMASVVJ7+XsEBwVd4PzEL3zqs6eA=",
|
15 |
-
"name": "Somchai Praset",
|
16 |
-
"security_code_check": true,
|
17 |
-
"created": "2015-04-08T10:53:22Z"
|
18 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/disputes-get.json
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "list",
|
3 |
-
"from": "1970-01-01T00:00:00+00:00",
|
4 |
-
"to": "2015-06-22T11:14:12+00:00",
|
5 |
-
"offset": 0,
|
6 |
-
"limit": 20,
|
7 |
-
"total": 0,
|
8 |
-
"data": [
|
9 |
-
{
|
10 |
-
"object": "dispute",
|
11 |
-
"id": "dspt_test_4zgf15h89w8t775kcm8",
|
12 |
-
"livemode": false,
|
13 |
-
"location": "/disputes/dspt_test_4zgf15h89w8t775kcm8",
|
14 |
-
"amount": 100000,
|
15 |
-
"currency": "thb",
|
16 |
-
"status": "pending",
|
17 |
-
"message": "This is an unauthorized transaction",
|
18 |
-
"charge": "chrg_test_4zgcsiv4s6ewsy8nrw3",
|
19 |
-
"created": "2015-03-23T05:24:39Z"
|
20 |
-
}
|
21 |
-
]
|
22 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/disputes/closed-get.json
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "list",
|
3 |
-
"from": "1970-01-01T00:00:00+00:00",
|
4 |
-
"to": "2015-06-22T11:35:50+00:00",
|
5 |
-
"offset": 0,
|
6 |
-
"limit": 20,
|
7 |
-
"total": 0,
|
8 |
-
"data": [
|
9 |
-
{
|
10 |
-
"object": "dispute",
|
11 |
-
"id": "dspt_test_4zgf15h89w8t775kcm8",
|
12 |
-
"livemode": false,
|
13 |
-
"location": "/disputes/dspt_test_4zgf15h89w8t775kcm8",
|
14 |
-
"amount": 100000,
|
15 |
-
"currency": "thb",
|
16 |
-
"status": "closed",
|
17 |
-
"message": "This is an unauthorized transaction",
|
18 |
-
"charge": "chrg_test_4zgcsiv4s6ewsy8nrw3",
|
19 |
-
"created": "2015-03-23T05:24:39Z"
|
20 |
-
}
|
21 |
-
]
|
22 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/disputes/dspt_test_4zgf15h89w8t775kcm8-get.json
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "dispute",
|
3 |
-
"id": "dspt_test_4zgf15h89w8t775kcm8",
|
4 |
-
"livemode": false,
|
5 |
-
"location": "/disputes/dspt_test_4zgf15h89w8t775kcm8",
|
6 |
-
"amount": 100000,
|
7 |
-
"currency": "thb",
|
8 |
-
"status": "pending",
|
9 |
-
"message": "This is an unauthorized transaction",
|
10 |
-
"charge": "chrg_test_4zgcsiv4s6ewsy8nrw3",
|
11 |
-
"created": "2015-03-23T05:24:39Z"
|
12 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/disputes/dspt_test_4zgf15h89w8t775kcm8-patch.json
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "dispute",
|
3 |
-
"id": "dspt_test_4zgf15h89w8t775kcm8",
|
4 |
-
"livemode": false,
|
5 |
-
"location": "/disputes/dspt_test_4zgf15h89w8t775kcm8",
|
6 |
-
"amount": 100000,
|
7 |
-
"currency": "thb",
|
8 |
-
"status": "pending",
|
9 |
-
"message": "New Message",
|
10 |
-
"charge": "chrg_test_4zgcsiv4s6ewsy8nrw3",
|
11 |
-
"created": "2015-03-23T05:24:39Z"
|
12 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/disputes/open-get.json
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "list",
|
3 |
-
"from": "1970-01-01T00:00:00+00:00",
|
4 |
-
"to": "2015-06-22T11:30:04+00:00",
|
5 |
-
"offset": 0,
|
6 |
-
"limit": 20,
|
7 |
-
"total": 0,
|
8 |
-
"data": [
|
9 |
-
{
|
10 |
-
"object": "dispute",
|
11 |
-
"id": "dspt_test_4zgf15h89w8t775kcm8",
|
12 |
-
"livemode": false,
|
13 |
-
"location": "/disputes/dspt_test_4zgf15h89w8t775kcm8",
|
14 |
-
"amount": 100000,
|
15 |
-
"currency": "thb",
|
16 |
-
"status": "open",
|
17 |
-
"message": "This is an unauthorized transaction",
|
18 |
-
"charge": "chrg_test_4zgcsiv4s6ewsy8nrw3",
|
19 |
-
"created": "2015-03-23T05:24:39Z"
|
20 |
-
}
|
21 |
-
]
|
22 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/disputes/pending-get.json
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "list",
|
3 |
-
"from": "1970-01-01T00:00:00+00:00",
|
4 |
-
"to": "2015-06-22T11:35:30+00:00",
|
5 |
-
"offset": 0,
|
6 |
-
"limit": 20,
|
7 |
-
"total": 0,
|
8 |
-
"data": [
|
9 |
-
{
|
10 |
-
"object": "dispute",
|
11 |
-
"id": "dspt_test_4zgf15h89w8t775kcm8",
|
12 |
-
"livemode": false,
|
13 |
-
"location": "/disputes/dspt_test_4zgf15h89w8t775kcm8",
|
14 |
-
"amount": 100000,
|
15 |
-
"currency": "thb",
|
16 |
-
"status": "pending",
|
17 |
-
"message": "This is an unauthorized transaction",
|
18 |
-
"charge": "chrg_test_4zgcsiv4s6ewsy8nrw3",
|
19 |
-
"created": "2015-03-23T05:24:39Z"
|
20 |
-
}
|
21 |
-
]
|
22 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/recipients-get.json
DELETED
@@ -1,33 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "list",
|
3 |
-
"from": "1970-01-01T00:00:00+00:00",
|
4 |
-
"to": "2015-06-02T08:16:36+00:00",
|
5 |
-
"offset": 0,
|
6 |
-
"limit": 20,
|
7 |
-
"total": 1,
|
8 |
-
"data": [
|
9 |
-
{
|
10 |
-
"object": "recipient",
|
11 |
-
"id": "recp_test_506zyw920w15czmfsuk",
|
12 |
-
"livemode": false,
|
13 |
-
"location": "/recipients/recp_test_506zyw920w15czmfsuk",
|
14 |
-
"verified": true,
|
15 |
-
"active": true,
|
16 |
-
"name": "iam.nuttanon@gmail.com",
|
17 |
-
"email": "iam.nuttanon@gmail.com",
|
18 |
-
"description": "Default recipient",
|
19 |
-
"type": "individual",
|
20 |
-
"tax_id": "",
|
21 |
-
"bank_account": {
|
22 |
-
"object": "bank_account",
|
23 |
-
"brand": "test",
|
24 |
-
"last_digits": "6789",
|
25 |
-
"name": "DEFAULT BANK ACCOUNT",
|
26 |
-
"created": "2015-05-30T04:27:59Z"
|
27 |
-
},
|
28 |
-
"failure_code": null,
|
29 |
-
"created": "2015-05-30T04:27:59Z"
|
30 |
-
}
|
31 |
-
],
|
32 |
-
"location": "/recipients"
|
33 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/recipients-post.json
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "recipient",
|
3 |
-
"id": "recp_test_508a9dytz793gxv9m77",
|
4 |
-
"livemode": false,
|
5 |
-
"location": "/recipients/recp_test_508a9dytz793gxv9m77",
|
6 |
-
"verified": false,
|
7 |
-
"active": false,
|
8 |
-
"name": "Nuttanon T",
|
9 |
-
"email": "nam@omise.co",
|
10 |
-
"description": "Nuttanon T's account",
|
11 |
-
"type": "individual",
|
12 |
-
"tax_id": "",
|
13 |
-
"bank_account": {
|
14 |
-
"object": "bank_account",
|
15 |
-
"brand": "scb",
|
16 |
-
"last_digits": "7890",
|
17 |
-
"name": "Nuttanon T",
|
18 |
-
"created": "2015-06-02T11:22:05Z"
|
19 |
-
},
|
20 |
-
"failure_code": null,
|
21 |
-
"created": "2015-06-02T11:22:05Z"
|
22 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/recipients/recp_test_508a9dytz793gxv9m77-delete.json
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "recipient",
|
3 |
-
"id": "recp_test_508a9dytz793gxv9m77",
|
4 |
-
"livemode": false,
|
5 |
-
"deleted": true
|
6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/recipients/recp_test_508a9dytz793gxv9m77-get.json
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "recipient",
|
3 |
-
"id": "recp_test_508a9dytz793gxv9m77",
|
4 |
-
"livemode": false,
|
5 |
-
"location": "/recipients/recp_test_508a9dytz793gxv9m77",
|
6 |
-
"verified": false,
|
7 |
-
"active": false,
|
8 |
-
"name": "Nuttanon T",
|
9 |
-
"email": "nam@omise.co",
|
10 |
-
"description": "Nuttanon T's account",
|
11 |
-
"type": "individual",
|
12 |
-
"tax_id": "",
|
13 |
-
"bank_account": {
|
14 |
-
"object": "bank_account",
|
15 |
-
"brand": "scb",
|
16 |
-
"last_digits": "7890",
|
17 |
-
"name": "Nuttanon T",
|
18 |
-
"created": "2015-06-02T11:22:05Z"
|
19 |
-
},
|
20 |
-
"failure_code": null,
|
21 |
-
"created": "2015-06-02T11:22:05Z"
|
22 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/recipients/recp_test_508a9dytz793gxv9m77-patch.json
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "recipient",
|
3 |
-
"id": "recp_test_508a9dytz793gxv9m77",
|
4 |
-
"livemode": false,
|
5 |
-
"location": "/recipients/recp_test_508a9dytz793gxv9m77",
|
6 |
-
"verified": false,
|
7 |
-
"active": false,
|
8 |
-
"name": "Nuttanon Tra",
|
9 |
-
"email": "nam@omise.co",
|
10 |
-
"description": "Another description",
|
11 |
-
"type": "individual",
|
12 |
-
"tax_id": "",
|
13 |
-
"bank_account": {
|
14 |
-
"object": "bank_account",
|
15 |
-
"brand": "scb",
|
16 |
-
"last_digits": "7890",
|
17 |
-
"name": "Nuttanon T",
|
18 |
-
"created": "2015-06-02T11:22:05Z"
|
19 |
-
},
|
20 |
-
"failure_code": null,
|
21 |
-
"created": "2015-06-02T11:22:05Z"
|
22 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/transactions-get.json
DELETED
@@ -1,170 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "list",
|
3 |
-
"from": "1970-01-01T00:00:00+00:00",
|
4 |
-
"to": "2015-04-08T10:53:43+00:00",
|
5 |
-
"offset": 0,
|
6 |
-
"limit": 20,
|
7 |
-
"total": 113,
|
8 |
-
"data": [
|
9 |
-
{
|
10 |
-
"object": "transaction",
|
11 |
-
"id": "trxn_test_4zmrjhlflnz6id6q0bo",
|
12 |
-
"type": "debit",
|
13 |
-
"amount": 10000,
|
14 |
-
"currency": "THB",
|
15 |
-
"created": "2015-04-08T10:53:40Z"
|
16 |
-
},
|
17 |
-
{
|
18 |
-
"object": "transaction",
|
19 |
-
"id": "trxn_test_4zmrjhccfigwe9a3xfe",
|
20 |
-
"type": "debit",
|
21 |
-
"amount": 10000,
|
22 |
-
"currency": "THB",
|
23 |
-
"created": "2015-04-08T10:53:39Z"
|
24 |
-
},
|
25 |
-
{
|
26 |
-
"object": "transaction",
|
27 |
-
"id": "trxn_test_4zmrjgxww057xi0wbh9",
|
28 |
-
"type": "credit",
|
29 |
-
"amount": 96094,
|
30 |
-
"currency": "THB",
|
31 |
-
"created": "2015-04-08T10:53:37Z"
|
32 |
-
},
|
33 |
-
{
|
34 |
-
"object": "transaction",
|
35 |
-
"id": "trxn_test_4zmrjfmyx1ax70sx0rb",
|
36 |
-
"type": "credit",
|
37 |
-
"amount": 96094,
|
38 |
-
"currency": "THB",
|
39 |
-
"created": "2015-04-08T10:53:31Z"
|
40 |
-
},
|
41 |
-
{
|
42 |
-
"object": "transaction",
|
43 |
-
"id": "trxn_test_4zmrjf8w7onx16ma04k",
|
44 |
-
"type": "credit",
|
45 |
-
"amount": 96094,
|
46 |
-
"currency": "THB",
|
47 |
-
"created": "2015-04-08T10:53:29Z"
|
48 |
-
},
|
49 |
-
{
|
50 |
-
"object": "transaction",
|
51 |
-
"id": "trxn_test_4zmrie79ct7u0vairmc",
|
52 |
-
"type": "debit",
|
53 |
-
"amount": 10000,
|
54 |
-
"currency": "THB",
|
55 |
-
"created": "2015-04-08T10:50:34Z"
|
56 |
-
},
|
57 |
-
{
|
58 |
-
"object": "transaction",
|
59 |
-
"id": "trxn_test_4zmridyay8zm0ky28he",
|
60 |
-
"type": "debit",
|
61 |
-
"amount": 10000,
|
62 |
-
"currency": "THB",
|
63 |
-
"created": "2015-04-08T10:50:33Z"
|
64 |
-
},
|
65 |
-
{
|
66 |
-
"object": "transaction",
|
67 |
-
"id": "trxn_test_4zmriddz9aktfmknmvk",
|
68 |
-
"type": "credit",
|
69 |
-
"amount": 96094,
|
70 |
-
"currency": "THB",
|
71 |
-
"created": "2015-04-08T10:50:30Z"
|
72 |
-
},
|
73 |
-
{
|
74 |
-
"object": "transaction",
|
75 |
-
"id": "trxn_test_4zmricb4gkydqbr4s9g",
|
76 |
-
"type": "credit",
|
77 |
-
"amount": 96094,
|
78 |
-
"currency": "THB",
|
79 |
-
"created": "2015-04-08T10:50:25Z"
|
80 |
-
},
|
81 |
-
{
|
82 |
-
"object": "transaction",
|
83 |
-
"id": "trxn_test_4zmribu1dr5ccs4teoo",
|
84 |
-
"type": "credit",
|
85 |
-
"amount": 96094,
|
86 |
-
"currency": "THB",
|
87 |
-
"created": "2015-04-08T10:50:23Z"
|
88 |
-
},
|
89 |
-
{
|
90 |
-
"object": "transaction",
|
91 |
-
"id": "trxn_test_4zmrhw3ksajfl7gjyos",
|
92 |
-
"type": "debit",
|
93 |
-
"amount": 10000,
|
94 |
-
"currency": "THB",
|
95 |
-
"created": "2015-04-08T10:49:08Z"
|
96 |
-
},
|
97 |
-
{
|
98 |
-
"object": "transaction",
|
99 |
-
"id": "trxn_test_4zmrhvuua0ds0lxc48b",
|
100 |
-
"type": "debit",
|
101 |
-
"amount": 10000,
|
102 |
-
"currency": "THB",
|
103 |
-
"created": "2015-04-08T10:49:07Z"
|
104 |
-
},
|
105 |
-
{
|
106 |
-
"object": "transaction",
|
107 |
-
"id": "trxn_test_4zmrhvgvoztvkzw14fk",
|
108 |
-
"type": "credit",
|
109 |
-
"amount": 96094,
|
110 |
-
"currency": "THB",
|
111 |
-
"created": "2015-04-08T10:49:05Z"
|
112 |
-
},
|
113 |
-
{
|
114 |
-
"object": "transaction",
|
115 |
-
"id": "trxn_test_4zmrhuf5hrmygs2htem",
|
116 |
-
"type": "credit",
|
117 |
-
"amount": 96094,
|
118 |
-
"currency": "THB",
|
119 |
-
"created": "2015-04-08T10:49:00Z"
|
120 |
-
},
|
121 |
-
{
|
122 |
-
"object": "transaction",
|
123 |
-
"id": "trxn_test_4zmrhu0am339jfipuc2",
|
124 |
-
"type": "credit",
|
125 |
-
"amount": 96094,
|
126 |
-
"currency": "THB",
|
127 |
-
"created": "2015-04-08T10:48:58Z"
|
128 |
-
},
|
129 |
-
{
|
130 |
-
"object": "transaction",
|
131 |
-
"id": "trxn_test_4zmrh68sphog5bvdkm9",
|
132 |
-
"type": "debit",
|
133 |
-
"amount": 10000,
|
134 |
-
"currency": "THB",
|
135 |
-
"created": "2015-04-08T10:47:06Z"
|
136 |
-
},
|
137 |
-
{
|
138 |
-
"object": "transaction",
|
139 |
-
"id": "trxn_test_4zmrh601etaxv91ab7c",
|
140 |
-
"type": "debit",
|
141 |
-
"amount": 10000,
|
142 |
-
"currency": "THB",
|
143 |
-
"created": "2015-04-08T10:47:04Z"
|
144 |
-
},
|
145 |
-
{
|
146 |
-
"object": "transaction",
|
147 |
-
"id": "trxn_test_4zmrh5l866on45evmic",
|
148 |
-
"type": "credit",
|
149 |
-
"amount": 96094,
|
150 |
-
"currency": "THB",
|
151 |
-
"created": "2015-04-08T10:47:02Z"
|
152 |
-
},
|
153 |
-
{
|
154 |
-
"object": "transaction",
|
155 |
-
"id": "trxn_test_4zmrh4jlrff058nykkk",
|
156 |
-
"type": "credit",
|
157 |
-
"amount": 96094,
|
158 |
-
"currency": "THB",
|
159 |
-
"created": "2015-04-08T10:46:58Z"
|
160 |
-
},
|
161 |
-
{
|
162 |
-
"object": "transaction",
|
163 |
-
"id": "trxn_test_4zmrh44hbntbfemb5ka",
|
164 |
-
"type": "credit",
|
165 |
-
"amount": 96094,
|
166 |
-
"currency": "THB",
|
167 |
-
"created": "2015-04-08T10:46:56Z"
|
168 |
-
}
|
169 |
-
]
|
170 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/transactions/trxn_test_4zmrjhlflnz6id6q0bo-get.json
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "transaction",
|
3 |
-
"id": "trxn_test_4zmrjhlflnz6id6q0bo",
|
4 |
-
"type": "debit",
|
5 |
-
"amount": 10000,
|
6 |
-
"currency": "THB",
|
7 |
-
"created": "2015-04-08T10:53:40Z"
|
8 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/transfers-get.json
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "list",
|
3 |
-
"from": "1970-01-01T00:00:00+00:00",
|
4 |
-
"to": "2015-04-08T10:53:43+00:00",
|
5 |
-
"offset": 0,
|
6 |
-
"limit": 20,
|
7 |
-
"total": 2,
|
8 |
-
"data": [
|
9 |
-
{
|
10 |
-
"object": "transfer",
|
11 |
-
"id": "trsf_test_4zmperr494587f4jrby",
|
12 |
-
"livemode": false,
|
13 |
-
"location": "/transfers/trsf_test_4zmperr494587f4jrby",
|
14 |
-
"sent": true,
|
15 |
-
"paid": true,
|
16 |
-
"amount": 100000,
|
17 |
-
"currency": "thb",
|
18 |
-
"failure_code": null,
|
19 |
-
"failure_message": null,
|
20 |
-
"transaction": "trxn_test_4zmpmw0o8l8e99tuk0s",
|
21 |
-
"created": "2015-04-08T07:15:44Z"
|
22 |
-
},
|
23 |
-
{
|
24 |
-
"object": "transfer",
|
25 |
-
"id": "trsf_test_4zmqxvlmqdr7roihajb",
|
26 |
-
"livemode": false,
|
27 |
-
"location": "/transfers/trsf_test_4zmqxvlmqdr7roihajb",
|
28 |
-
"sent": true,
|
29 |
-
"paid": true,
|
30 |
-
"amount": 100000,
|
31 |
-
"currency": "thb",
|
32 |
-
"failure_code": null,
|
33 |
-
"failure_message": null,
|
34 |
-
"transaction": "trxn_test_4zmrgsbbo24hradpqgn",
|
35 |
-
"created": "2015-04-08T09:52:17Z"
|
36 |
-
}
|
37 |
-
]
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/transfers-post.json
DELETED
@@ -1,14 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "transfer",
|
3 |
-
"id": "trsf_test_4zmrjicrvw7j6uhv1l4",
|
4 |
-
"livemode": false,
|
5 |
-
"location": "/transfers/trsf_test_4zmrjicrvw7j6uhv1l4",
|
6 |
-
"sent": false,
|
7 |
-
"paid": false,
|
8 |
-
"amount": 100000,
|
9 |
-
"currency": "thb",
|
10 |
-
"failure_code": null,
|
11 |
-
"failure_message": null,
|
12 |
-
"transaction": null,
|
13 |
-
"created": "2015-04-08T10:53:44Z"
|
14 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/transfers/trsf_test_4zmrjicrvw7j6uhv1l4-delete.json
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "transfer",
|
3 |
-
"id": "trsf_test_4zmrjicrvw7j6uhv1l4",
|
4 |
-
"livemode": false,
|
5 |
-
"deleted": true
|
6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/transfers/trsf_test_4zmrjicrvw7j6uhv1l4-get.json
DELETED
@@ -1,14 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "transfer",
|
3 |
-
"id": "trsf_test_4zmrjicrvw7j6uhv1l4",
|
4 |
-
"livemode": false,
|
5 |
-
"location": "/transfers/trsf_test_4zmrjicrvw7j6uhv1l4",
|
6 |
-
"sent": false,
|
7 |
-
"paid": false,
|
8 |
-
"amount": 100000,
|
9 |
-
"currency": "thb",
|
10 |
-
"failure_code": null,
|
11 |
-
"failure_message": null,
|
12 |
-
"transaction": null,
|
13 |
-
"created": "2015-04-08T10:53:44Z"
|
14 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/api.omise.co/transfers/trsf_test_4zmrjicrvw7j6uhv1l4-patch.json
DELETED
@@ -1,14 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "transfer",
|
3 |
-
"id": "trsf_test_4zmrjicrvw7j6uhv1l4",
|
4 |
-
"livemode": false,
|
5 |
-
"location": "/transfers/trsf_test_4zmrjicrvw7j6uhv1l4",
|
6 |
-
"sent": false,
|
7 |
-
"paid": false,
|
8 |
-
"amount": 5000,
|
9 |
-
"currency": "thb",
|
10 |
-
"failure_code": null,
|
11 |
-
"failure_message": null,
|
12 |
-
"transaction": null,
|
13 |
-
"created": "2015-04-08T10:53:44Z"
|
14 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/vault.omise.co/tokens-post.json
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "token",
|
3 |
-
"id": "tokn_test_4zmrjhuk2rndz24a6x0",
|
4 |
-
"livemode": false,
|
5 |
-
"location": "https://vault.omise.co/tokens/tokn_test_4zmrjhuk2rndz24a6x0",
|
6 |
-
"used": false,
|
7 |
-
"card": {
|
8 |
-
"object": "card",
|
9 |
-
"id": "card_test_4zmrjhuie0wwy6sg86f",
|
10 |
-
"livemode": false,
|
11 |
-
"country": "us",
|
12 |
-
"city": "Bangkok",
|
13 |
-
"postal_code": "10320",
|
14 |
-
"financing": "",
|
15 |
-
"last_digits": "4242",
|
16 |
-
"brand": "Visa",
|
17 |
-
"expiration_month": 10,
|
18 |
-
"expiration_year": 2018,
|
19 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
20 |
-
"name": "Somchai Prasert",
|
21 |
-
"security_code_check": true,
|
22 |
-
"created": "2015-04-08T10:53:41Z"
|
23 |
-
},
|
24 |
-
"created": "2015-04-08T10:53:41Z"
|
25 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/fixtures/vault.omise.co/tokens/tokn_test_4zmrjhuk2rndz24a6x0-get.json
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"object": "token",
|
3 |
-
"id": "tokn_test_4zmrjhuk2rndz24a6x0",
|
4 |
-
"livemode": false,
|
5 |
-
"location": "https://vault.omise.co/tokens/tokn_test_4zmrjhuk2rndz24a6x0",
|
6 |
-
"used": false,
|
7 |
-
"card": {
|
8 |
-
"object": "card",
|
9 |
-
"id": "card_test_4zmrjhuie0wwy6sg86f",
|
10 |
-
"livemode": false,
|
11 |
-
"country": "us",
|
12 |
-
"city": "Bangkok",
|
13 |
-
"postal_code": "10320",
|
14 |
-
"financing": "",
|
15 |
-
"last_digits": "4242",
|
16 |
-
"brand": "Visa",
|
17 |
-
"expiration_month": 10,
|
18 |
-
"expiration_year": 2018,
|
19 |
-
"fingerprint": "pvtmjojEaHi3y880wV/485z1dVNhASL4xCrxSlsCLBw=",
|
20 |
-
"name": "Somchai Prasert",
|
21 |
-
"security_code_check": true,
|
22 |
-
"created": "2015-04-08T10:53:41Z"
|
23 |
-
},
|
24 |
-
"created": "2015-04-08T10:53:41Z"
|
25 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/omise/AccountTest.php
DELETED
@@ -1,36 +0,0 @@
|
|
1 |
-
<?php require_once dirname(__FILE__).'/TestConfig.php';
|
2 |
-
|
3 |
-
class OmiseAccountTest extends TestConfig {
|
4 |
-
/**
|
5 |
-
* OmiseAccount class must be contain some method below.
|
6 |
-
*
|
7 |
-
*/
|
8 |
-
public function testMethodExists() {
|
9 |
-
$this->assertTrue(method_exists('OmiseAccount', 'retrieve'));
|
10 |
-
$this->assertTrue(method_exists('OmiseAccount', 'reload'));
|
11 |
-
$this->assertTrue(method_exists('OmiseAccount', 'getUrl'));
|
12 |
-
}
|
13 |
-
|
14 |
-
/**
|
15 |
-
* Assert that an account object is returned after a successful retrieve.
|
16 |
-
*
|
17 |
-
*/
|
18 |
-
public function testRetrieveOmiseAccountObject() {
|
19 |
-
$account = OmiseAccount::retrieve();
|
20 |
-
|
21 |
-
$this->assertArrayHasKey('object', $account);
|
22 |
-
$this->assertEquals('account', $account['object']);
|
23 |
-
}
|
24 |
-
|
25 |
-
/**
|
26 |
-
* Assert that an account object is returned after a successful reload.
|
27 |
-
*
|
28 |
-
*/
|
29 |
-
public function testReload() {
|
30 |
-
$account = OmiseAccount::retrieve();
|
31 |
-
$account->reload();
|
32 |
-
|
33 |
-
$this->assertArrayHasKey('object', $account);
|
34 |
-
$this->assertEquals('account', $account['object']);
|
35 |
-
}
|
36 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/omise/BalanceTest.php
DELETED
@@ -1,36 +0,0 @@
|
|
1 |
-
<?php require_once dirname(__FILE__).'/TestConfig.php';
|
2 |
-
|
3 |
-
class OmiseBalanceTest extends TestConfig {
|
4 |
-
/**
|
5 |
-
* OmiseBalance class must be contain some method below.
|
6 |
-
*
|
7 |
-
*/
|
8 |
-
public function testMethodExists() {
|
9 |
-
$this->assertTrue(method_exists('OmiseBalance', 'retrieve'));
|
10 |
-
$this->assertTrue(method_exists('OmiseBalance', 'reload'));
|
11 |
-
$this->assertTrue(method_exists('OmiseBalance', 'getUrl'));
|
12 |
-
}
|
13 |
-
|
14 |
-
/**
|
15 |
-
* Assert that a balance object is returned after a successful retrieve.
|
16 |
-
*
|
17 |
-
*/
|
18 |
-
public function testRetrieveOmiseBalanceObject() {
|
19 |
-
$balance = OmiseBalance::retrieve();
|
20 |
-
|
21 |
-
$this->assertArrayHasKey('object', $balance);
|
22 |
-
$this->assertEquals('balance', $balance['object']);
|
23 |
-
}
|
24 |
-
|
25 |
-
/**
|
26 |
-
* Assert that a balance object is returned after a successful reload.
|
27 |
-
*
|
28 |
-
*/
|
29 |
-
public function testReload() {
|
30 |
-
$balance = OmiseBalance::retrieve();
|
31 |
-
$balance->reload();
|
32 |
-
|
33 |
-
$this->assertArrayHasKey('object', $balance);
|
34 |
-
$this->assertEquals('balance', $balance['object']);
|
35 |
-
}
|
36 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/omise/CardTest.php
DELETED
@@ -1,82 +0,0 @@
|
|
1 |
-
<?php require_once dirname(__FILE__).'/TestConfig.php';
|
2 |
-
|
3 |
-
class CardTest extends TestConfig {
|
4 |
-
/**
|
5 |
-
* OmiseCard class must be contain some method below.
|
6 |
-
*
|
7 |
-
*/
|
8 |
-
public function testMethodExists() {
|
9 |
-
$this->assertTrue(method_exists('OmiseCard', 'reload'));
|
10 |
-
$this->assertTrue(method_exists('OmiseCard', 'update'));
|
11 |
-
$this->assertTrue(method_exists('OmiseCard', 'destroy'));
|
12 |
-
$this->assertTrue(method_exists('OmiseCard', 'isDestroyed'));
|
13 |
-
$this->assertTrue(method_exists('OmiseCard', 'getUrl'));
|
14 |
-
}
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Assert that a list of card object could be successfully retrieved from customer.
|
18 |
-
*
|
19 |
-
*/
|
20 |
-
public function testRetrieveCustomerCardListObject() {
|
21 |
-
$customer = OmiseCustomer::retrieve('cust_test_4zmrjg2hct06ybwobqc');
|
22 |
-
$cards = $customer->cards();
|
23 |
-
|
24 |
-
$this->assertArrayHasKey('object', $cards);
|
25 |
-
$this->assertEquals('list', $cards['object']);
|
26 |
-
}
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Assert that a card is could be successfully retrieved from customer.
|
30 |
-
*
|
31 |
-
*/
|
32 |
-
public function testRetrieveSpecificCustomerCardObject() {
|
33 |
-
$customer = OmiseCustomer::retrieve('cust_test_4zmrjg2hct06ybwobqc');
|
34 |
-
$card = $customer->cards()->retrieve('card_test_4zmrjfzf0spz3mh63cs');
|
35 |
-
|
36 |
-
$this->assertArrayHasKey('object', $card);
|
37 |
-
$this->assertEquals('card', $card['object']);
|
38 |
-
}
|
39 |
-
|
40 |
-
/**
|
41 |
-
* Assert that a card object is returned after a successful reload.
|
42 |
-
*
|
43 |
-
*/
|
44 |
-
public function testReload() {
|
45 |
-
$customer = OmiseCustomer::retrieve('cust_test_4zmrjg2hct06ybwobqc');
|
46 |
-
$card = $customer->cards()->retrieve('card_test_4zmrjfzf0spz3mh63cs');
|
47 |
-
$card->reload();
|
48 |
-
|
49 |
-
$this->assertArrayHasKey('object', $card);
|
50 |
-
$this->assertEquals('card', $card['object']);
|
51 |
-
}
|
52 |
-
|
53 |
-
/**
|
54 |
-
* Assert that a card is successfully updated with the given parameters set.
|
55 |
-
*
|
56 |
-
*/
|
57 |
-
public function testUpdate() {
|
58 |
-
$customer = OmiseCustomer::retrieve('cust_test_4zmrjg2hct06ybwobqc');
|
59 |
-
$card = $customer->cards()->retrieve('card_test_4zmrjfzf0spz3mh63cs');
|
60 |
-
$card->update(array('expiration_month' => 11,
|
61 |
-
'expiration_year' => 2017,
|
62 |
-
'name' => 'Somchai Praset',
|
63 |
-
'postal_code' => '10310'));
|
64 |
-
|
65 |
-
$this->assertArrayHasKey('object', $card);
|
66 |
-
$this->assertEquals('card', $card['object']);
|
67 |
-
}
|
68 |
-
|
69 |
-
/**
|
70 |
-
* Assert that a destroyed flag is set after a card is successfully destroyed.
|
71 |
-
*
|
72 |
-
*/
|
73 |
-
public function testDestroy() {
|
74 |
-
$customer = OmiseCustomer::retrieve('cust_test_4zmrjg2hct06ybwobqc');
|
75 |
-
$card = $customer->cards()->retrieve('card_test_4zmrjfzf0spz3mh63cs');
|
76 |
-
$card->destroy();
|
77 |
-
|
78 |
-
$this->assertArrayHasKey('object', $card);
|
79 |
-
$this->assertEquals('card', $card['object']);
|
80 |
-
$this->assertTrue($card->isDestroyed());
|
81 |
-
}
|
82 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/omise/ChargeTest.php
DELETED
@@ -1,81 +0,0 @@
|
|
1 |
-
<?php require_once dirname(__FILE__).'/TestConfig.php';
|
2 |
-
|
3 |
-
class ChargeTest extends TestConfig {
|
4 |
-
/**
|
5 |
-
* OmiseCharge class must be contain some method below.
|
6 |
-
*
|
7 |
-
*/
|
8 |
-
public function testMethodExists() {
|
9 |
-
$this->assertTrue(method_exists('OmiseCharge', 'reload'));
|
10 |
-
$this->assertTrue(method_exists('OmiseCharge', 'create'));
|
11 |
-
$this->assertTrue(method_exists('OmiseCharge', 'update'));
|
12 |
-
$this->assertTrue(method_exists('OmiseCharge', 'capture'));
|
13 |
-
$this->assertTrue(method_exists('OmiseCharge', 'refunds'));
|
14 |
-
$this->assertTrue(method_exists('OmiseCharge', 'getUrl'));
|
15 |
-
}
|
16 |
-
|
17 |
-
/**
|
18 |
-
* Assert that a list of charge object could be successfully retrieved.
|
19 |
-
*
|
20 |
-
*/
|
21 |
-
public function testRetrieveChargeListObject() {
|
22 |
-
$charge = OmiseCharge::retrieve();
|
23 |
-
|
24 |
-
$this->assertArrayHasKey('object', $charge);
|
25 |
-
$this->assertEquals('list', $charge['object']);
|
26 |
-
}
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Assert that a charge is successfully created with the given parameters set.
|
30 |
-
*
|
31 |
-
*/
|
32 |
-
public function testCreate() {
|
33 |
-
$charge = OmiseCharge::create(array('amount' => 100000,
|
34 |
-
'currency' => 'thb',
|
35 |
-
'description' => 'Order-384',
|
36 |
-
'ip' => '127.0.0.1',
|
37 |
-
'card' => 'tokn_test_4zmrjhuk2rndz24a6x0'));
|
38 |
-
|
39 |
-
$this->assertArrayHasKey('object', $charge);
|
40 |
-
$this->assertEquals('charge', $charge['object']);
|
41 |
-
}
|
42 |
-
|
43 |
-
/**
|
44 |
-
* Assert that a charge object is returned after a successful retrieve.
|
45 |
-
*
|
46 |
-
*/
|
47 |
-
public function testRetrieveSpecificChargeObject() {
|
48 |
-
$charge = OmiseCharge::retrieve('chrg_test_4zmrjgxdh4ycj2qncoj');
|
49 |
-
|
50 |
-
$this->assertArrayHasKey('object', $charge);
|
51 |
-
$this->assertEquals('charge', $charge['object']);
|
52 |
-
}
|
53 |
-
|
54 |
-
/**
|
55 |
-
* Assert that a charge is successfully updated with the given parameters set.
|
56 |
-
*
|
57 |
-
*/
|
58 |
-
public function testUpdate() {
|
59 |
-
$charge = OmiseCharge::retrieve('chrg_test_4zmrjgxdh4ycj2qncoj');
|
60 |
-
$charge->update(array('description' => 'Another description'));
|
61 |
-
|
62 |
-
$this->assertArrayHasKey('object', $charge);
|
63 |
-
$this->assertEquals('charge', $charge['object']);
|
64 |
-
}
|
65 |
-
|
66 |
-
/**
|
67 |
-
* Assert that a captured flag is set after charge is successfully captured.
|
68 |
-
*
|
69 |
-
* In our test environment, the charge will be auto-captured after create
|
70 |
-
* and this test will raise OmiseFailedCaptureException.
|
71 |
-
*
|
72 |
-
*/
|
73 |
-
public function testCapture() {
|
74 |
-
$charge = OmiseCharge::retrieve('chrg_test_4zmrjgxdh4ycj2qncoj');
|
75 |
-
$charge->capture();
|
76 |
-
|
77 |
-
$this->assertArrayHasKey('object', $charge);
|
78 |
-
$this->assertEquals('charge', $charge['object']);
|
79 |
-
$this->assertTrue($charge['captured']);
|
80 |
-
}
|
81 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/omise/CustomerTest.php
DELETED
@@ -1,78 +0,0 @@
|
|
1 |
-
<?php require_once dirname(__FILE__).'/TestConfig.php';
|
2 |
-
|
3 |
-
class CustomerTest extends TestConfig {
|
4 |
-
/**
|
5 |
-
* OmiseCustomer class must be contain some method below.
|
6 |
-
*
|
7 |
-
*/
|
8 |
-
public function testMethodExists() {
|
9 |
-
$this->assertTrue(method_exists('OmiseCustomer', 'retrieve'));
|
10 |
-
$this->assertTrue(method_exists('OmiseCustomer', 'create'));
|
11 |
-
$this->assertTrue(method_exists('OmiseCustomer', 'reload'));
|
12 |
-
$this->assertTrue(method_exists('OmiseCustomer', 'update'));
|
13 |
-
$this->assertTrue(method_exists('OmiseCustomer', 'destroy'));
|
14 |
-
$this->assertTrue(method_exists('OmiseCustomer', 'isDestroyed'));
|
15 |
-
$this->assertTrue(method_exists('OmiseCustomer', 'cards'));
|
16 |
-
$this->assertTrue(method_exists('OmiseCustomer', 'getCards'));
|
17 |
-
$this->assertTrue(method_exists('OmiseCustomer', 'getUrl'));
|
18 |
-
}
|
19 |
-
|
20 |
-
/**
|
21 |
-
* Assert that a list of customer object could be successfully retrieved.
|
22 |
-
*
|
23 |
-
*/
|
24 |
-
public function testRetrieveCustomerListObject() {
|
25 |
-
$customer = OmiseCustomer::retrieve();
|
26 |
-
|
27 |
-
$this->assertArrayHasKey('object', $customer);
|
28 |
-
$this->assertEquals('list', $customer['object']);
|
29 |
-
}
|
30 |
-
|
31 |
-
/**
|
32 |
-
* Assert that a customer is successfully created with the given parameters set.
|
33 |
-
*
|
34 |
-
*/
|
35 |
-
public function testCreate() {
|
36 |
-
$customer = OmiseCustomer::create(array('email' => 'john.doe@example.com',
|
37 |
-
'description' => 'John Doe (id: 30)',
|
38 |
-
'card' => 'tokn_test_4zmrjhuk2rndz24a6x0'));
|
39 |
-
|
40 |
-
$this->assertArrayHasKey('object', $customer);
|
41 |
-
$this->assertEquals('customer', $customer['object']);
|
42 |
-
}
|
43 |
-
|
44 |
-
/**
|
45 |
-
* Assert that a customer object is returned after a successful retrieve.
|
46 |
-
*
|
47 |
-
*/
|
48 |
-
public function testRetrieveSpecificCustomerObject() {
|
49 |
-
$customer = OmiseCustomer::retrieve('cust_test_4zmrjg2hct06ybwobqc');
|
50 |
-
|
51 |
-
$this->assertArrayHasKey('object', $customer);
|
52 |
-
$this->assertEquals('customer', $customer['object']);
|
53 |
-
}
|
54 |
-
|
55 |
-
/**
|
56 |
-
* Assert that a customer is successfully updated with the given parameters set.
|
57 |
-
*
|
58 |
-
*/
|
59 |
-
public function testUpdate() {
|
60 |
-
$customer = OmiseCustomer::retrieve('cust_test_4zmrjg2hct06ybwobqc');
|
61 |
-
$customer->update(array('email' => 'john.smith@example.com',
|
62 |
-
'description' => 'Another description'));
|
63 |
-
|
64 |
-
$this->assertArrayHasKey('object', $customer);
|
65 |
-
$this->assertEquals('customer', $customer['object']);
|
66 |
-
}
|
67 |
-
|
68 |
-
/**
|
69 |
-
* Assert that a destroyed flag is set after a customer is successfully destroyed.
|
70 |
-
*
|
71 |
-
*/
|
72 |
-
public function testDestroy() {
|
73 |
-
$customer = OmiseCustomer::retrieve('cust_test_4zmrjg2hct06ybwobqc');
|
74 |
-
$customer->destroy();
|
75 |
-
|
76 |
-
$this->assertTrue($customer->isDestroyed());
|
77 |
-
}
|
78 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/omise/DisputeTest.php
DELETED
@@ -1,88 +0,0 @@
|
|
1 |
-
<?php require_once dirname(__FILE__).'/TestConfig.php';
|
2 |
-
|
3 |
-
class OmiseDisputeTest extends TestConfig {
|
4 |
-
/**
|
5 |
-
* OmiseDispute class must be contain some method below.
|
6 |
-
*
|
7 |
-
*/
|
8 |
-
public function testMethodExists() {
|
9 |
-
$this->assertTrue(method_exists('OmiseDispute', 'retrieve'));
|
10 |
-
$this->assertTrue(method_exists('OmiseDispute', 'reload'));
|
11 |
-
$this->assertTrue(method_exists('OmiseDispute', 'update'));
|
12 |
-
$this->assertTrue(method_exists('OmiseDispute', 'getUrl'));
|
13 |
-
}
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Assert that a list of dispute object is returned after a successful retrieve.
|
17 |
-
*
|
18 |
-
*/
|
19 |
-
public function testRetrieveOmiseDisputeObject() {
|
20 |
-
$dispute = OmiseDispute::retrieve();
|
21 |
-
$dispute->reload();
|
22 |
-
|
23 |
-
$this->assertArrayHasKey('object', $dispute);
|
24 |
-
$this->assertEquals('list', $dispute['object']);
|
25 |
-
$this->assertEquals('dispute', $dispute['data'][0]['object']);
|
26 |
-
}
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Assert that a dispute object is returned after a successful retrieve.
|
30 |
-
*
|
31 |
-
*/
|
32 |
-
public function testRetrieveOmiseDisputeObjectWithKey() {
|
33 |
-
$dispute = OmiseDispute::retrieve('dspt_test_4zgf15h89w8t775kcm8');
|
34 |
-
|
35 |
-
$this->assertArrayHasKey('object', $dispute);
|
36 |
-
$this->assertEquals('dispute', $dispute['object']);
|
37 |
-
}
|
38 |
-
|
39 |
-
/**
|
40 |
-
* Assert that a dispute object is returned after a successful retrieve with 'open' status.
|
41 |
-
*
|
42 |
-
*/
|
43 |
-
public function testRetrieveOmiseDisputeObjectThatOpen() {
|
44 |
-
$dispute = OmiseDispute::retrieve('open');
|
45 |
-
|
46 |
-
$this->assertArrayHasKey('object', $dispute);
|
47 |
-
$this->assertEquals('dispute', $dispute['data'][0]['object']);
|
48 |
-
$this->assertEquals('open', $dispute['data'][0]['status']);
|
49 |
-
}
|
50 |
-
|
51 |
-
/**
|
52 |
-
* Assert that a dispute object is returned after a successful retrieve with 'pending' status.
|
53 |
-
*
|
54 |
-
*/
|
55 |
-
public function testRetrieveOmiseDisputeObjectThatPending() {
|
56 |
-
$dispute = OmiseDispute::retrieve('pending');
|
57 |
-
|
58 |
-
$this->assertArrayHasKey('object', $dispute);
|
59 |
-
$this->assertEquals('dispute', $dispute['data'][0]['object']);
|
60 |
-
$this->assertEquals('pending', $dispute['data'][0]['status']);
|
61 |
-
}
|
62 |
-
|
63 |
-
/**
|
64 |
-
* Assert that a dispute object is returned after a successful retrieve with 'closed' status.
|
65 |
-
*
|
66 |
-
*/
|
67 |
-
public function testRetrieveOmiseDisputeObjectThatClosed() {
|
68 |
-
$dispute = OmiseDispute::retrieve('closed');
|
69 |
-
|
70 |
-
$this->assertArrayHasKey('object', $dispute);
|
71 |
-
$this->assertEquals('dispute', $dispute['data'][0]['object']);
|
72 |
-
$this->assertEquals('closed', $dispute['data'][0]['status']);
|
73 |
-
}
|
74 |
-
|
75 |
-
/**
|
76 |
-
* Assert that a dispute is successfully updated with the given parameters set.
|
77 |
-
*
|
78 |
-
*/
|
79 |
-
public function testUpdate() {
|
80 |
-
$dispute = OmiseDispute::retrieve('dspt_test_4zgf15h89w8t775kcm8');
|
81 |
-
$dispute->update(array(
|
82 |
-
'message' => 'New Message...'
|
83 |
-
));
|
84 |
-
|
85 |
-
$this->assertArrayHasKey('object', $dispute);
|
86 |
-
$this->assertEquals('dispute', $dispute['object']);
|
87 |
-
}
|
88 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/omise/RecipientTest.php
DELETED
@@ -1,78 +0,0 @@
|
|
1 |
-
<?php require_once dirname(__FILE__).'/TestConfig.php';
|
2 |
-
|
3 |
-
class OmiseRecipientTest extends TestConfig {
|
4 |
-
/**
|
5 |
-
* OmiseRecipient class must be contain some method below.
|
6 |
-
*
|
7 |
-
*/
|
8 |
-
public function testMethodExists() {
|
9 |
-
$this->assertTrue(method_exists('OmiseRecipient', 'retrieve'));
|
10 |
-
$this->assertTrue(method_exists('OmiseRecipient', 'getUrl'));
|
11 |
-
}
|
12 |
-
|
13 |
-
/**
|
14 |
-
* Assert that an recipient object is returned after a successful retrieve.
|
15 |
-
*
|
16 |
-
*/
|
17 |
-
public function testRetrieveOmiseRecipientObject() {
|
18 |
-
$recipient = OmiseRecipient::retrieve();
|
19 |
-
|
20 |
-
$this->assertArrayHasKey('object', $recipient);
|
21 |
-
$this->assertEquals('list', $recipient['object']);
|
22 |
-
$this->assertEquals('recipient', $recipient['data'][0]['object']);
|
23 |
-
}
|
24 |
-
|
25 |
-
/**
|
26 |
-
* Assert that an recipient object is returned after a successful retrieve.
|
27 |
-
*
|
28 |
-
*/
|
29 |
-
public function testRetrieveOmiseRecipientObjectWithKey() {
|
30 |
-
$recipient = OmiseRecipient::retrieve('recp_test_508a9dytz793gxv9m77');
|
31 |
-
|
32 |
-
$this->assertArrayHasKey('object', $recipient);
|
33 |
-
$this->assertEquals('recipient', $recipient['object']);
|
34 |
-
}
|
35 |
-
|
36 |
-
/**
|
37 |
-
* Assert that a recipient is successfully created with the given parameters set.
|
38 |
-
*
|
39 |
-
*/
|
40 |
-
public function testCreate() {
|
41 |
-
$recipient = OmiseRecipient::create(array('name' => 'Nuttanon T',
|
42 |
-
'description' => 'Nuttanon T\'s account',
|
43 |
-
'email' => 'nam@omise.co',
|
44 |
-
'type' => 'individual',
|
45 |
-
'tax_id' => '',
|
46 |
-
'bank_account' => array( 'brand' => 'scb',
|
47 |
-
'number' => '1234567890',
|
48 |
-
'name' => 'Nuttanon T')));
|
49 |
-
|
50 |
-
$this->assertArrayHasKey('object', $recipient);
|
51 |
-
$this->assertEquals('recipient', $recipient['object']);
|
52 |
-
}
|
53 |
-
|
54 |
-
/**
|
55 |
-
* Assert that a recipient is successfully updated with the given parameters set.
|
56 |
-
*
|
57 |
-
*/
|
58 |
-
public function testUpdate() {
|
59 |
-
$recipient = OmiseRecipient::retrieve('recp_test_508a9dytz793gxv9m77');
|
60 |
-
$recipient->update(array( 'name' => 'Nuttanon Tra',
|
61 |
-
'email' => 'nam@omise.co',
|
62 |
-
'description' => 'Another description'));
|
63 |
-
|
64 |
-
$this->assertArrayHasKey('object', $recipient);
|
65 |
-
$this->assertEquals('recipient', $recipient['object']);
|
66 |
-
}
|
67 |
-
|
68 |
-
/**
|
69 |
-
* Assert that a destroyed flag is set after a recipient is successfully destroyed.
|
70 |
-
*
|
71 |
-
*/
|
72 |
-
public function testDelete() {
|
73 |
-
$recipient = OmiseRecipient::retrieve('recp_test_508a9dytz793gxv9m77');
|
74 |
-
$recipient->destroy();
|
75 |
-
|
76 |
-
$this->assertTrue($recipient->isDestroyed());
|
77 |
-
}
|
78 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/omise/RefundTest.php
DELETED
@@ -1,43 +0,0 @@
|
|
1 |
-
<?php require_once dirname(__FILE__).'/TestConfig.php';
|
2 |
-
|
3 |
-
class RefundTest extends TestConfig {
|
4 |
-
/**
|
5 |
-
* Assert that a list of refunds object could be successfully retrieved.
|
6 |
-
*
|
7 |
-
*/
|
8 |
-
public function testRetrieveChargeRefundListObject() {
|
9 |
-
$charge = OmiseCharge::retrieve('chrg_test_4zmrjgxdh4ycj2qncoj');
|
10 |
-
$refunds = $charge->refunds();
|
11 |
-
|
12 |
-
$this->assertArrayHasKey('object', $refunds);
|
13 |
-
$this->assertEquals('list', $refunds['object']);
|
14 |
-
}
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Assert that a refund is successfully created with the given parameters set.
|
18 |
-
*
|
19 |
-
*/
|
20 |
-
public function testCreate() {
|
21 |
-
$charge = OmiseCharge::retrieve('chrg_test_4zmrjgxdh4ycj2qncoj');
|
22 |
-
$refunds = $charge->refunds();
|
23 |
-
|
24 |
-
$refund = $refunds->create(array('amount' => 10000));
|
25 |
-
|
26 |
-
$this->assertArrayHasKey('object', $refund);
|
27 |
-
$this->assertEquals('refund', $refund['object']);
|
28 |
-
}
|
29 |
-
|
30 |
-
/**
|
31 |
-
*
|
32 |
-
*/
|
33 |
-
public function testRetrieveSpecificChargeRefundObject() {
|
34 |
-
$charge = OmiseCharge::retrieve('chrg_test_4zmrjgxdh4ycj2qncoj');
|
35 |
-
$refunds = $charge->refunds();
|
36 |
-
|
37 |
-
$create = $refunds->create(array('amount' => 10000));
|
38 |
-
$refund = $refunds->retrieve($create['id']);
|
39 |
-
|
40 |
-
$this->assertArrayHasKey('object', $refund);
|
41 |
-
$this->assertEquals('refund', $refund['object']);
|
42 |
-
}
|
43 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/omise/TestConfig.php
DELETED
@@ -1,14 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// Omise keys.
|
4 |
-
define('OMISE_PUBLIC_KEY', 'pkey');
|
5 |
-
define('OMISE_SECRET_KEY', 'skey');
|
6 |
-
|
7 |
-
// Include necessary file.
|
8 |
-
if (version_compare(phpversion(), '5.3.2') >= 0 && file_exists(dirname(__FILE__).'/../../vendor/autoload.php')) {
|
9 |
-
require_once dirname(__FILE__).'/../../vendor/autoload.php';
|
10 |
-
} else {
|
11 |
-
require_once dirname(__FILE__).'/../../lib/Omise.php';
|
12 |
-
}
|
13 |
-
|
14 |
-
abstract class TestConfig extends PHPUnit_Framework_TestCase { }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/omise/TokenTest.php
DELETED
@@ -1,43 +0,0 @@
|
|
1 |
-
<?php require_once dirname(__FILE__).'/TestConfig.php';
|
2 |
-
|
3 |
-
class TokenTest extends TestConfig {
|
4 |
-
/**
|
5 |
-
* OmiseToken should contain some method like below.
|
6 |
-
*
|
7 |
-
*/
|
8 |
-
public function testMethodExists() {
|
9 |
-
$this->assertTrue(method_exists('OmiseToken', 'retrieve'));
|
10 |
-
$this->assertTrue(method_exists('OmiseToken', 'create'));
|
11 |
-
$this->assertTrue(method_exists('OmiseToken', 'reload'));
|
12 |
-
$this->assertTrue(method_exists('OmiseToken', 'getUrl'));
|
13 |
-
}
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Assert that a token is successfully created with the given parameters set.
|
17 |
-
*
|
18 |
-
*/
|
19 |
-
public function testCreate() {
|
20 |
-
$token = OmiseToken::create(array(
|
21 |
-
'card' => array('name' => 'Somchai Prasert',
|
22 |
-
'number' => '4242424242424242',
|
23 |
-
'expiration_month' => 10,
|
24 |
-
'expiration_year' => 2018,
|
25 |
-
'city' => 'Bangkok',
|
26 |
-
'postal_code' => '10320',
|
27 |
-
'security_code' => 123)));
|
28 |
-
|
29 |
-
$this->assertArrayHasKey('object', $token);
|
30 |
-
$this->assertEquals('token', $token['object']);
|
31 |
-
}
|
32 |
-
|
33 |
-
/**
|
34 |
-
* Assert that a customer object is returned after a successful retrieve.
|
35 |
-
*
|
36 |
-
*/
|
37 |
-
public function testRetrieve() {
|
38 |
-
$token = OmiseToken::retrieve('tokn_test_4zmrjhuk2rndz24a6x0');
|
39 |
-
|
40 |
-
$this->assertArrayHasKey('object', $token);
|
41 |
-
$this->assertEquals('token', $token['object']);
|
42 |
-
}
|
43 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/omise/TransactionTest.php
DELETED
@@ -1,51 +0,0 @@
|
|
1 |
-
<?php require_once dirname(__FILE__).'/TestConfig.php';
|
2 |
-
|
3 |
-
class TransactionTest extends TestConfig {
|
4 |
-
/**
|
5 |
-
* OmiseTransaction should contain some method like below.
|
6 |
-
*
|
7 |
-
*/
|
8 |
-
public function testOmiseTransactionMethodExists() {
|
9 |
-
$this->assertTrue(method_exists('OmiseTransaction', 'retrieve'));
|
10 |
-
$this->assertTrue(method_exists('OmiseTransaction', 'reload'));
|
11 |
-
$this->assertTrue(method_exists('OmiseTransaction', 'getUrl'));
|
12 |
-
}
|
13 |
-
|
14 |
-
/**
|
15 |
-
* Assert that a list of transactions object could be successfully retrieved.
|
16 |
-
*
|
17 |
-
*/
|
18 |
-
public function testRetrieveAllTransactions() {
|
19 |
-
$transactions = OmiseTransaction::retrieve();
|
20 |
-
|
21 |
-
$this->assertArrayHasKey('object', $transactions);
|
22 |
-
$this->assertEquals('list', $transactions['object']);
|
23 |
-
}
|
24 |
-
|
25 |
-
/**
|
26 |
-
* Assert that a transaction object is returned after a successful retrieve with transaction id.
|
27 |
-
*
|
28 |
-
*/
|
29 |
-
public function testRetrieveWithSpecificTransaction() {
|
30 |
-
$transaction = OmiseTransaction::retrieve('trxn_test_4zmrjhlflnz6id6q0bo');
|
31 |
-
|
32 |
-
$this->assertArrayHasKey('object', $transaction);
|
33 |
-
$this->assertEquals('transaction', $transaction['object']);
|
34 |
-
}
|
35 |
-
|
36 |
-
/**
|
37 |
-
* Assert that a transaction object is returned after a successful retrieve with transaction id.
|
38 |
-
* And validate json structure that's return back.
|
39 |
-
*
|
40 |
-
*/
|
41 |
-
public function testValidateOmiseTransactionObjectRetrievedStructure() {
|
42 |
-
$transaction = OmiseTransaction::retrieve('trxn_test_4zmrjhlflnz6id6q0bo');
|
43 |
-
|
44 |
-
$this->assertArrayHasKey('object', $transaction);
|
45 |
-
$this->assertArrayHasKey('id', $transaction);
|
46 |
-
$this->assertArrayHasKey('type', $transaction);
|
47 |
-
$this->assertArrayHasKey('amount', $transaction);
|
48 |
-
$this->assertArrayHasKey('currency', $transaction);
|
49 |
-
$this->assertArrayHasKey('created', $transaction);
|
50 |
-
}
|
51 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/omise/TransferTest.php
DELETED
@@ -1,76 +0,0 @@
|
|
1 |
-
<?php require_once dirname(__FILE__).'/TestConfig.php';
|
2 |
-
|
3 |
-
class TransferTest extends TestConfig {
|
4 |
-
/**
|
5 |
-
* OmiseTransfer should contain some method like below.
|
6 |
-
*
|
7 |
-
*/
|
8 |
-
public function testMethodExists() {
|
9 |
-
$this->assertTrue(method_exists('OmiseTransfer', 'retrieve'));
|
10 |
-
$this->assertTrue(method_exists('OmiseTransfer', 'create'));
|
11 |
-
$this->assertTrue(method_exists('OmiseTransfer', 'reload'));
|
12 |
-
$this->assertTrue(method_exists('OmiseTransfer', 'save'));
|
13 |
-
$this->assertTrue(method_exists('OmiseTransfer', 'update'));
|
14 |
-
$this->assertTrue(method_exists('OmiseTransfer', 'destroy'));
|
15 |
-
$this->assertTrue(method_exists('OmiseTransfer', 'isDestroyed'));
|
16 |
-
$this->assertTrue(method_exists('OmiseTransfer', 'getUrl'));
|
17 |
-
}
|
18 |
-
|
19 |
-
/**
|
20 |
-
* Assert that a list of transfer object could be successfully retrieved.
|
21 |
-
*
|
22 |
-
*/
|
23 |
-
public function testRetrieveTransferListObject() {
|
24 |
-
$transfers = OmiseTransfer::retrieve();
|
25 |
-
|
26 |
-
$this->assertArrayHasKey('object', $transfers);
|
27 |
-
$this->assertEquals('list', $transfers['object']);
|
28 |
-
}
|
29 |
-
|
30 |
-
/**
|
31 |
-
* Assert that a transfer is successfully created with the given parameters set.
|
32 |
-
*
|
33 |
-
*/
|
34 |
-
public function testCreate() {
|
35 |
-
$transfer = OmiseTransfer::create(array('amount' => 100000));
|
36 |
-
|
37 |
-
$this->assertArrayHasKey('object', $transfer);
|
38 |
-
$this->assertEquals('transfer', $transfer['object']);
|
39 |
-
}
|
40 |
-
|
41 |
-
/**
|
42 |
-
* Assert that a transfer object is returned after a successful retrieve.
|
43 |
-
*
|
44 |
-
*/
|
45 |
-
public function testRetrieve() {
|
46 |
-
$transfer = OmiseTransfer::retrieve('trsf_test_4zmrjicrvw7j6uhv1l4');
|
47 |
-
|
48 |
-
$this->assertArrayHasKey('object', $transfer);
|
49 |
-
$this->assertEquals('transfer', $transfer['object']);
|
50 |
-
}
|
51 |
-
|
52 |
-
/**
|
53 |
-
* Assert that a transfer is successfully updated with the given parameters set.
|
54 |
-
*
|
55 |
-
*/
|
56 |
-
public function testUpdate() {
|
57 |
-
$transfer = OmiseTransfer::retrieve('trsf_test_4zmrjicrvw7j6uhv1l4');
|
58 |
-
|
59 |
-
$transfer['amount'] = 5000;
|
60 |
-
$transfer->save();
|
61 |
-
|
62 |
-
$this->assertArrayHasKey('object', $transfer);
|
63 |
-
$this->assertEquals('transfer', $transfer['object']);
|
64 |
-
}
|
65 |
-
|
66 |
-
/**
|
67 |
-
* Assert that a destroyed flag is set after a transfer is successfully destroyed.
|
68 |
-
*
|
69 |
-
*/
|
70 |
-
public function testDestroy() {
|
71 |
-
$transfer = OmiseTransfer::retrieve('trsf_test_4zmrjicrvw7j6uhv1l4');
|
72 |
-
$transfer->destroy();
|
73 |
-
|
74 |
-
$this->assertTrue($transfer->isDestroyed());
|
75 |
-
}
|
76 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/omise/exception/OmiseExceptionTest.php
DELETED
@@ -1,147 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
require_once dirname(__FILE__).'/../TestConfig.php';
|
4 |
-
if(version_compare(phpversion(), '5.3.2') >= 0 && file_exists(dirname(__FILE__).'/../../../vendor/autoload.php')) {
|
5 |
-
require_once dirname(__FILE__).'/../../../vendor/autoload.php';
|
6 |
-
} else {
|
7 |
-
require_once dirname(__FILE__).'/../../../lib/Omise.php';
|
8 |
-
}
|
9 |
-
|
10 |
-
class OmiseExceptionTest extends PHPUnit_Framework_TestCase {
|
11 |
-
public static function setUpBeforeClass() {
|
12 |
-
/** Do Nothing **/
|
13 |
-
}
|
14 |
-
|
15 |
-
public function setUp() {
|
16 |
-
/** Do Nothing **/
|
17 |
-
}
|
18 |
-
|
19 |
-
/**
|
20 |
-
* ----- Test OmiseException::getInstance() -----
|
21 |
-
* This assert should throw an Exception depend on what error code be.
|
22 |
-
* And Exception message should be the same thing with error message that pass into 'message' parameter.
|
23 |
-
*
|
24 |
-
* @expectedException OmiseAuthenticationFailureException
|
25 |
-
* @expectedExceptionMessage authentication failed
|
26 |
-
*/
|
27 |
-
public function testAuthenticationFailureException () {
|
28 |
-
$mock = array('object' => 'error',
|
29 |
-
'location' => 'https://docs.omise.co/api/errors#authentication-failure',
|
30 |
-
'code' => 'authentication_failure',
|
31 |
-
'message' => 'authentication failed');
|
32 |
-
|
33 |
-
throw OmiseException::getInstance($mock);
|
34 |
-
}
|
35 |
-
|
36 |
-
/**
|
37 |
-
* @expectedException OmiseNotFoundException
|
38 |
-
* @expectedExceptionMessage customer cust_test_000000000000 was not found
|
39 |
-
*/
|
40 |
-
public function testNotFoundException () {
|
41 |
-
$mock = array('object' => 'error',
|
42 |
-
'location' => 'https://docs.omise.co/api/errors#not-found',
|
43 |
-
'code' => 'not_found',
|
44 |
-
'message' => 'customer cust_test_000000000000 was not found');
|
45 |
-
|
46 |
-
throw OmiseException::getInstance($mock);
|
47 |
-
}
|
48 |
-
|
49 |
-
/**
|
50 |
-
* @expectedException OmiseUsedTokenException
|
51 |
-
* @expectedExceptionMessage token was already used
|
52 |
-
*/
|
53 |
-
public function testUsedTokenException () {
|
54 |
-
$mock = array('object' => 'error',
|
55 |
-
'location' => 'https://docs.omise.co/api/errors#used-token',
|
56 |
-
'code' => 'used_token',
|
57 |
-
'message' => 'token was already used');
|
58 |
-
|
59 |
-
throw OmiseException::getInstance($mock);
|
60 |
-
}
|
61 |
-
|
62 |
-
/**
|
63 |
-
* @expectedException OmiseInvalidCardException
|
64 |
-
* @expectedExceptionMessage number is invalid and brand not supported (unknown)
|
65 |
-
*/
|
66 |
-
public function testInvalidCardException () {
|
67 |
-
$mock = array('object' => 'error',
|
68 |
-
'location' => 'https://docs.omise.co/api/errors#invalid-card',
|
69 |
-
'code' => 'invalid_card',
|
70 |
-
'message' => 'number is invalid and brand not supported (unknown)');
|
71 |
-
|
72 |
-
throw OmiseException::getInstance($mock);
|
73 |
-
}
|
74 |
-
|
75 |
-
/**
|
76 |
-
* @expectedException OmiseInvalidCardTokenException
|
77 |
-
* @expectedExceptionMessage invalid card token
|
78 |
-
*/
|
79 |
-
public function testInvalidCardTokenException () {
|
80 |
-
$mock = array('object' => 'error',
|
81 |
-
'location' => 'https://docs.omise.co/api/errors#invalid-card-token',
|
82 |
-
'code' => 'invalid_card_token',
|
83 |
-
'message' => 'invalid card token');
|
84 |
-
|
85 |
-
throw OmiseException::getInstance($mock);
|
86 |
-
}
|
87 |
-
|
88 |
-
/**
|
89 |
-
* @expectedException OmiseMissingCardException
|
90 |
-
* @expectedExceptionMessage request contains no card parameters
|
91 |
-
*/
|
92 |
-
public function testMissingCardException () {
|
93 |
-
$mock = array('object' => 'error',
|
94 |
-
'location' => 'https://docs.omise.co/api/errors#missing-card',
|
95 |
-
'code' => 'missing_card',
|
96 |
-
'message' => 'request contains no card parameters');
|
97 |
-
|
98 |
-
throw OmiseException::getInstance($mock);
|
99 |
-
}
|
100 |
-
|
101 |
-
/**
|
102 |
-
* @expectedException OmiseInvalidChargeException
|
103 |
-
* @expectedExceptionMessage currency is currently not supported and amount is not a number
|
104 |
-
*/
|
105 |
-
public function testInvalidChargeException () {
|
106 |
-
$mock = array('object' => 'error',
|
107 |
-
'location' => 'https://docs.omise.co/api/errors#invalid-charge',
|
108 |
-
'code' => 'invalid_charge',
|
109 |
-
'message' => 'currency is currently not supported and amount is not a number');
|
110 |
-
|
111 |
-
throw OmiseException::getInstance($mock);
|
112 |
-
}
|
113 |
-
|
114 |
-
/**
|
115 |
-
* @expectedException OmiseFailedCaptureException
|
116 |
-
* @expectedExceptionMessage Charge is not authorized
|
117 |
-
*/
|
118 |
-
public function testFailedCaptureException () {
|
119 |
-
$mock = array('object' => 'error',
|
120 |
-
'location' => 'https://docs.omise.co/api/errors#failed-capture',
|
121 |
-
'code' => 'failed_capture',
|
122 |
-
'message' => 'Charge is not authorized');
|
123 |
-
|
124 |
-
throw OmiseException::getInstance($mock);
|
125 |
-
}
|
126 |
-
|
127 |
-
/**
|
128 |
-
* @expectedException OmiseUndefinedException
|
129 |
-
* @expectedExceptionMessage Strange case, don't know why?
|
130 |
-
*/
|
131 |
-
public function testUndefinedException () {
|
132 |
-
$mock = array('object' => 'error',
|
133 |
-
'location' => '',
|
134 |
-
'code' => 'something_strange',
|
135 |
-
'message' => 'Strange case, don\'t know why?');
|
136 |
-
|
137 |
-
throw OmiseException::getInstance($mock);
|
138 |
-
}
|
139 |
-
|
140 |
-
public function tearDown() {
|
141 |
-
/** Do Nothing **/
|
142 |
-
}
|
143 |
-
|
144 |
-
public static function tearDownAfterClass() {
|
145 |
-
/** Do Nothing **/
|
146 |
-
}
|
147 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/omise/res/obj/OmiseObjectTest.php
DELETED
@@ -1,134 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
require_once dirname(__FILE__).'/../../TestConfig.php';
|
4 |
-
require_once dirname(__FILE__).'/../../../../lib/omise/OmiseTest.php';
|
5 |
-
|
6 |
-
class OmiseObjectTest extends TestConfig {
|
7 |
-
static $obj;
|
8 |
-
|
9 |
-
/**
|
10 |
-
* Retrieve OmiseObject attributes.
|
11 |
-
*
|
12 |
-
*/
|
13 |
-
public function testCreateObject() {
|
14 |
-
self::$obj = OmiseTest::resource();
|
15 |
-
|
16 |
-
$this->assertInstanceOf('OmiseTest', self::$obj);
|
17 |
-
$this->assertEmpty(self::$obj);
|
18 |
-
}
|
19 |
-
|
20 |
-
/**
|
21 |
-
* Try to merge some array into Object.
|
22 |
-
*
|
23 |
-
*/
|
24 |
-
public function testMergeSomeValueToObject() {
|
25 |
-
self::$obj->refresh(array('user' => 'nam',
|
26 |
-
'email' => 'nam@omise.co'));
|
27 |
-
|
28 |
-
$this->assertArrayHasKey('user', self::$obj);
|
29 |
-
$this->assertEquals('nam', self::$obj['user']);
|
30 |
-
|
31 |
-
$this->assertArrayHasKey('email', self::$obj);
|
32 |
-
$this->assertEquals('nam@omise.co', self::$obj['email']);
|
33 |
-
}
|
34 |
-
|
35 |
-
/**
|
36 |
-
* Try to merge some array into object with the same key that object had,
|
37 |
-
* It should be overwrite the old value with the new value.
|
38 |
-
*
|
39 |
-
*/
|
40 |
-
public function testMergeSomeValueToObjectWithTheSameKey() {
|
41 |
-
self::$obj->refresh(array('user' => 'Omise',
|
42 |
-
'email' => 'no-reply@omise.co'));
|
43 |
-
|
44 |
-
$this->assertArrayHasKey('user', self::$obj);
|
45 |
-
$this->assertEquals('Omise', self::$obj['user']);
|
46 |
-
|
47 |
-
$this->assertArrayHasKey('email', self::$obj);
|
48 |
-
$this->assertEquals('no-reply@omise.co', self::$obj['email']);
|
49 |
-
}
|
50 |
-
|
51 |
-
/**
|
52 |
-
* Try to merge some array and set clear old data parameter to `true` in second param,
|
53 |
-
* It should be reset all of Object value to empty array before merge.
|
54 |
-
*
|
55 |
-
*/
|
56 |
-
public function testMergeSomeValueToObjectWithClearData() {
|
57 |
-
self::$obj->refresh(array('user' => 'Omise-Team'), true);
|
58 |
-
|
59 |
-
$this->assertArrayHasKey('user', self::$obj);
|
60 |
-
$this->assertEquals('Omise-Team', self::$obj['user']);
|
61 |
-
|
62 |
-
$this->assertArrayNotHasKey('email', self::$obj);
|
63 |
-
}
|
64 |
-
|
65 |
-
/**
|
66 |
-
* Test add new offset via `offetSet` method.
|
67 |
-
*
|
68 |
-
*/
|
69 |
-
public function testSetNewValueWithOffsetSetMethod() {
|
70 |
-
self::$obj->offsetSet('phone', '012-345-6789');
|
71 |
-
|
72 |
-
$this->assertArrayHasKey('phone', self::$obj);
|
73 |
-
$this->assertEquals('012-345-6789', self::$obj['phone']);
|
74 |
-
}
|
75 |
-
|
76 |
-
/**
|
77 |
-
* Test `offsetExists` method should return `true` if offset exists
|
78 |
-
* and `false` if it not.
|
79 |
-
*
|
80 |
-
*/
|
81 |
-
public function testMethodForCheckOffsetExists() {
|
82 |
-
$this->assertTrue(self::$obj->offsetExists('phone'));
|
83 |
-
$this->assertNotTrue(self::$obj->offsetExists('phone_dump'));
|
84 |
-
}
|
85 |
-
|
86 |
-
/**
|
87 |
-
* Test unset offset.
|
88 |
-
*
|
89 |
-
*/
|
90 |
-
public function testUnsetOffset() {
|
91 |
-
self::$obj->offsetUnset('phone');
|
92 |
-
|
93 |
-
$this->assertNotTrue(self::$obj->offsetExists('phone'));
|
94 |
-
}
|
95 |
-
|
96 |
-
/**
|
97 |
-
* Test get offset value with offset that exists and not exists.
|
98 |
-
*
|
99 |
-
*/
|
100 |
-
public function testGetOffset() {
|
101 |
-
$this->assertEquals('Omise-Team', self::$obj->offsetGet('user'));
|
102 |
-
$this->assertNull(self::$obj->offsetGet('phone'));
|
103 |
-
}
|
104 |
-
|
105 |
-
/**
|
106 |
-
* Test iteration control.
|
107 |
-
*
|
108 |
-
*/
|
109 |
-
public function testLoopIterationControl() {
|
110 |
-
self::$obj->refresh(array('user' => 'nam',
|
111 |
-
'address' => 'CDC'));
|
112 |
-
|
113 |
-
// Count an array.
|
114 |
-
$this->assertEquals(2, self::$obj->count());
|
115 |
-
|
116 |
-
// Get current value.
|
117 |
-
$this->assertEquals('nam', self::$obj->current());
|
118 |
-
|
119 |
-
// Get current key.
|
120 |
-
$this->assertEquals('user', self::$obj->key());
|
121 |
-
|
122 |
-
// Move pointer to next place one.
|
123 |
-
self::$obj->next();
|
124 |
-
$this->assertEquals('CDC', self::$obj->current());
|
125 |
-
|
126 |
-
self::$obj->next();
|
127 |
-
$this->assertNotTrue(self::$obj->valid());
|
128 |
-
|
129 |
-
// Reset pointer to first place.
|
130 |
-
self::$obj->rewind();
|
131 |
-
$this->assertTrue(self::$obj->valid());
|
132 |
-
$this->assertEquals('nam', self::$obj->current());
|
133 |
-
}
|
134 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/omise-php/tests/omise/testall.sh
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
#!/bin/sh
|
2 |
-
file=*Test.php
|
3 |
-
for testfile in ${file}
|
4 |
-
do
|
5 |
-
phpunit --colors $testfile
|
6 |
-
done
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
@@ -1,63 +1,52 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Omise_Gateway</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/mit-license.php">MIT License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Omise is the official payment extension which provides support for Omise payment gateway for store builders.</summary>
|
10 |
-
<description>Solidifying your checkout experience can really be hassle-free. The Omise payment extension comes complete with powerful payment features that allows you to easily and securely accept credit/debit card payments on your store.<br/>
|
11 |
-
<br/>
|
12 |
-
For the service pricing, <strong>we charge 3.65% per transaction. In other words, We only charge you when you make money. There is no minimum monthly volume nor minimum fee. You can start and stop using us anytime you want at no charge. However, a 7% Vat is applied on top of Omise fee.</strong><br/>
|
13 |
-
Further information, please check <a href="https://www.omise.co/pricing">https://www.omise.co/pricing</a><br/>
|
14 |
-
|
15 |
<h3>Accepting payments</h3>
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-

|
21 |
<h3>The Infrastructure</h3>
|
22 |
-

|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-

|
27 |
<h3>Security</h3>
|
28 |
-
|
29 |
-
|
30 |
-
<br/>
|
31 |
-
-
|
32 |
-
-
|
33 |
-
-
|
34 |
-
|
35 |
-

|
36 |
<h3>Reporting</h3>
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-

|
44 |
<h3>User Guides</h3>
|
45 |
-
|
46 |
-
Please check the following link to see "Installation Instruction" & "User Guides"<br/>
|
47 |
<a href="http://omise.co/magento-plugin">http://omise.co/magento-plugin</a></description>
|
48 |
<notes><h3>Highlights</h3>
|
49 |
-
- Introduce 3-D Secure feature!<br/>
|
50 |
-
- Introduce Internet Banking feature!<br/>
|
51 |
-
- Support JPY, IDR and SGD currencies.<br/>
|
52 |

|
53 |
-
|
54 |
-
- Refactor the PaymentMethod class for the extensibility, polymorphism and reduce code complexity that usually, will keep maintain in only one file (Omise_Gateway_Model_PaymentMethod).<br/>
|
55 |
-
- Import squizlabs/php_codesniffer package to the project.<br/>
|
56 |
-
- Code styling.<br/></notes>
|
57 |
<authors><author><name>Omise</name><user>omise</user><email>apps@omise.co</email></author></authors>
|
58 |
-
<date>2017-03-
|
59 |
-
<time>
|
60 |
-
<contents><target name="magecommunity"><dir name="Omise"><dir name="Gateway"><dir name="Block"><dir name="Adminhtml"><dir name="Config"><dir name="Edit"><file name="Form.php" hash="35295e47578bfd3b034bfe6c36c8a4cc"/></dir><file name="Edit.php" hash="84fdd93ef432aba685bcac6cdb9bbe49"/></dir><dir name="Dashboard"><file name="Dashboard.php" hash="993c3d2c63d3b2a6c64940a09042155b"/></dir><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Payment.php" hash="c5c162c6c4d58bd8b479445097ae2299"/></dir></dir></dir></dir><dir name="Form"><file name="Cc.php" hash="9ece8b02993c3e9a84a5cfafe0150438"/><file name="OffsiteInternetBankingPayment.php" hash="cb1c9d4c71252c69629a7cfbe83c2537"/></dir></dir><dir name="Helper"><file name="Data.php" hash="5c586a7cd4c9ac106cceda2fbd758145"/></dir><dir name="Model"><dir name="Config"><dir name="Var"><file name="Currency.php" hash="9f2f2e2e0a6e8afe4035cf86cc5df109"/><file name="Paymentaction.php" hash="2606f24f33aaae56b780e67011711b99"/></dir></dir><file name="Config.php" hash="328cae40a1233e412d3386be9bcf3ce2"/><file name="OffsiteInternetBankingPayment.php" hash="4c1d061eb4e2cb17ceeb5213d5edb01c"/><file name="Omise.php" hash="3a8bd3d669d229dfcdc624ccf6f5adac"/><file name="OmiseAccount.php" hash="f716dcd2ece38c0381a61c1ff5f1151b"/><file name="OmiseBalance.php" hash="c2ab02f0a72423d4c5bec5df62459477"/><file name="OmiseCharge.php" hash="1fa0ff4a69881f9b67f353af017b76d4"/><file name="OmiseTransfer.php" hash="5d1f80b32ee835629977c483cee53330"/><file name="Payment.php" hash="68d2c07bebe659a841a010d9ead2f411"/><file name="PaymentMethod.php" hash="580295e13553d8eac13d0ee45fb02665"/><dir name="Resource"><file name="Config.php" hash="940c4e25613da01ce6c419c9a69f9577"/></dir><dir name="Strategies"><file name="AuthorizeStrategy.php" hash="fa143b7e10a88846263e8c4098618593"/><file name="AuthorizeThreeDSecureStrategy.php" hash="8c588b44729843b1dc8d3653a189a232"/><file name="CaptureStrategy.php" hash="d7dc0a76f52de532231273070888ac06"/><file name="CaptureThreeDSecureStrategy.php" hash="6abb4dc786965b09a8f460861311cd22"/><file name="ManualCaptureStrategy.php" hash="070b050bd18474d2164b5c36bfd5f81b"/><file name="OffsiteInternetBankingStrategy.php" hash="81dec322da649bad78f64b53d0bd9232"/><file name="StrategyAbstract.php" hash="1fa0a02d32d013da0f19ee286f78b423"/><file name="StrategyInterface.php" hash="b6efc25d7cfe232cd5b597ed6dfdd4cf"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="OmiseController.php" hash="12e10c8f1b72437b5bea2a24df9ecab5"/></dir><dir name="Callback"><file name="ValidateOffsiteInternetBankingController.php" hash="263aa4054e46c41b1eb7c771bdf78ee4"/><file name="ValidateThreeDSecureController.php" hash="328e6ca6adbae177b00c4dc0208fe221"/></dir></dir><dir name="data"><dir name="omise_gateway_setup"><file name="data-install-0.0.0.1.php" hash="ace699435b757bc10c2f19a5e9555dab"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="6904e384ede6b5e4ba3203d748e9d802"/><file name="config.xml" hash="58b600ffb218b1928549a9f418f7c0af"/><file name="system.xml" hash="06f2006db585e032bcf626f7e172f629"/></dir><dir name="sql"><dir name="omise_gateway_setup"><file name="install-0.0.0.1.php" hash="93f7f4a16be87ef83a84215c72e667a1"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Omise_Gateway.xml" hash="6d354708ee537b9bd833e0916135e6bf"/></dir></target><target name="magelib"><dir name="omise-php"><file name="CHANGELOG.md" hash="af2d75bd1b753a93f3e3b3b063955626"/><file name="LICENSE" hash="4b764c86995cbfed1e733d4e1b28edc1"/><file name="README.md" hash="3d89f55c740c0db6f3ce8ae420b73bfd"/><file name="circle.yml" hash="fd592afc9207e55436bc6a50d226f5cd"/><file name="composer.json" hash="bfbc905757e707cd906f500b8a75752f"/><dir name="data"><file name="ca_certificates.pem" hash="e2c6e1ebee2ffc481d3be02aaf12c46c"/></dir><dir name="lib"><file name="Omise.php" hash="0dd224bf0853d3c99a3cbcd4ceabdcce"/><dir name="omise"><file name="OmiseAccount.php" hash="a6f6065fa76ef7558bc9133ad42202b2"/><file name="OmiseBalance.php" hash="fe3c179b7b07aebe49216ce91fe5f941"/><file name="OmiseCard.php" hash="852846c4427d826011bb609d420134ca"/><file name="OmiseCardList.php" hash="4c065f866feb0fa1f469f4348595bb45"/><file name="OmiseCharge.php" hash="7e71211c81553de18bd9052fc73b680b"/><file name="OmiseCustomer.php" hash="4ca950703e6637de1d9cd7fde744c3a7"/><file name="OmiseDispute.php" hash="5828d42b8ea897d1e38a499979d6d68d"/><file name="OmiseEvent.php" hash="5a9ca900edb659178c4daf336b258c09"/><file name="OmiseLink.php" hash="6a0e55db8c00632eff2f3cefeb5b937b"/><file name="OmiseRecipient.php" hash="8563eb9f56716f19ef8bd86c0c0669a2"/><file name="OmiseRefund.php" hash="2188a91cdc0b8fe65b1eff49bf787935"/><file name="OmiseRefundList.php" hash="47a8b2ac14867921b394f31fe283bf11"/><file name="OmiseTest.php" hash="2c3f9a6aa6e8d074e2c3b62fdef9193b"/><file name="OmiseToken.php" hash="3d47a1fb374a783aa23d913f33a35554"/><file name="OmiseTransaction.php" hash="5913fa5e050ec79b36c95a70eb878579"/><file name="OmiseTransfer.php" hash="370d34418761adb3664b66105a2e78b0"/><dir name="exception"><file name="OmiseExceptions.php" hash="cdfb3256ceda24c0aabe0e4dedfbe3ee"/></dir><dir name="res"><file name="OmiseApiResource.php" hash="fe4664e814f1e9d9d8c4a13a19c2fcd3"/><file name="OmiseVaultResource.php" hash="989cde47ba91688e1c48e9826e7b559f"/><dir name="obj"><file name="OmiseObject.php" hash="bc1cc21f51d557f8c2640696699e3556"/></dir></dir></dir></dir><file name="phpunit.xml" hash="10b1894c6e40b45e1166876607894599"/><dir name="tests"><dir name="fixtures"><dir name="api.omise.co"><file name="account-get.json" hash="dd0af5ba4e83c37dce0f528ae55265e1"/><file name="balance-get.json" hash="2411326d435dac7e322982809ad2f0a6"/><dir name="charges"><dir name="chrg_test_4zmrjgxdh4ycj2qncoj"><file name="capture-post.json" hash="2e2f1d5f84978a706c4861fd5fa32bf2"/><dir name="refunds"><file name="rfnd_test_4zmrjhlbqy587sw6fwt-get.json" hash="63abc2d0c623f9fd9b861fed39491250"/></dir><file name="refunds-get.json" hash="724c40cf4fe34aa5646b34a8291e98d7"/><file name="refunds-post.json" hash="63abc2d0c623f9fd9b861fed39491250"/></dir><file name="chrg_test_4zmrjgxdh4ycj2qncoj-get.json" hash="a2cf3a2e9a9e98e5df2b3cce956eeb9b"/><file name="chrg_test_4zmrjgxdh4ycj2qncoj-patch.json" hash="7a17e253ee103c65e630b9f12a02a0cf"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name="charges-get.json" hash="8de2a2546605ddd0463adb693b789fc4"/><file name="charges-post.json" hash="5b42f42b3d37ed1f2985cb87ed6b4c91"/><dir name="customers"><dir name="cust_test_4zmrjg2hct06ybwobqc"><dir name="cards"><file name="card_test_4zmrjfzf0spz3mh63cs-delete.json" hash="7e2355759cb45b39648e47b66d674e82"/><file name="card_test_4zmrjfzf0spz3mh63cs-get.json" hash="93db2746e1ab36922c53a5a46df49313"/><file name="card_test_4zmrjfzf0spz3mh63cs-patch.json" hash="658fe2f9d32e06ed9690c711907c35ea"/></dir></dir><file name="cust_test_4zmrjg2hct06ybwobqc-delete.json" hash="39393c074fbfc549d54a4462d0418ae2"/><file name="cust_test_4zmrjg2hct06ybwobqc-get.json" hash="2359ed7cac6f06e7ab2134b78f0a80c0"/><file name="cust_test_4zmrjg2hct06ybwobqc-patch.json" hash="c9f43bc5d6abda836af2219b89d37322"/></dir><file name="customers-get.json" hash="94004c38dc91a85508111b8aa5f6f4db"/><file name="customers-post.json" hash="9ab098c4d510a2eb19e54619bae1ac5f"/><dir name="disputes"><file name="closed-get.json" hash="3b42074f4c51022cb697043d3c269476"/><file name="dspt_test_4zgf15h89w8t775kcm8-get.json" hash="74c867b793f5c44c202d34e15b43545c"/><file name="dspt_test_4zgf15h89w8t775kcm8-patch.json" hash="4a0a57988efa7b5b2906108e27172afd"/><file name="open-get.json" hash="d594c8a57bc478840ef257a7c0a4d247"/><file name="pending-get.json" hash="c4df6e0b877658489e0dcf521104dbca"/></dir><file name="disputes-get.json" hash="a41dae7bc2453230e63028fbb012d6af"/><dir name="recipients"><file name="recp_test_508a9dytz793gxv9m77-delete.json" hash="8f2911b4009127be4fae4c74ea7807dc"/><file name="recp_test_508a9dytz793gxv9m77-get.json" hash="c2b6e427c63e74feb4805da8fc64b1aa"/><file name="recp_test_508a9dytz793gxv9m77-patch.json" hash="d2a8fdd18d6989b472297fcb01529670"/></dir><file name="recipients-get.json" hash="e932beb18693f23bce525d2b8ff80104"/><file name="recipients-post.json" hash="c2b6e427c63e74feb4805da8fc64b1aa"/><dir name="transactions"><file name="trxn_test_4zmrjhlflnz6id6q0bo-get.json" hash="07eec8be08692f87f43a9c20b37f9be4"/></dir><file name="transactions-get.json" hash="4046a654d53076e4c11439fe560820fc"/><dir name="transfers"><file name="trsf_test_4zmrjicrvw7j6uhv1l4-delete.json" hash="c33d94ae8855086a6347f231401f7d62"/><file name="trsf_test_4zmrjicrvw7j6uhv1l4-get.json" hash="324d71559ca7f3a57181ba94d8b35d10"/><file name="trsf_test_4zmrjicrvw7j6uhv1l4-patch.json" hash="14eb0ad78c28df8ee1adc2447ad5568a"/></dir><file name="transfers-get.json" hash="4661e19d530501a9bd82a8272f7f35ef"/><file name="transfers-post.json" hash="324d71559ca7f3a57181ba94d8b35d10"/></dir><dir name="vault.omise.co"><dir name="tokens"><file name="tokn_test_4zmrjhuk2rndz24a6x0-get.json" hash="bed4f9d84db36bc8ee2394d46e098299"/></dir><file name="tokens-post.json" hash="bed4f9d84db36bc8ee2394d46e098299"/></dir></dir><dir name="omise"><file name="AccountTest.php" hash="2b31cc6ec17a55849c8545fe95c62285"/><file name="BalanceTest.php" hash="e6754c58230c754dd5dbd6d181d0463f"/><file name="CardTest.php" hash="579bd6674eec60869f03d503dcac546f"/><file name="ChargeTest.php" hash="4ffa6412c4061e9ccaa0163685908c33"/><file name="CustomerTest.php" hash="77fe9af1773a27517ba7ba6999c52f78"/><file name="DisputeTest.php" hash="e28bf8dbd3f65b4005feaf54eba7a1bb"/><file name="RecipientTest.php" hash="622056f6ab1cc07e660a0e728e6aaba0"/><file name="RefundTest.php" hash="2476fee14d25e739594e2a4418fc35df"/><file name="TestConfig.php" hash="0582a4d154688d30e247d14584f5189c"/><file name="TokenTest.php" hash="2ae61745b127c9545218b98e69f7efdd"/><file name="TransactionTest.php" hash="73b76cae43f3f439852d8565ab36a343"/><file name="TransferTest.php" hash="c32dd0a74d83f2fc26a5da347870f8f6"/><dir name="exception"><file name="OmiseExceptionTest.php" hash="6935decc4d1cc6758d773139e4529a9e"/></dir><dir name="res"><dir name="obj"><file name="OmiseObjectTest.php" hash="8c9e04bd9d6afb303827bc5f5d1afec2"/></dir></dir><file name="testall.sh" hash="4821c00f7473e7abffba790d91420c8a"/></dir></dir><file name=".gitignore" hash="04c5ce480da5e27bb9a1c2da304bbbca"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="omise"><file name="dashboard.phtml" hash="857dcf59e34e484b1e0db3cb49beef7b"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="payment"><dir name="form"><file name="omisecc.phtml" hash="e65ce4f060e83204e37760e4ca813d57"/><file name="omiseoffsiteinternetbankingpayment.phtml" hash="850380c1b5a0e6647abde75aa1613727"/><file name="omise-inapplicable-method.phtml" hash="f829e89be8470f340300c6d0227ddec2"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="omise"><file name="omise-admin.css" hash="6a293ba8afa28789c349baa5e2fe1e18"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="omise"><dir name="css"><file name="offsiteinternetbankingpayment.css" hash="2f9407e493c2a769d960e03c2f63ea16"/></dir><dir name="images"><file name="bay.svg" hash="78f135040300d87f34f070141712ea39"/><file name="bbl.svg" hash="23ef91aab184f73cb0fd340d33ec78ba"/><file name="ktb.svg" hash="bccf1cdf5d4383f6403afe26111d47b6"/><file name="scb.svg" hash="341040cf1820811793b30928623cc43f"/></dir></dir></dir></dir></dir></target></contents>
|
61 |
<compatible/>
|
62 |
-
<dependencies><required><php><min>5.4.0</min><max>7.1.
|
63 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Omise_Gateway</name>
|
4 |
+
<version>1.10.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/mit-license.php">MIT License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Omise is the official payment extension which provides support for Omise payment gateway for store builders.</summary>
|
10 |
+
<description>Solidifying your checkout experience can really be hassle-free. The Omise payment extension comes complete with powerful payment features that allows you to easily and securely accept credit/debit card payments on your store.<br />
|
11 |
+
<br />
|
12 |
+
For the service pricing, <strong>we charge 3.65% per transaction. In other words, We only charge you when you make money. There is no minimum monthly volume nor minimum fee. You can start and stop using us anytime you want at no charge. However, a 7% Vat is applied on top of Omise fee.</strong><br />
|
13 |
+
Further information, please check <a href="https://www.omise.co/pricing">https://www.omise.co/pricing</a><br />
|
14 |
+
<br />
|
15 |
<h3>Accepting payments</h3>
|
16 |
+
Omise payment platform is built with the whole customer experience in mind. The service is white-labeled, meaning that your customers never get redirected offsite when making payments, and you never lose sales because of drop-offs.<br />
|
17 |
+
<br />
|
18 |
+
We also provide a JavaScript library, Omise.js which is a ready-built checkout form that is carefully designed and refined to reduce shopping friction for your customers.<br />
|
19 |
+
<br />
|
|
|
20 |
<h3>The Infrastructure</h3>
|
21 |
+
The platform is architected for the highest levels of reliability and scale with 99.99% availability. Our current transaction throughput benchmark is at 100 million transactions per day — which means congestion free for peak processing times.<br />
|
22 |
+
<br />
|
23 |
+
We don't rely on third-party payment providers to deliver domestic payments, thereby eliminating an additional point of failure while at the same time improving the customer experience.<br />
|
24 |
+
<br />
|
|
|
25 |
<h3>Security</h3>
|
26 |
+
Omise reduces your PCI scope by providing a JavaScript library which directly sends sensitive card information from your customer's browser to Omise's servers. This means that the transaction is routed through our servers, while your customer gets to complete the payments on your site.<br />
|
27 |
+
<br />
|
28 |
+
- PCI DSS 3.2 compliance<br />
|
29 |
+
- Tokenization<br />
|
30 |
+
- HTTPS/TLS<br />
|
31 |
+
- 24/7 Monitoring<br />
|
32 |
+
<br />
|
|
|
33 |
<h3>Reporting</h3>
|
34 |
+
When integrating Omise, you are provided with a dashboard which displays realtime data visualisation of your account's balances. Here, you can expect to find your balances, history of transfers, and list of any refunds/disputes you have.<br />
|
35 |
+
Transaction data can be exported in CSV format.<br />
|
36 |
+
<br />
|
37 |
+
There's also advance search which helps narrow down your search to specific dates, charges or filter transactions from specific time periods.<br />
|
38 |
+
*The Dashboard App is coming soon.<br />
|
39 |
+
<br />
|
|
|
40 |
<h3>User Guides</h3>
|
41 |
+
Please check the following link to see "Installation Instruction" & "User Guides".<br />
|
|
|
42 |
<a href="http://omise.co/magento-plugin">http://omise.co/magento-plugin</a></description>
|
43 |
<notes><h3>Highlights</h3>
|
|
|
|
|
|
|
44 |

|
45 |
+
- Add option to allows merchant config a card type support by themselves.</notes>
|
|
|
|
|
|
|
46 |
<authors><author><name>Omise</name><user>omise</user><email>apps@omise.co</email></author></authors>
|
47 |
+
<date>2017-03-08</date>
|
48 |
+
<time>10:59:23</time>
|
49 |
+
<contents><target name="magecommunity"><dir name="Omise"><dir name="Gateway"><dir name="Block"><dir name="Adminhtml"><dir name="Config"><dir name="Edit"><file name="Form.php" hash="35295e47578bfd3b034bfe6c36c8a4cc"/></dir><file name="Edit.php" hash="84fdd93ef432aba685bcac6cdb9bbe49"/></dir><dir name="Dashboard"><file name="Dashboard.php" hash="993c3d2c63d3b2a6c64940a09042155b"/></dir><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Payment.php" hash="c5c162c6c4d58bd8b479445097ae2299"/></dir></dir></dir></dir><dir name="Form"><file name="Cc.php" hash="9ece8b02993c3e9a84a5cfafe0150438"/><file name="OffsiteInternetBankingPayment.php" hash="cb1c9d4c71252c69629a7cfbe83c2537"/></dir></dir><dir name="Helper"><file name="Data.php" hash="5c586a7cd4c9ac106cceda2fbd758145"/></dir><dir name="Model"><dir name="Config"><dir name="Var"><file name="Cctype.php" hash="ac2790871eaf969ce9e705c7e499188d"/><file name="Paymentaction.php" hash="2606f24f33aaae56b780e67011711b99"/></dir></dir><file name="Config.php" hash="328cae40a1233e412d3386be9bcf3ce2"/><file name="OffsiteInternetBankingPayment.php" hash="4c1d061eb4e2cb17ceeb5213d5edb01c"/><file name="Omise.php" hash="69b12b07f8f87babc7e64ced0335d131"/><file name="OmiseAccount.php" hash="f716dcd2ece38c0381a61c1ff5f1151b"/><file name="OmiseBalance.php" hash="c2ab02f0a72423d4c5bec5df62459477"/><file name="OmiseCharge.php" hash="1fa0ff4a69881f9b67f353af017b76d4"/><file name="OmiseTransfer.php" hash="5d1f80b32ee835629977c483cee53330"/><file name="Payment.php" hash="68d2c07bebe659a841a010d9ead2f411"/><file name="PaymentMethod.php" hash="580295e13553d8eac13d0ee45fb02665"/><dir name="Resource"><file name="Config.php" hash="940c4e25613da01ce6c419c9a69f9577"/></dir><dir name="Strategies"><file name="AuthorizeStrategy.php" hash="fa143b7e10a88846263e8c4098618593"/><file name="AuthorizeThreeDSecureStrategy.php" hash="8c588b44729843b1dc8d3653a189a232"/><file name="CaptureStrategy.php" hash="d7dc0a76f52de532231273070888ac06"/><file name="CaptureThreeDSecureStrategy.php" hash="6abb4dc786965b09a8f460861311cd22"/><file name="ManualCaptureStrategy.php" hash="070b050bd18474d2164b5c36bfd5f81b"/><file name="OffsiteInternetBankingStrategy.php" hash="81dec322da649bad78f64b53d0bd9232"/><file name="StrategyAbstract.php" hash="1fa0a02d32d013da0f19ee286f78b423"/><file name="StrategyInterface.php" hash="b6efc25d7cfe232cd5b597ed6dfdd4cf"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="OmiseController.php" hash="12e10c8f1b72437b5bea2a24df9ecab5"/></dir><dir name="Callback"><file name="ValidateOffsiteInternetBankingController.php" hash="263aa4054e46c41b1eb7c771bdf78ee4"/><file name="ValidateThreeDSecureController.php" hash="328e6ca6adbae177b00c4dc0208fe221"/></dir></dir><dir name="data"><dir name="omise_gateway_setup"><file name="data-install-0.0.0.1.php" hash="ace699435b757bc10c2f19a5e9555dab"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="6904e384ede6b5e4ba3203d748e9d802"/><file name="config.xml" hash="f616d80ec99318374659a62d76a714ba"/><file name="system.xml" hash="cf6d397505b3aafa199c868f9b6f16a8"/></dir><dir name="sql"><dir name="omise_gateway_setup"><file name="install-0.0.0.1.php" hash="93f7f4a16be87ef83a84215c72e667a1"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Omise_Gateway.xml" hash="6d354708ee537b9bd833e0916135e6bf"/></dir></target><target name="magelib"><dir name="omise-php"><file name="CHANGELOG.md" hash="af2d75bd1b753a93f3e3b3b063955626"/><file name="LICENSE" hash="4b764c86995cbfed1e733d4e1b28edc1"/><file name="README.md" hash="3d89f55c740c0db6f3ce8ae420b73bfd"/><dir name="data"><file name="ca_certificates.pem" hash="e2c6e1ebee2ffc481d3be02aaf12c46c"/></dir><dir name="lib"><file name="Omise.php" hash="0dd224bf0853d3c99a3cbcd4ceabdcce"/><dir name="omise"><file name="OmiseAccount.php" hash="a6f6065fa76ef7558bc9133ad42202b2"/><file name="OmiseBalance.php" hash="fe3c179b7b07aebe49216ce91fe5f941"/><file name="OmiseCard.php" hash="852846c4427d826011bb609d420134ca"/><file name="OmiseCardList.php" hash="4c065f866feb0fa1f469f4348595bb45"/><file name="OmiseCharge.php" hash="7e71211c81553de18bd9052fc73b680b"/><file name="OmiseCustomer.php" hash="4ca950703e6637de1d9cd7fde744c3a7"/><file name="OmiseDispute.php" hash="5828d42b8ea897d1e38a499979d6d68d"/><file name="OmiseEvent.php" hash="5a9ca900edb659178c4daf336b258c09"/><file name="OmiseLink.php" hash="6a0e55db8c00632eff2f3cefeb5b937b"/><file name="OmiseRecipient.php" hash="8563eb9f56716f19ef8bd86c0c0669a2"/><file name="OmiseRefund.php" hash="2188a91cdc0b8fe65b1eff49bf787935"/><file name="OmiseRefundList.php" hash="47a8b2ac14867921b394f31fe283bf11"/><file name="OmiseTest.php" hash="2c3f9a6aa6e8d074e2c3b62fdef9193b"/><file name="OmiseToken.php" hash="3d47a1fb374a783aa23d913f33a35554"/><file name="OmiseTransaction.php" hash="5913fa5e050ec79b36c95a70eb878579"/><file name="OmiseTransfer.php" hash="370d34418761adb3664b66105a2e78b0"/><dir name="exception"><file name="OmiseExceptions.php" hash="cdfb3256ceda24c0aabe0e4dedfbe3ee"/></dir><dir name="res"><file name="OmiseApiResource.php" hash="fe4664e814f1e9d9d8c4a13a19c2fcd3"/><file name="OmiseVaultResource.php" hash="989cde47ba91688e1c48e9826e7b559f"/><dir name="obj"><file name="OmiseObject.php" hash="bc1cc21f51d557f8c2640696699e3556"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="omise"><file name="dashboard.phtml" hash="857dcf59e34e484b1e0db3cb49beef7b"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="payment"><dir name="form"><file name="omisecc.phtml" hash="e65ce4f060e83204e37760e4ca813d57"/><file name="omiseoffsiteinternetbankingpayment.phtml" hash="850380c1b5a0e6647abde75aa1613727"/><file name="omise-inapplicable-method.phtml" hash="f829e89be8470f340300c6d0227ddec2"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="omise"><file name="omise-admin.css" hash="6a293ba8afa28789c349baa5e2fe1e18"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="omise"><dir name="css"><file name="offsiteinternetbankingpayment.css" hash="2f9407e493c2a769d960e03c2f63ea16"/></dir><dir name="images"><file name="bay.svg" hash="78f135040300d87f34f070141712ea39"/><file name="bbl.svg" hash="23ef91aab184f73cb0fd340d33ec78ba"/><file name="ktb.svg" hash="bccf1cdf5d4383f6403afe26111d47b6"/><file name="scb.svg" hash="341040cf1820811793b30928623cc43f"/></dir></dir></dir></dir></dir></target></contents>
|
50 |
<compatible/>
|
51 |
+
<dependencies><required><php><min>5.4.0</min><max>7.1.2</max></php></required></dependencies>
|
52 |
</package>
|