Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
bc371cf
[change] (UMCS-120) card examples: remove double display of validatio…
Ryouzanpaku Mar 12, 2021
28043dc
[change] (UMCS-144) ApplePay: Add class for payment type.
Ryouzanpaku Mar 24, 2021
078a049
[change] (UMCS-144) Update changelog and set version 1.1.2.0
Ryouzanpaku Mar 24, 2021
fe22222
[change] (UMCS-144) Add ApplePay IdString and constructor.
Ryouzanpaku Mar 25, 2021
8381a56
[change] (UMCS-144) Add Applepay header.
Ryouzanpaku Mar 25, 2021
c6583e2
[change] (UMCS-144) Adjust supported functions of applepay.
Ryouzanpaku Mar 30, 2021
c8d1a5b
[change] (UMCS-144) check for geoLocation in response handling test.
Ryouzanpaku Mar 30, 2021
142c25c
[change] (UMCS-181) Add ApplepayAdapter and ApplepaySession class.
Ryouzanpaku Apr 7, 2021
4145e47
[change] (UMCS-145) added response handling for header in applepay cl…
Ryouzanpaku Apr 8, 2021
e1598e1
[change] (UMCS-145) Extend unit test and add integration test for app…
Ryouzanpaku Apr 8, 2021
4a0f352
[change] (UMCS-181) Moved applepay session.
Ryouzanpaku Apr 13, 2021
dbc0e26
[change] (UMCS-181) Add environment variables for applepay merchant v…
Ryouzanpaku Apr 13, 2021
6ea4b62
[change] (UMCS-181) Add Applepay adapter test.
Ryouzanpaku Apr 13, 2021
68df294
Merge pull request #31 from unzerdev/UMCS-145/feature/applepay-class
Ryouzanpaku Apr 15, 2021
4bedaa0
[change] (UMCS-181) Check domain merchantValidationUrl.
Ryouzanpaku Apr 15, 2021
68368e1
[change] (UMCS-181) Check domain merchantValidationUrl.
Ryouzanpaku Apr 15, 2021
6f803a6
[change] (UMCS-181) strip slashes of env vars.
Ryouzanpaku Apr 15, 2021
dea0f85
[change] (UMCS-185)
Ryouzanpaku Apr 15, 2021
92d4476
[change] (UMCS-181)
Ryouzanpaku Apr 15, 2021
4a1ff73
[change] (UMCS-120)
Ryouzanpaku Apr 15, 2021
be297c6
[change] (UMCS-181) - fix PR comments.
Ryouzanpaku Apr 16, 2021
cae27b0
Merge pull request #32 from unzerdev/UMCS-181/feature/applepay_session
Ryouzanpaku Apr 16, 2021
f49b9b4
[change] (UMCS-145) - fix PR comments.
Ryouzanpaku Apr 16, 2021
702cf1c
Merge pull request #33 from unzerdev/UMCS-145/feature/applepay-class
Ryouzanpaku Apr 16, 2021
9b15fb5
[change] (UMCS-144) - change wording of changelog.
Ryouzanpaku Apr 16, 2021
58e30d1
Merge pull request #34 from unzerdev/UMCS-144/feature/applepay
Ryouzanpaku Apr 16, 2021
81082d7
[change] (UMCS-144) - changelog: simplify compare links
Ryouzanpaku Apr 16, 2021
e4eb36c
Merge pull request #35 from unzerdev/refactor-changelog
Ryouzanpaku Apr 16, 2021
0341aa2
Merge branch 'develop' into UMCS-120/change/card-example-form-validation
Ryouzanpaku Apr 19, 2021
ad5db26
[change] (UMCS-120) - update changelog
Ryouzanpaku Apr 19, 2021
e102916
Merge pull request #36 from unzerdev/UMCS-120/change/card-example-for…
Ryouzanpaku Apr 20, 2021
439f9aa
[change] (UMCS-171) - update example configuration.
Ryouzanpaku Apr 20, 2021
2d84363
[change] (UMCS-148) Update documentation links.
Ryouzanpaku Apr 20, 2021
06d8e91
Merge pull request #37
Ryouzanpaku Apr 20, 2021
bee2330
Merge branch 'develop' into UMCS-148/update_docs.unzer_links
Ryouzanpaku Apr 20, 2021
64c745b
Merge pull request #38
Ryouzanpaku Apr 21, 2021
e42a42b
[change] (UMCS-181) Refactor applepay adapter to set certificates/key…
Ryouzanpaku Apr 27, 2021
74ede46
[change] (UMCS-181) Refactor applepay adapter: Add test for merchant …
Ryouzanpaku Apr 28, 2021
bb30267
Merge pull request #39
Ryouzanpaku Apr 29, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,18 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.1.1.1]
## [1.1.2.0](https://github.com/unzerdev/php-sdk/compare/1.1.1.1..1.1.2.0)
### Added
* Introduce the payment type Applepay.

