Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
* 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)

Expand Down
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
2 changes: 1 addition & 1 deletion 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
2 changes: 1 addition & 1 deletion 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
2 changes: 1 addition & 1 deletion 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
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
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
2 changes: 1 addition & 1 deletion src/Interfaces/ResourceServiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function updateBasket(Basket $basket): Basket;
/**
* Creates a PaymentType resource from the given PaymentType object.
* This is used to create the payment object prior to any transaction.
* Usually this will be done by the unzerUI components (https://docs.unzer.com/docs/web-integration#step-3-create-your-payment-method)
* Usually this will be done by the unzerUI components (https://docs.unzer.com/integrate/web-integration/#step-3-create-your-payment-method)
*
* @param BasePaymentType $paymentType
*
Expand Down
2 changes: 1 addition & 1 deletion src/Unzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class Unzer implements UnzerParentInterface, PaymentServiceInterface, ResourceSe
* @param string $key The private key your received from your Unzer contact person.
* @param string $locale The locale of the customer defining defining the translation (e.g. 'en-GB' or 'de-DE').
*
* @link https://docs.unzer.com/docs/web-integration#section-localization-and-languages
* @link https://docs.unzer.com/integrate/web-integration/#section-localization-and-languages
*
* @throws RuntimeException A RuntimeException will be thrown if the key is not of type private.
*/
Expand Down