pensio_api 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +13 -5
- data/.rspec +2 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +83 -0
- data/Guardfile +23 -0
- data/LICENSE +24 -0
- data/README.md +77 -0
- data/lib/pensio_api/billing_address.rb +15 -0
- data/lib/pensio_api/callback.rb +30 -0
- data/lib/pensio_api/credentials.rb +7 -0
- data/lib/pensio_api/ecommerce.rb +13 -0
- data/lib/pensio_api/errors/bad_request.rb +15 -0
- data/lib/pensio_api/errors/gateway_error.rb +21 -0
- data/lib/pensio_api/errors/no_credentials.rb +9 -0
- data/lib/pensio_api/funding_list.rb +30 -0
- data/lib/pensio_api/funding_list_request.rb +15 -0
- data/lib/pensio_api/mixins/has_transactions.rb +36 -0
- data/lib/pensio_api/mixins/id.rb +9 -0
- data/lib/pensio_api/mixins/method_missing.rb +9 -0
- data/lib/pensio_api/mixins/request_defaults.rb +50 -0
- data/lib/pensio_api/mixins/timestamps.rb +13 -0
- data/lib/pensio_api/request.rb +18 -0
- data/lib/pensio_api/reservation.rb +28 -0
- data/lib/pensio_api/responses/base.rb +32 -0
- data/lib/pensio_api/responses/funding_list.rb +43 -0
- data/lib/pensio_api/responses/gateway_url.rb +13 -0
- data/lib/pensio_api/responses/refund.rb +17 -0
- data/lib/pensio_api/responses/reservation.rb +15 -0
- data/lib/pensio_api/responses/reservation_capture.rb +14 -0
- data/lib/pensio_api/responses/reservation_release.rb +6 -0
- data/lib/pensio_api/responses/subscription_charge.rb +21 -0
- data/lib/pensio_api/responses/subscription_failure_callback.rb +21 -0
- data/lib/pensio_api/responses/success_callback.rb +21 -0
- data/lib/pensio_api/responses/terminal.rb +41 -0
- data/lib/pensio_api/responses/transaction.rb +13 -0
- data/lib/pensio_api/subscription.rb +30 -0
- data/lib/pensio_api/terminal.rb +17 -0
- data/lib/pensio_api/transaction.rb +84 -0
- data/lib/pensio_api.rb +36 -0
- data/pensio_api.gemspec +20 -0
- data/spec/lib/pensio_api/billing_address_spec.rb +40 -0
- data/spec/lib/pensio_api/callback_spec.rb +21 -0
- data/spec/lib/pensio_api/ecommerce_spec.rb +22 -0
- data/spec/lib/pensio_api/errors/bad_request_spec.rb +31 -0
- data/spec/lib/pensio_api/errors/gateway_error_spec.rb +38 -0
- data/spec/lib/pensio_api/funding_list_request_spec.rb +17 -0
- data/spec/lib/pensio_api/funding_list_spec.rb +38 -0
- data/spec/lib/pensio_api/request_spec.rb +122 -0
- data/spec/lib/pensio_api/reservation_spec.rb +32 -0
- data/spec/lib/pensio_api/responses/base_spec.rb +68 -0
- data/spec/lib/pensio_api/responses/funding_list_spec.rb +23 -0
- data/spec/lib/pensio_api/responses/gateway_url_spec.rb +17 -0
- data/spec/lib/pensio_api/responses/refund_spec.rb +18 -0
- data/spec/lib/pensio_api/responses/reservation_capture_spec.rb +18 -0
- data/spec/lib/pensio_api/responses/reservation_release_spec.rb +12 -0
- data/spec/lib/pensio_api/responses/reservation_spec.rb +15 -0
- data/spec/lib/pensio_api/responses/subscription_charge_spec.rb +56 -0
- data/spec/lib/pensio_api/responses/subscription_failure_callback_spec.rb +48 -0
- data/spec/lib/pensio_api/responses/success_callback_spec.rb +45 -0
- data/spec/lib/pensio_api/responses/terminal_spec.rb +55 -0
- data/spec/lib/pensio_api/responses/transaction_spec.rb +56 -0
- data/spec/lib/pensio_api/subscription_spec.rb +37 -0
- data/spec/lib/pensio_api/terminal_spec.rb +18 -0
- data/spec/lib/pensio_api/transaction_spec.rb +101 -0
- data/spec/spec_helper.rb +26 -0
- data/spec/support/fixtures/bad_request_error.xml +10 -0
- data/spec/support/fixtures/capture_reservation.xml +84 -0
- data/spec/support/fixtures/charge_subscription.xml +89 -0
- data/spec/support/fixtures/create_multi_payment_request.xml +13 -0
- data/spec/support/fixtures/create_payment_request.xml +13 -0
- data/spec/support/fixtures/failure_callback.xml +76 -0
- data/spec/support/fixtures/funding_download.csv +6 -0
- data/spec/support/fixtures/funding_list.xml +43 -0
- data/spec/support/fixtures/get_terminals.xml +38 -0
- data/spec/support/fixtures/get_terminals_none.xml +12 -0
- data/spec/support/fixtures/get_terminals_single.xml +28 -0
- data/spec/support/fixtures/multiple_payments.xml +146 -0
- data/spec/support/fixtures/payments.xml +80 -0
- data/spec/support/fixtures/payments_none.xml +13 -0
- data/spec/support/fixtures/pensio_error.xml +48 -0
- data/spec/support/fixtures/refund_captured_reservation.xml +88 -0
- data/spec/support/fixtures/release_reservation.xml +72 -0
- data/spec/support/fixtures/reservation_of_fixed_amount.xml +46 -0
- data/spec/support/fixtures/reserve_subscription_charge.xml +86 -0
- data/spec/support/fixtures/setup_subscription.xml +46 -0
- data/spec/support/fixtures/subscription_failure_callback.xml +132 -0
- data/spec/support/fixtures/success_callback.xml +119 -0
- data/spec/support/helpers.rb +38 -0
- metadata +150 -15
@@ -0,0 +1,146 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<APIResponse version="20100929">
|
3
|
+
<Header>
|
4
|
+
<Date>2010-09-29T12:34:56+02:00</Date>
|
5
|
+
<Path>API/transactions</Path>
|
6
|
+
<ErrorCode>0</ErrorCode>
|
7
|
+
<ErrorMessage />
|
8
|
+
</Header>
|
9
|
+
<Body>
|
10
|
+
<ResultFilter />
|
11
|
+
<Transactions>
|
12
|
+
<Transaction>
|
13
|
+
<TransactionId>1</TransactionId>
|
14
|
+
<CardStatus>Valid</CardStatus>
|
15
|
+
<CreditCardToken>93f534a2f5d66d6ab3f16c8a7bb7e852656d4bb2</CreditCardToken>
|
16
|
+
<CreditCardMaskedPan>411111******1111</CreditCardMaskedPan>
|
17
|
+
<ThreeDSecureResult>Not_Applicable</ThreeDSecureResult>
|
18
|
+
<BlacklistToken>4f244dec4907eba0f6432e53b17a60ebcf51365e</BlacklistToken>
|
19
|
+
<ShopOrderId>myorderid</ShopOrderId>
|
20
|
+
<Shop>Pensio Shop</Shop>
|
21
|
+
<Terminal>Pensio Test Terminal</Terminal>
|
22
|
+
<TransactionStatus>captured</TransactionStatus>
|
23
|
+
<MerchantCurrency>978</MerchantCurrency>
|
24
|
+
<CardHolderCurrency>978</CardHolderCurrency>
|
25
|
+
<ReservedAmount>1.00</ReservedAmount>
|
26
|
+
<CapturedAmount>1.00</CapturedAmount>
|
27
|
+
<RefundedAmount>0</RefundedAmount>
|
28
|
+
<RecurringDefaultAmount>0</RecurringDefaultAmount>
|
29
|
+
<CreatedDate>2010-09-28 12:34:56</CreatedDate>
|
30
|
+
<UpdatedDate>2010-09-28 12:34:56</UpdatedDate>
|
31
|
+
<PaymentNature>CreditCard</PaymentNature>
|
32
|
+
<PaymentNatureService name="TestAcquirer">
|
33
|
+
<SupportsRefunds>true</SupportsRefunds>
|
34
|
+
<SupportsRelease>true</SupportsRelease>
|
35
|
+
<SupportsMultipleCaptures>true</SupportsMultipleCaptures>
|
36
|
+
<SupportsMultipleRefunds>false</SupportsMultipleRefunds>
|
37
|
+
</PaymentNatureService>
|
38
|
+
<FraudRiskScore>13.37</FraudRiskScore>
|
39
|
+
<FraudExplanation>Fraud detection explanation</FraudExplanation>
|
40
|
+
<PaymentInfos>
|
41
|
+
<PaymentInfo name="Form_Created_At">2010-09-28 12:34:56</PaymentInfo>
|
42
|
+
<PaymentInfo name="Form_Provider">Pensio Test Form</PaymentInfo>
|
43
|
+
<PaymentInfo name="Merchant_Provided_Info">Some info by merchant</PaymentInfo>
|
44
|
+
</PaymentInfos>
|
45
|
+
<CustomerInfo>
|
46
|
+
<UserAgent>Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.7
|
47
|
+
(KHTML, like Gecko) Chrome/16.0.912.41 Safari/535.7</UserAgent>
|
48
|
+
<IpAddress>127.127.127.127</IpAddress>
|
49
|
+
<Email>support@pensio.com</Email>
|
50
|
+
<Username>support</Username>
|
51
|
+
<CustomerPhone>+45 7020 0056</CustomerPhone>
|
52
|
+
<OrganisationNumber>12345678</OrganisationNumber>
|
53
|
+
<CountryOfOrigin>
|
54
|
+
<Country>DK</Country>
|
55
|
+
<Source>BillingAddress</Source>
|
56
|
+
</CountryOfOrigin>
|
57
|
+
<BillingAddress>
|
58
|
+
<Firstname>Palle</Firstname>
|
59
|
+
<Lastname>Simonsen</Lastname>
|
60
|
+
<Address>Rosenkæret 13</Address>
|
61
|
+
<City>Søborg</City>
|
62
|
+
<Region>Test</Region>
|
63
|
+
<PostalCode>2860</PostalCode>
|
64
|
+
<Country>DK</Country>
|
65
|
+
</BillingAddress>
|
66
|
+
<ShippingAddress/>
|
67
|
+
<RegisteredAddress/>
|
68
|
+
</CustomerInfo>
|
69
|
+
<ReconciliationIdentifiers>
|
70
|
+
<ReconciliationIdentifier>
|
71
|
+
<Id>f4e2533e-c578-4383-b075-bc8a6866784a</Id>
|
72
|
+
<Amount currency="978">1.00</Amount>
|
73
|
+
<Type>captured</Type>
|
74
|
+
<Date>2010-09-28T12:00:00+02:00</Date>
|
75
|
+
</ReconciliationIdentifier>
|
76
|
+
</ReconciliationIdentifiers>
|
77
|
+
</Transaction>
|
78
|
+
<Transaction>
|
79
|
+
<TransactionId>2</TransactionId>
|
80
|
+
<CardStatus>Valid</CardStatus>
|
81
|
+
<CreditCardToken>93f534a2f5d66d6ab3f16c8a7bb7e852656d4bb2</CreditCardToken>
|
82
|
+
<CreditCardMaskedPan>411111******1111</CreditCardMaskedPan>
|
83
|
+
<ThreeDSecureResult>Not_Applicable</ThreeDSecureResult>
|
84
|
+
<BlacklistToken>4f244dec4907eba0f6432e53b17a60ebcf51365e</BlacklistToken>
|
85
|
+
<ShopOrderId>myorderid</ShopOrderId>
|
86
|
+
<Shop>Pensio Shop</Shop>
|
87
|
+
<Terminal>Pensio Test Terminal</Terminal>
|
88
|
+
<TransactionStatus>captured</TransactionStatus>
|
89
|
+
<MerchantCurrency>978</MerchantCurrency>
|
90
|
+
<CardHolderCurrency>978</CardHolderCurrency>
|
91
|
+
<ReservedAmount>1.00</ReservedAmount>
|
92
|
+
<CapturedAmount>1.00</CapturedAmount>
|
93
|
+
<RefundedAmount>0</RefundedAmount>
|
94
|
+
<RecurringDefaultAmount>0</RecurringDefaultAmount>
|
95
|
+
<CreatedDate>2010-09-28 12:34:56</CreatedDate>
|
96
|
+
<UpdatedDate>2010-09-28 12:34:56</UpdatedDate>
|
97
|
+
<PaymentNature>CreditCard</PaymentNature>
|
98
|
+
<PaymentNatureService name="TestAcquirer">
|
99
|
+
<SupportsRefunds>true</SupportsRefunds>
|
100
|
+
<SupportsRelease>true</SupportsRelease>
|
101
|
+
<SupportsMultipleCaptures>true</SupportsMultipleCaptures>
|
102
|
+
<SupportsMultipleRefunds>false</SupportsMultipleRefunds>
|
103
|
+
</PaymentNatureService>
|
104
|
+
<FraudRiskScore>13.37</FraudRiskScore>
|
105
|
+
<FraudExplanation>Fraud detection explanation</FraudExplanation>
|
106
|
+
<PaymentInfos>
|
107
|
+
<PaymentInfo name="Form_Created_At">2010-09-28 12:34:56</PaymentInfo>
|
108
|
+
<PaymentInfo name="Form_Provider">Pensio Test Form</PaymentInfo>
|
109
|
+
<PaymentInfo name="Merchant_Provided_Info">Some info by merchant</PaymentInfo>
|
110
|
+
</PaymentInfos>
|
111
|
+
<CustomerInfo>
|
112
|
+
<UserAgent>Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.7
|
113
|
+
(KHTML, like Gecko) Chrome/16.0.912.41 Safari/535.7</UserAgent>
|
114
|
+
<IpAddress>127.127.127.127</IpAddress>
|
115
|
+
<Email>support@pensio.com</Email>
|
116
|
+
<Username>support</Username>
|
117
|
+
<CustomerPhone>+45 7020 0056</CustomerPhone>
|
118
|
+
<OrganisationNumber>12345678</OrganisationNumber>
|
119
|
+
<CountryOfOrigin>
|
120
|
+
<Country>DK</Country>
|
121
|
+
<Source>BillingAddress</Source>
|
122
|
+
</CountryOfOrigin>
|
123
|
+
<BillingAddress>
|
124
|
+
<Firstname>Palle</Firstname>
|
125
|
+
<Lastname>Simonsen</Lastname>
|
126
|
+
<Address>Rosenkæret 13</Address>
|
127
|
+
<City>Søborg</City>
|
128
|
+
<Region>Test</Region>
|
129
|
+
<PostalCode>2860</PostalCode>
|
130
|
+
<Country>DK</Country>
|
131
|
+
</BillingAddress>
|
132
|
+
<ShippingAddress/>
|
133
|
+
<RegisteredAddress/>
|
134
|
+
</CustomerInfo>
|
135
|
+
<ReconciliationIdentifiers>
|
136
|
+
<ReconciliationIdentifier>
|
137
|
+
<Id>f4e2533e-c578-4383-b075-bc8a6866784a</Id>
|
138
|
+
<Amount currency="978">1.00</Amount>
|
139
|
+
<Type>captured</Type>
|
140
|
+
<Date>2010-09-28T12:00:00+02:00</Date>
|
141
|
+
</ReconciliationIdentifier>
|
142
|
+
</ReconciliationIdentifiers>
|
143
|
+
</Transaction>
|
144
|
+
</Transactions>
|
145
|
+
</Body>
|
146
|
+
</APIResponse>
|
@@ -0,0 +1,80 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<APIResponse version="20100929">
|
3
|
+
<Header>
|
4
|
+
<Date>2010-09-29T12:34:56+02:00</Date>
|
5
|
+
<Path>API/transactions</Path>
|
6
|
+
<ErrorCode>0</ErrorCode>
|
7
|
+
<ErrorMessage />
|
8
|
+
</Header>
|
9
|
+
<Body>
|
10
|
+
<ResultFilter />
|
11
|
+
<Transactions>
|
12
|
+
<Transaction>
|
13
|
+
<TransactionId>1</TransactionId>
|
14
|
+
<CardStatus>Valid</CardStatus>
|
15
|
+
<CreditCardToken>93f534a2f5d66d6ab3f16c8a7bb7e852656d4bb2</CreditCardToken>
|
16
|
+
<CreditCardMaskedPan>411111******1111</CreditCardMaskedPan>
|
17
|
+
<ThreeDSecureResult>Not_Applicable</ThreeDSecureResult>
|
18
|
+
<BlacklistToken>4f244dec4907eba0f6432e53b17a60ebcf51365e</BlacklistToken>
|
19
|
+
<ShopOrderId>myorderid</ShopOrderId>
|
20
|
+
<Shop>Pensio Shop</Shop>
|
21
|
+
<Terminal>Pensio Test Terminal</Terminal>
|
22
|
+
<TransactionStatus>captured</TransactionStatus>
|
23
|
+
<MerchantCurrency>978</MerchantCurrency>
|
24
|
+
<CardHolderCurrency>978</CardHolderCurrency>
|
25
|
+
<ReservedAmount>1.00</ReservedAmount>
|
26
|
+
<CapturedAmount>1.00</CapturedAmount>
|
27
|
+
<RefundedAmount>0</RefundedAmount>
|
28
|
+
<RecurringDefaultAmount>0</RecurringDefaultAmount>
|
29
|
+
<CreatedDate>2010-09-28 12:34:56</CreatedDate>
|
30
|
+
<UpdatedDate>2010-09-28 12:34:56</UpdatedDate>
|
31
|
+
<PaymentNature>CreditCard</PaymentNature>
|
32
|
+
<PaymentNatureService name="TestAcquirer">
|
33
|
+
<SupportsRefunds>true</SupportsRefunds>
|
34
|
+
<SupportsRelease>true</SupportsRelease>
|
35
|
+
<SupportsMultipleCaptures>true</SupportsMultipleCaptures>
|
36
|
+
<SupportsMultipleRefunds>false</SupportsMultipleRefunds>
|
37
|
+
</PaymentNatureService>
|
38
|
+
<FraudRiskScore>13.37</FraudRiskScore>
|
39
|
+
<FraudExplanation>Fraud detection explanation</FraudExplanation>
|
40
|
+
<PaymentInfos>
|
41
|
+
<PaymentInfo name="Form_Created_At">2010-09-28 12:34:56</PaymentInfo>
|
42
|
+
<PaymentInfo name="Form_Provider">Pensio Test Form</PaymentInfo>
|
43
|
+
<PaymentInfo name="Merchant_Provided_Info">Some info by merchant</PaymentInfo>
|
44
|
+
</PaymentInfos>
|
45
|
+
<CustomerInfo>
|
46
|
+
<UserAgent>Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.7
|
47
|
+
(KHTML, like Gecko) Chrome/16.0.912.41 Safari/535.7</UserAgent>
|
48
|
+
<IpAddress>127.127.127.127</IpAddress>
|
49
|
+
<Email>support@pensio.com</Email>
|
50
|
+
<Username>support</Username>
|
51
|
+
<CustomerPhone>+45 7020 0056</CustomerPhone>
|
52
|
+
<OrganisationNumber>12345678</OrganisationNumber>
|
53
|
+
<CountryOfOrigin>
|
54
|
+
<Country>DK</Country>
|
55
|
+
<Source>BillingAddress</Source>
|
56
|
+
</CountryOfOrigin>
|
57
|
+
<BillingAddress>
|
58
|
+
<Firstname>Palle</Firstname>
|
59
|
+
<Lastname>Simonsen</Lastname>
|
60
|
+
<Address>Rosenkæret 13</Address>
|
61
|
+
<City>Søborg</City>
|
62
|
+
<Region>Test</Region>
|
63
|
+
<PostalCode>2860</PostalCode>
|
64
|
+
<Country>DK</Country>
|
65
|
+
</BillingAddress>
|
66
|
+
<ShippingAddress/>
|
67
|
+
<RegisteredAddress/>
|
68
|
+
</CustomerInfo>
|
69
|
+
<ReconciliationIdentifiers>
|
70
|
+
<ReconciliationIdentifier>
|
71
|
+
<Id>f4e2533e-c578-4383-b075-bc8a6866784a</Id>
|
72
|
+
<Amount currency="978">1.00</Amount>
|
73
|
+
<Type>captured</Type>
|
74
|
+
<Date>2010-09-28T12:00:00+02:00</Date>
|
75
|
+
</ReconciliationIdentifier>
|
76
|
+
</ReconciliationIdentifiers>
|
77
|
+
</Transaction>
|
78
|
+
</Transactions>
|
79
|
+
</Body>
|
80
|
+
</APIResponse>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<APIResponse version="20100929">
|
3
|
+
<Header>
|
4
|
+
<Date>2010-09-29T12:34:56+02:00</Date>
|
5
|
+
<Path>API/transactions</Path>
|
6
|
+
<ErrorCode>0</ErrorCode>
|
7
|
+
<ErrorMessage />
|
8
|
+
</Header>
|
9
|
+
<Body>
|
10
|
+
<ResultFilter />
|
11
|
+
<Result />
|
12
|
+
</Body>
|
13
|
+
</APIResponse>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<APIResponse version="20100929">
|
3
|
+
<Header>
|
4
|
+
<Date>2010-09-29T12:34:56+02:00</Date>
|
5
|
+
<Path>API/yourApiCall</Path>
|
6
|
+
<ErrorCode>0</ErrorCode>
|
7
|
+
<ErrorMessage></ErrorMessage>
|
8
|
+
</Header>
|
9
|
+
<Body>
|
10
|
+
<Result>Error</Result>
|
11
|
+
<MerchantErrorMessage>Error message for you the merchant</MerchantErrorMessage>
|
12
|
+
<CardHolderErrorMessage>Error message that is safe to be read by the cardholder</CardHolderErrorMessage>
|
13
|
+
<Transactions>
|
14
|
+
<Transaction>
|
15
|
+
<TransactionId>3</TransactionId>
|
16
|
+
<CardStatus>Valid</CardStatus>
|
17
|
+
<CreditCardToken>85c1d13de7b5dceb6b739829cc27e089631b0fda</CreditCardToken>
|
18
|
+
<CreditCardMaskedPan>411111******1111</CreditCardMaskedPan>
|
19
|
+
<ThreeDSecureResult>Not_Applicable</ThreeDSecureResult>
|
20
|
+
<BlacklistToken>4f244dec4907eba0f6432e53b17a60ebcf51365e</BlacklistToken>
|
21
|
+
<ShopOrderId>myorder123</ShopOrderId>
|
22
|
+
<Shop>Pensio Functional Test Shop</Shop>
|
23
|
+
<Terminal>Pensio Test Terminal</Terminal>
|
24
|
+
<TransactionStatus>preauth</TransactionStatus>
|
25
|
+
<MerchantCurrency>978</MerchantCurrency>
|
26
|
+
<CardHolderCurrency>978</CardHolderCurrency>
|
27
|
+
<ReservedAmount>0</ReservedAmount>
|
28
|
+
<CapturedAmount>0</CapturedAmount>
|
29
|
+
<RefundedAmount>0</RefundedAmount>
|
30
|
+
<RecurringDefaultAmount>0</RecurringDefaultAmount>
|
31
|
+
<CreatedDate>2010-09-28 12:34:56</CreatedDate>
|
32
|
+
<UpdatedDate>2010-09-28 12:34:56</UpdatedDate>
|
33
|
+
<PaymentNature>CreditCard</PaymentNature>
|
34
|
+
<PaymentNatureService name="TestAcquirer">
|
35
|
+
<SupportsRefunds>true</SupportsRefunds>
|
36
|
+
<SupportsRelease>true</SupportsRelease>
|
37
|
+
<SupportsMultipleCaptures>true</SupportsMultipleCaptures>
|
38
|
+
<SupportsMultipleRefunds>false</SupportsMultipleRefunds>
|
39
|
+
</PaymentNatureService>
|
40
|
+
<PaymentInfos>
|
41
|
+
<PaymentInfo name="Payment_Type">payment</PaymentInfo>
|
42
|
+
</PaymentInfos>
|
43
|
+
<CustomerInfo/>
|
44
|
+
<ReconciliationIdentifiers/>
|
45
|
+
</Transaction>
|
46
|
+
</Transactions>
|
47
|
+
</Body>
|
48
|
+
</APIResponse>
|
@@ -0,0 +1,88 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<APIResponse version="20100929">
|
3
|
+
<Header>
|
4
|
+
<Date>2010-09-29T12:34:56+02:00</Date>
|
5
|
+
<Path>API/refundCapturedReservation</Path>
|
6
|
+
<ErrorCode>0</ErrorCode>
|
7
|
+
<ErrorMessage></ErrorMessage>
|
8
|
+
</Header>
|
9
|
+
<Body>
|
10
|
+
<RefundedAmount>0.12</RefundedAmount>
|
11
|
+
<RefundCurrency>978</RefundCurrency>
|
12
|
+
<Result>Success</Result>
|
13
|
+
<RefundResult>Success</RefundResult> <!-- deprecated -->
|
14
|
+
<Transactions>
|
15
|
+
<Transaction>
|
16
|
+
<TransactionId>1</TransactionId>
|
17
|
+
<CardStatus>Valid</CardStatus>
|
18
|
+
<CreditCardToken>93f534a2f5d66d6ab3f16c8a7bb7e852656d4bb2</CreditCardToken>
|
19
|
+
<CreditCardMaskedPan>411111******1111</CreditCardMaskedPan>
|
20
|
+
<ThreeDSecureResult>Not_Applicable</ThreeDSecureResult>
|
21
|
+
<BlacklistToken>4f244dec4907eba0f6432e53b17a60ebcf51365e</BlacklistToken>
|
22
|
+
<ShopOrderId>myorderid</ShopOrderId>
|
23
|
+
<Shop>Pensio Shop</Shop>
|
24
|
+
<Terminal>Pensio Test Terminal</Terminal>
|
25
|
+
<TransactionStatus>refunded</TransactionStatus>
|
26
|
+
<MerchantCurrency>978</MerchantCurrency>
|
27
|
+
<CardHolderCurrency>978</CardHolderCurrency>
|
28
|
+
<ReservedAmount>1.00</ReservedAmount>
|
29
|
+
<CapturedAmount>1.00</CapturedAmount>
|
30
|
+
<RefundedAmount>0.12</RefundedAmount>
|
31
|
+
<RecurringDefaultAmount>0</RecurringDefaultAmount>
|
32
|
+
<CreatedDate>2010-09-28 11:34:56</CreatedDate>
|
33
|
+
<UpdatedDate>2010-09-28 13:00:00</UpdatedDate>
|
34
|
+
<PaymentNature>CreditCard</PaymentNature>
|
35
|
+
<PaymentNatureService name="TestAcquirer">
|
36
|
+
<SupportsRefunds>true</SupportsRefunds>
|
37
|
+
<SupportsRelease>true</SupportsRelease>
|
38
|
+
<SupportsMultipleCaptures>true</SupportsMultipleCaptures>
|
39
|
+
<SupportsMultipleRefunds>false</SupportsMultipleRefunds>
|
40
|
+
</PaymentNatureService>
|
41
|
+
<FraudRiskScore>13.37</FraudRiskScore>
|
42
|
+
<FraudExplanation>Fraud detection explanation</FraudExplanation>
|
43
|
+
<PaymentInfos>
|
44
|
+
<PaymentInfo name="Form_Created_At">2010-09-28 12:34:56</PaymentInfo>
|
45
|
+
<PaymentInfo name="Form_Provider">Pensio Test Form</PaymentInfo>
|
46
|
+
<PaymentInfo name="Merchant_Provided_Info">Some info by merchant</PaymentInfo>
|
47
|
+
</PaymentInfos>
|
48
|
+
<CustomerInfo>
|
49
|
+
<UserAgent>Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.41 Safari/535.7</UserAgent>
|
50
|
+
<IpAddress>127.127.127.127</IpAddress>
|
51
|
+
<Email>support@pensio.com</Email>
|
52
|
+
<Username>support</Username>
|
53
|
+
<CustomerPhone>+45 7020 0056</CustomerPhone>
|
54
|
+
<OrganisationNumber>12345678</OrganisationNumber>
|
55
|
+
<CountryOfOrigin>
|
56
|
+
<Country>DK</Country>
|
57
|
+
<Source>BillingAddress</Source>
|
58
|
+
</CountryOfOrigin>
|
59
|
+
<BillingAddress>
|
60
|
+
<Firstname>Palle</Firstname>
|
61
|
+
<Lastname>Simonsen</Lastname>
|
62
|
+
<Address>Rosenkæret 13</Address>
|
63
|
+
<City>Søborg</City>
|
64
|
+
<PostalCode>2860</PostalCode>
|
65
|
+
<Country>DK</Country>
|
66
|
+
</BillingAddress>
|
67
|
+
<ShippingAddress/>
|
68
|
+
<RegisteredAddress/>
|
69
|
+
</CustomerInfo>
|
70
|
+
|
71
|
+
<ReconciliationIdentifiers>
|
72
|
+
<ReconciliationIdentifier>
|
73
|
+
<Id>f4e2533e-c578-4383-b075-bc8a6866784a</Id>
|
74
|
+
<Amount currency="978">1.00</Amount>
|
75
|
+
<Type>captured</Type>
|
76
|
+
<Date>2010-09-28T12:00:00+02:00</Date>
|
77
|
+
</ReconciliationIdentifier>
|
78
|
+
<ReconciliationIdentifier>
|
79
|
+
<Id>8774bcef-7549-4497-948e-82280ca69f80</Id>
|
80
|
+
<Amount currency="978">0.12</Amount>
|
81
|
+
<Type>refunded</Type>
|
82
|
+
<Date>2010-09-28T13:00:00+02:00</Date>
|
83
|
+
</ReconciliationIdentifier>
|
84
|
+
</ReconciliationIdentifiers>
|
85
|
+
</Transaction>
|
86
|
+
</Transactions>
|
87
|
+
</Body>
|
88
|
+
</APIResponse>
|
@@ -0,0 +1,72 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<APIResponse version="20100929">
|
3
|
+
<Header>
|
4
|
+
<Date>2010-09-29T12:34:56+02:00</Date>
|
5
|
+
<Path>API/releaseReservation</Path>
|
6
|
+
<ErrorCode>0</ErrorCode>
|
7
|
+
<ErrorMessage></ErrorMessage>
|
8
|
+
</Header>
|
9
|
+
<Body>
|
10
|
+
<Result>Success</Result>
|
11
|
+
<CancelResult>Success</CancelResult> <!-- deprecated -->
|
12
|
+
<Transactions>
|
13
|
+
<Transaction>
|
14
|
+
<TransactionId>1</TransactionId>
|
15
|
+
<CardStatus>Valid</CardStatus>
|
16
|
+
<CreditCardToken>93f534a2f5d66d6ab3f16c8a7bb7e852656d4bb2</CreditCardToken>
|
17
|
+
<CreditCardMaskedPan>411111******1111</CreditCardMaskedPan>
|
18
|
+
<ThreeDSecureResult>Not_Applicable</ThreeDSecureResult>
|
19
|
+
<BlacklistToken>4f244dec4907eba0f6432e53b17a60ebcf51365e</BlacklistToken>
|
20
|
+
<ShopOrderId>myorderid</ShopOrderId>
|
21
|
+
<Shop>Pensio Shop</Shop>
|
22
|
+
<Terminal>Pensio Test Terminal</Terminal>
|
23
|
+
<TransactionStatus>released</TransactionStatus>
|
24
|
+
<MerchantCurrency>978</MerchantCurrency>
|
25
|
+
<CardHolderCurrency>978</CardHolderCurrency>
|
26
|
+
<ReservedAmount>1.00</ReservedAmount>
|
27
|
+
<CapturedAmount>0</CapturedAmount>
|
28
|
+
<RefundedAmount>0</RefundedAmount>
|
29
|
+
<RecurringDefaultAmount>0</RecurringDefaultAmount>
|
30
|
+
<CreatedDate>2010-09-28 12:34:56</CreatedDate>
|
31
|
+
<UpdatedDate>2010-09-28 12:34:56</UpdatedDate>
|
32
|
+
<PaymentNature>CreditCard</PaymentNature>
|
33
|
+
<PaymentNatureService name="TestAcquirer">
|
34
|
+
<SupportsRefunds>true</SupportsRefunds>
|
35
|
+
<SupportsRelease>true</SupportsRelease>
|
36
|
+
<SupportsMultipleCaptures>true</SupportsMultipleCaptures>
|
37
|
+
<SupportsMultipleRefunds>false</SupportsMultipleRefunds>
|
38
|
+
</PaymentNatureService>
|
39
|
+
<FraudRiskScore>13.37</FraudRiskScore>
|
40
|
+
<FraudExplanation>Fraud detection explanation</FraudExplanation>
|
41
|
+
<PaymentInfos>
|
42
|
+
<PaymentInfo name="Form_Created_At">2010-09-28 12:34:56</PaymentInfo>
|
43
|
+
<PaymentInfo name="Form_Provider">Pensio Test Form</PaymentInfo>
|
44
|
+
<PaymentInfo name="Merchant_Provided_Info">Some info by merchant</PaymentInfo>
|
45
|
+
</PaymentInfos>
|
46
|
+
<CustomerInfo>
|
47
|
+
<UserAgent>Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.41 Safari/535.7</UserAgent>
|
48
|
+
<IpAddress>127.127.127.127</IpAddress>
|
49
|
+
<Email>support@pensio.com</Email>
|
50
|
+
<Username>support</Username>
|
51
|
+
<CustomerPhone>+45 7020 0056</CustomerPhone>
|
52
|
+
<OrganisationNumber>12345678</OrganisationNumber>
|
53
|
+
<CountryOfOrigin>
|
54
|
+
<Country>DK</Country>
|
55
|
+
<Source>BillingAddress</Source>
|
56
|
+
</CountryOfOrigin>
|
57
|
+
<BillingAddress>
|
58
|
+
<Firstname>Palle</Firstname>
|
59
|
+
<Lastname>Simonsen</Lastname>
|
60
|
+
<Address>Rosenkæret 13</Address>
|
61
|
+
<City>Søborg</City>
|
62
|
+
<PostalCode>2860</PostalCode>
|
63
|
+
<Country>DK</Country>
|
64
|
+
</BillingAddress>
|
65
|
+
<ShippingAddress/>
|
66
|
+
<RegisteredAddress/>
|
67
|
+
</CustomerInfo>
|
68
|
+
<ReconciliationIdentifiers/>
|
69
|
+
</Transaction>
|
70
|
+
</Transactions>
|
71
|
+
</Body>
|
72
|
+
</APIResponse>
|
@@ -0,0 +1,46 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<APIResponse version="20100929">
|
3
|
+
<Header>
|
4
|
+
<Date>2010-09-29T12:34:56+02:00</Date>
|
5
|
+
<Path>API/reservationOfFixedAmount</Path>
|
6
|
+
<ErrorCode>0</ErrorCode>
|
7
|
+
<ErrorMessage></ErrorMessage>
|
8
|
+
</Header>
|
9
|
+
<Body>
|
10
|
+
<Result>Success</Result>
|
11
|
+
<Transactions>
|
12
|
+
<Transaction>
|
13
|
+
<TransactionId>3</TransactionId>
|
14
|
+
<CardStatus>Valid</CardStatus>
|
15
|
+
<CreditCardToken>85c1d13de7b5dceb6b739829cc27e089631b0fda</CreditCardToken>
|
16
|
+
<CreditCardMaskedPan>411111******1111</CreditCardMaskedPan>
|
17
|
+
<ThreeDSecureResult>Not_Applicable</ThreeDSecureResult>
|
18
|
+
<BlacklistToken>4f244dec4907eba0f6432e53b17a60ebcf51365e</BlacklistToken>
|
19
|
+
<ShopOrderId>myorder123</ShopOrderId>
|
20
|
+
<Shop>Pensio Functional Test Shop</Shop>
|
21
|
+
<Terminal>Pensio Test Terminal</Terminal>
|
22
|
+
<TransactionStatus>preauth</TransactionStatus>
|
23
|
+
<MerchantCurrency>978</MerchantCurrency>
|
24
|
+
<CardHolderCurrency>978</CardHolderCurrency>
|
25
|
+
<ReservedAmount>2499.95</ReservedAmount>
|
26
|
+
<CapturedAmount>0</CapturedAmount>
|
27
|
+
<RefundedAmount>0</RefundedAmount>
|
28
|
+
<RecurringDefaultAmount>0</RecurringDefaultAmount>
|
29
|
+
<CreatedDate>2010-09-28 12:34:56</CreatedDate>
|
30
|
+
<UpdatedDate>2010-09-28 12:34:56</UpdatedDate>
|
31
|
+
<PaymentNature>CreditCard</PaymentNature>
|
32
|
+
<PaymentNatureService name="TestAcquirer">
|
33
|
+
<SupportsRefunds>true</SupportsRefunds>
|
34
|
+
<SupportsRelease>true</SupportsRelease>
|
35
|
+
<SupportsMultipleCaptures>true</SupportsMultipleCaptures>
|
36
|
+
<SupportsMultipleRefunds>false</SupportsMultipleRefunds>
|
37
|
+
</PaymentNatureService>
|
38
|
+
<PaymentInfos>
|
39
|
+
<PaymentInfo name="Payment_Type">payment</PaymentInfo>
|
40
|
+
</PaymentInfos>
|
41
|
+
<CustomerInfo/>
|
42
|
+
<ReconciliationIdentifiers/>
|
43
|
+
</Transaction>
|
44
|
+
</Transactions>
|
45
|
+
</Body>
|
46
|
+
</APIResponse>
|
@@ -0,0 +1,86 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<APIResponse version="20100929">
|
3
|
+
<Header>
|
4
|
+
<Date>2010-09-29T12:34:56+02:00</Date>
|
5
|
+
<Path>API/reserveSubscriptionCharge</Path>
|
6
|
+
<ErrorCode>0</ErrorCode>
|
7
|
+
<ErrorMessage></ErrorMessage>
|
8
|
+
</Header>
|
9
|
+
<Body>
|
10
|
+
<Result>Success</Result>
|
11
|
+
<Transactions>
|
12
|
+
<Transaction>
|
13
|
+
<TransactionId>1</TransactionId>
|
14
|
+
<CardStatus>Valid</CardStatus>
|
15
|
+
<CreditCardToken>93f534a2f5d66d6ab3f16c8a7bb7e852656d4bb2</CreditCardToken>
|
16
|
+
<CreditCardMaskedPan>411111******1111</CreditCardMaskedPan>
|
17
|
+
<ThreeDSecureResult>Not_Applicable</ThreeDSecureResult>
|
18
|
+
<BlacklistToken>4f244dec4907eba0f6432e53b17a60ebcf51365e</BlacklistToken>
|
19
|
+
<ShopOrderId>myorderid</ShopOrderId>
|
20
|
+
<Shop>Pensio Shop</Shop>
|
21
|
+
<Terminal>Pensio Test Terminal</Terminal>
|
22
|
+
<TransactionStatus>recurring_confirmed</TransactionStatus>
|
23
|
+
<MerchantCurrency>978</MerchantCurrency>
|
24
|
+
<CardHolderCurrency>978</CardHolderCurrency>
|
25
|
+
<ReservedAmount>0</ReservedAmount>
|
26
|
+
<CapturedAmount>0</CapturedAmount>
|
27
|
+
<RefundedAmount>0</RefundedAmount>
|
28
|
+
<RecurringDefaultAmount>10.00</RecurringDefaultAmount>
|
29
|
+
<CreatedDate>2010-09-28 12:34:56</CreatedDate>
|
30
|
+
<UpdatedDate>2010-09-28 12:34:56</UpdatedDate>
|
31
|
+
<PaymentNature>CreditCard</PaymentNature>
|
32
|
+
<PaymentNatureService name="TestAcquirer">
|
33
|
+
<SupportsRefunds>true</SupportsRefunds>
|
34
|
+
<SupportsRelease>true</SupportsRelease>
|
35
|
+
<SupportsMultipleCaptures>true</SupportsMultipleCaptures>
|
36
|
+
<SupportsMultipleRefunds>false</SupportsMultipleRefunds>
|
37
|
+
</PaymentNatureService>
|
38
|
+
<FraudRiskScore>13.37</FraudRiskScore>
|
39
|
+
<FraudExplanation>Fraud detection explanation</FraudExplanation>
|
40
|
+
<PaymentInfos>
|
41
|
+
<PaymentInfo name="Form_Created_At">2010-09-28 12:34:56</PaymentInfo>
|
42
|
+
<PaymentInfo name="Form_Provider">Pensio Test Form</PaymentInfo>
|
43
|
+
<PaymentInfo name="Merchant_Provided_Info">Some info by merchant</PaymentInfo>
|
44
|
+
</PaymentInfos>
|
45
|
+
<CustomerInfo/>
|
46
|
+
<ReconciliationIdentifiers/>
|
47
|
+
</Transaction>
|
48
|
+
<Transaction>
|
49
|
+
<TransactionId>2</TransactionId>
|
50
|
+
<CardStatus>Valid</CardStatus>
|
51
|
+
<CreditCardToken>93f534a2f5d66d6ab3f16c8a7bb7e852656d4bb2</CreditCardToken>
|
52
|
+
<CreditCardMaskedPan>411111******1111</CreditCardMaskedPan>
|
53
|
+
<ThreeDSecureResult>Not_Applicable</ThreeDSecureResult>
|
54
|
+
<BlacklistToken>4f244dec4907eba0f6432e53b17a60ebcf51365e</BlacklistToken>
|
55
|
+
<ShopOrderId>myorderid</ShopOrderId>
|
56
|
+
<Shop>Pensio Shop</Shop>
|
57
|
+
<Terminal>Pensio Test Terminal</Terminal>
|
58
|
+
<TransactionStatus>preauth</TransactionStatus>
|
59
|
+
<MerchantCurrency>978</MerchantCurrency>
|
60
|
+
<CardHolderCurrency>978</CardHolderCurrency>
|
61
|
+
<ReservedAmount>5.00</ReservedAmount>
|
62
|
+
<CapturedAmount>0</CapturedAmount>
|
63
|
+
<RefundedAmount>0</RefundedAmount>
|
64
|
+
<RecurringDefaultAmount>0</RecurringDefaultAmount>
|
65
|
+
<CreatedDate>2010-09-28 12:34:56</CreatedDate>
|
66
|
+
<UpdatedDate>2010-09-28 12:34:56</UpdatedDate>
|
67
|
+
<PaymentNature>CreditCard</PaymentNature>
|
68
|
+
<PaymentNatureService name="TestAcquirer">
|
69
|
+
<SupportsRefunds>true</SupportsRefunds>
|
70
|
+
<SupportsRelease>true</SupportsRelease>
|
71
|
+
<SupportsMultipleCaptures>true</SupportsMultipleCaptures>
|
72
|
+
<SupportsMultipleRefunds>false</SupportsMultipleRefunds>
|
73
|
+
</PaymentNatureService>
|
74
|
+
<FraudRiskScore>13.37</FraudRiskScore>
|
75
|
+
<FraudExplanation>Fraud detection explanation</FraudExplanation>
|
76
|
+
<PaymentInfos>
|
77
|
+
<PaymentInfo name="Form_Created_At">2010-09-28 12:34:56</PaymentInfo>
|
78
|
+
<PaymentInfo name="Form_Provider">Pensio Test Form</PaymentInfo>
|
79
|
+
<PaymentInfo name="Merchant_Provided_Info">Some info by merchant</PaymentInfo>
|
80
|
+
</PaymentInfos>
|
81
|
+
<CustomerInfo/>
|
82
|
+
<ReconciliationIdentifiers/>
|
83
|
+
</Transaction>
|
84
|
+
</Transactions>
|
85
|
+
</Body>
|
86
|
+
</APIResponse>
|
@@ -0,0 +1,46 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<APIResponse version="20100929">
|
3
|
+
<Header>
|
4
|
+
<Date>2010-09-29T12:34:56+02:00</Date>
|
5
|
+
<Path>API/setupSubscription</Path>
|
6
|
+
<ErrorCode>0</ErrorCode>
|
7
|
+
<ErrorMessage></ErrorMessage>
|
8
|
+
</Header>
|
9
|
+
<Body>
|
10
|
+
<Result>Success</Result>
|
11
|
+
<Transactions>
|
12
|
+
<Transaction>
|
13
|
+
<TransactionId>3</TransactionId>
|
14
|
+
<CardStatus>Valid</CardStatus>
|
15
|
+
<CreditCardToken>85c1d13de7b5dceb6b739829cc27e089631b0fda</CreditCardToken>
|
16
|
+
<CreditCardMaskedPan>411111******1111</CreditCardMaskedPan>
|
17
|
+
<ThreeDSecureResult>Not_Applicable</ThreeDSecureResult>
|
18
|
+
<BlacklistToken>4f244dec4907eba0f6432e53b17a60ebcf51365e</BlacklistToken>
|
19
|
+
<ShopOrderId>myorder123</ShopOrderId>
|
20
|
+
<Shop>Pensio Functional Test Shop</Shop>
|
21
|
+
<Terminal>Pensio Test Terminal</Terminal>
|
22
|
+
<TransactionStatus>preauth</TransactionStatus>
|
23
|
+
<MerchantCurrency>978</MerchantCurrency>
|
24
|
+
<CardHolderCurrency>978</CardHolderCurrency>
|
25
|
+
<ReservedAmount>2499.95</ReservedAmount>
|
26
|
+
<CapturedAmount>0</CapturedAmount>
|
27
|
+
<RefundedAmount>0</RefundedAmount>
|
28
|
+
<RecurringDefaultAmount>0</RecurringDefaultAmount>
|
29
|
+
<CreatedDate>2010-09-28 12:34:56</CreatedDate>
|
30
|
+
<UpdatedDate>2010-09-28 12:34:56</UpdatedDate>
|
31
|
+
<PaymentNature>CreditCard</PaymentNature>
|
32
|
+
<PaymentNatureService name="TestAcquirer">
|
33
|
+
<SupportsRefunds>true</SupportsRefunds>
|
34
|
+
<SupportsRelease>true</SupportsRelease>
|
35
|
+
<SupportsMultipleCaptures>true</SupportsMultipleCaptures>
|
36
|
+
<SupportsMultipleRefunds>false</SupportsMultipleRefunds>
|
37
|
+
</PaymentNatureService>
|
38
|
+
<PaymentInfos>
|
39
|
+
<PaymentInfo name="Payment_Type">payment</PaymentInfo>
|
40
|
+
</PaymentInfos>
|
41
|
+
<CustomerInfo/>
|
42
|
+
<ReconciliationIdentifiers/>
|
43
|
+
</Transaction>
|
44
|
+
</Transactions>
|
45
|
+
</Body>
|
46
|
+
</APIResponse>
|