### Changed
* Examples:
* Card Examples - Ensure that error messages are displayed just one time.
* Configuration - Change default protocol to https.
* Configuration - Correct vendor name of path constant `UNZER_PAPI_FOLDER`.
* Update documentation links.

## [1.1.1.1](https://github.com/unzerdev/php-sdk/compare/1.1.1.0..1.1.1.1)

### Fix
* Change debug logging of failed tests that depend on another one to work as expected.
Expand All @@ -19,13 +30,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
* Card example and paypage examples use a dummy customer-email to ensure they work with 3ds2.
* Several minor changes.

## [1.1.1.0]
## [1.1.1.0](https://github.com/unzerdev/php-sdk/compare/1.1.0.0..1.1.1.0)

### Changed
* Add email property to payment type `card` to meet 3Ds2.x regulations.
* Several minor changes.

## [1.1.0.0]
## [1.1.0.0](https://github.com/unzerdev/php-sdk/compare/1260b8314af1ac461e33f0cfb382ffcd0e87c105..1.1.0.0)

### Changed
* Rebranding of the SDK.
Expand Down Expand Up @@ -55,8 +66,4 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
* API_ERROR_AUTHORIZE_ALREADY_CANCELLED
* API_ERROR_CHARGE_ALREADY_CHARGED_BACK
* API_ERROR_BASKET_ITEM_IMAGE_INVALID_EXTENSION
* ENV_VAR_NAME_DISABLE_TEST_LOGGING

[1.1.0.0]: https://github.com/unzerdev/php-sdk/compare/1260b8314af1ac461e33f0cfb382ffcd0e87c105..1.1.0.0
[1.1.1.0]: https://github.com/unzerdev/php-sdk/compare/1.1.0.0..1.1.1.0
[1.1.1.1]: https://github.com/unzerdev/php-sdk/compare/1.1.1.0..1.1.1.1
* ENV_VAR_NAME_DISABLE_TEST_LOGGING
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ This SDK provides for an easy way to connect to the Unzer Rest API.

Please refer to the following documentation for installation instructions and usage information.

* [API Documentation](https://docs.unzer.com/docs/introduction)
* [PHP SDK Documentation](https://docs.unzer.com/docs/php-sdk)
* [How to use the examples](https://docs.unzer.com/docs/example-implementations)
* [Debugging](https://docs.unzer.com/docs/logging-and-debugging)
* [API Documentation](https://docs.unzer.com/overview)
* [PHP SDK Documentation](https://docs.unzer.com/integrate/php-sdk)
* [How to use the examples](https://docs.unzer.com/integrate/php-sdk/example-implementations)
* [Debugging](https://docs.unzer.com/integrate/php-sdk/logging-and-debugging)

## Supported payment types
* Alipay
Expand Down
2 changes: 1 addition & 1 deletion examples/Bancontact/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

<body style="margin: 70px 70px 0;">

<p><a href="https://docs.unzer.com/docs/testdata" target="_blank">Click here to open our test data in new tab.</a></p>
<p><a href="https://docs.unzer.com/reference/test-data" target="_blank">Click here to open our test data in new tab.</a></p>

<form id="payment-form" class="unzerUI form" novalidate>
<div id="bancontact-holder" class="field">
Expand Down
2 changes: 1 addition & 1 deletion examples/BankTransfer/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

<body style="margin: 70px 70px 0;">

<p><a href="https://docs.unzer.com/docs/testdata" target="_blank">Click here to open our test data in new tab.</a></p>
<p><a href="https://docs.unzer.com/reference/test-data" target="_blank">Click here to open our test data in new tab.</a></p>

<form id="payment-form" class="unzerUI form" novalidate>
<div class="field" id="error-holder" style="color: #9f3a38"> </div>
Expand Down
3 changes: 1 addition & 2 deletions examples/Card/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<li>Secret: secret3</li>
</ul>

<p><a href="https://docs.unzer.com/docs/testdata" target="_blank">Click here to open our test data in new tab.</a></p>
<p><a href="https://docs.unzer.com/reference/test-data" target="_blank">Click here to open our test data in new tab.</a></p>

<form id="payment-form" class="unzerUI form" novalidate>
<!-- This is just for the example - Start -->
Expand Down Expand Up @@ -151,7 +151,6 @@
$errorHolder.html('')
} else {
formFieldValid[e.type] = false;
$errorHolder.html(e.error)
}
payButton.disabled = !(formFieldValid.number && formFieldValid.expiry && formFieldValid.cvc);
};
Expand Down
3 changes: 1 addition & 2 deletions examples/CardExtended/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<li>Secret: secret3</li>
</ul>

<p><a href="https://docs.unzer.com/docs/testdata" target="_blank">Click here to open our test data in new tab.</a></p>
<p><a href="https://docs.unzer.com/reference/test-data" target="_blank">Click here to open our test data in new tab.</a></p>

<form id="payment-form" class="unzerUI form" novalidate>
<!-- This is just for the example - Start -->
Expand Down Expand Up @@ -160,7 +160,6 @@
$errorHolder.html('')
} else {
formFieldValid[e.type] = false;
$errorHolder.html(e.error)
}
payButton.disabled = !(
formFieldValid.number &&
Expand Down
3 changes: 1 addition & 2 deletions examples/CardRecurring/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<li>Secret: secret3</li>
</ul>

<p><a href="https://docs.unzer.com/docs/testdata" target="_blank">Click here to open our test data in new tab.</a></p>
<p><a href="https://docs.unzer.com/reference/test-data" target="_blank">Click here to open our test data in new tab.</a></p>

<form id="payment-form" class="unzerUI form" novalidate>
<div class="field">
Expand Down Expand Up @@ -124,7 +124,6 @@
$errorHolder.html('')
} else {
formFieldValid[e.type] = false;
$errorHolder.html(e.error)
}
payButton.disabled = !(formFieldValid.number && formFieldValid.expiry && formFieldValid.cvc && formFieldValid.email);
};
Expand Down
2 changes: 1 addition & 1 deletion examples/EmbeddedPayPage/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<body>

<form id="payment-form" class="unzerUI form" novalidate style="margin: 70px 70px 0;">
<p><a href="https://docs.unzer.com/docs/testdata" target="_blank">Click here to open our test data in new tab.</a></p>
<p><a href="https://docs.unzer.com/reference/test-data" target="_blank">Click here to open our test data in new tab.</a></p>
<!-- This is just for the example - Start -->
<div class="fields inline">
<label for="transaction_type">Chose the transaction type you want to test:</label>
Expand Down
2 changes: 1 addition & 1 deletion examples/IDeal/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

<body style="margin: 70px 70px 0;">

<p><a href="https://docs.unzer.com/docs/testdata" target="_blank">Click here to open our test data in new tab.</a></p>
<p><a href="https://docs.unzer.com/reference/test-data" target="_blank">Click here to open our test data in new tab.</a></p>

<form id="payment-form" class="unzerUI form" novalidate>
<div id="example-ideal" class="field"></div>
Expand Down
2 changes: 1 addition & 1 deletion examples/InstallmentSecured/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

<body style="margin: 70px 70px 0;">

<p><a href="https://docs.unzer.com/docs/testdata" target="_blank">Click here to open our test data in new tab.</a><br/></p>
<p><a href="https://docs.unzer.com/reference/test-data" target="_blank">Click here to open our test data in new tab.</a><br/></p>

<form id="payment-form-installmentsecured" class="unzerUI form unzerUI-installmentsecured__form" novalidate>
<div id="example-installment-secured">
Expand Down
2 changes: 1 addition & 1 deletion examples/InvoiceSecured/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

<body style="margin: 70px 70px 0;">

<p><a href="https://docs.unzer.com/docs/testdata" target="_blank">Click here to open our test data in new tab.</a></p>
<p><a href="https://docs.unzer.com/reference/test-data" target="_blank">Click here to open our test data in new tab.</a></p>

<form id="payment-form">
<div id="example-invoice-secured"></div>
Expand Down
2 changes: 1 addition & 1 deletion examples/PayPal/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</ul>
<strong>Attention:</strong> We recommend to create your own PayPal test account <a href="https://developer.paypal.com" target="_blank">here</a>.

<p><a href="https://docs.unzer.com/docs/testdata" target="_blank">Click here to open our test data in new tab.</a></p>
<p><a href="https://docs.unzer.com/reference/test-data" target="_blank">Click here to open our test data in new tab.</a></p>

<form id="payment-form" class="unzerUI form" novalidate>
<!-- This is just for the example - Start -->
Expand Down
2 changes: 1 addition & 1 deletion examples/PayPalRecurring/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</ul>
<strong>Attention:</strong> We recommend to create your own PayPal test account <a href="https://developer.paypal.com" target="_blank">here</a>.

<p><a href="https://docs.unzer.com/docs/testdata" target="_blank">Click here to open our test data in new tab.</a></p>
<p><a href="https://docs.unzer.com/reference/test-data" target="_blank">Click here to open our test data in new tab.</a></p>

<form id="payment-form" class="unzerUI form" novalidate>
<div class="field" id="error-holder" style="color: #9f3a38"> </div>
Expand Down
2 changes: 1 addition & 1 deletion examples/Przelewy24/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

<body style="margin: 70px 70px 0;">

<p><a href="https://docs.unzer.com/docs/testdata" target="_blank">Click here to open our test data in new tab.</a></p>
<p><a href="https://docs.unzer.com/reference/test-data" target="_blank">Click here to open our test data in new tab.</a></p>

<form id="payment-form" class="unzerUI form" novalidate>
<div id="example-przelewy24" class="field"></div>
Expand Down
2 changes: 1 addition & 1 deletion examples/SepaDirectDebitSecured/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

<body style="margin: 70px 70px 0;">

<p><a href="https://docs.unzer.com/docs/testdata" target="_blank">Click here to open our test data in new tab.</a></p>
<p><a href="https://docs.unzer.com/reference/test-data" target="_blank">Click here to open our test data in new tab.</a></p>

<form id="payment-form">
<div id="sepa-secured-IBAN" class="field">
Expand Down
2 changes: 1 addition & 1 deletion examples/Sofort/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

<body style="margin: 70px 70px 0;">

<p><a href="https://docs.unzer.com/docs/testdata" target="_blank">Click here to open our test data in new tab.</a></p>
<p><a href="https://docs.unzer.com/reference/test-data" target="_blank">Click here to open our test data in new tab.</a></p>

<form id="payment-form" class="unzerUI form" novalidate>
<div class="field" id="error-holder" style="color: #9f3a38"> </div>
Expand Down
2 changes: 1 addition & 1 deletion examples/Wechatpay/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<li>Password: 123</li>
</ul>

<p><a href="https://docs.unzer.com/docs/testdata" target="_blank">Click here to open our test data in new tab.</a></p>
<p><a href="https://docs.unzer.com/reference/test-data" target="_blank">Click here to open our test data in new tab.</a></p>

<form id="payment-form" class="unzerUI form" novalidate>
<div class="field" id="error-holder" style="color: #9f3a38"> </div>
Expand Down
7 changes: 4 additions & 3 deletions examples/_enableExamples.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@
/* Set to true if you want to enable the examples */
define('UNZER_PAPI_EXAMPLES', false);

/* Please set this to your url. It must be reachable over the net*/
define('UNZER_PAPI_URL', 'http://'.$_SERVER['HTTP_HOST']);
/* Please set this to your url. It must be reachable over the net
Webhooks will work with https only. However protocol can be changed to http if necessary. */
define('UNZER_PAPI_URL', 'https://'.$_SERVER['HTTP_HOST']);

/* Please enter the path from root directory to the example folder */
define('UNZER_PAPI_FOLDER', '/vendor/unzer/php-sdk/examples/');
define('UNZER_PAPI_FOLDER', '/vendor/unzerdev/php-sdk/examples/');

/* Please provide your own sandbox-keypair here. */
define('UNZER_PAPI_PRIVATE_KEY', 's-priv-***');
Expand Down
4 changes: 2 additions & 2 deletions examples/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ function printMessage($type, $title, $text)
server and redirected to a given RedirectUrl.
</div>
</div>
<div class="ui attached white button" onclick="location.href='https://docs.unzer.com/docs/payment-pages/';">
<div class="ui attached white button" onclick="location.href='https://docs.unzer.com/accept-payments/accept-payments-payment-page';">
Documentation
</div>
<div id="tryHostedPayPageExample" class="ui bottom attached green button" onclick="location.href='HostedPayPage/';">
Expand All @@ -327,7 +327,7 @@ function printMessage($type, $title, $text)
The Payment Page will be shown as an Overlay in your own shop.
</div>
</div>
<div class="ui attached white button" onclick="location.href='https://docs.unzer.com/docs/payment-pages/';">
<div class="ui attached white button" onclick="location.href='https://docs.unzer.com/accept-payments/accept-payments-payment-page';">
Documentation
</div>
<div id="tryEmbeddedPayPageExample" class="ui bottom attached green button" onclick="location.href='EmbeddedPayPage/';">
Expand Down
Loading