From 439f9aaee0a3bdad61401055e63ba4e1ee2298c1 Mon Sep 17 00:00:00 2001 From: "David.Owusu" Date: Tue, 20 Apr 2021 15:51:14 +0200 Subject: [PATCH] [change] (UMCS-171) - update example configuration. --- CHANGELOG.md | 5 ++++- examples/_enableExamples.php | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c840f515..d25bd14d 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a * Introduce the payment type Applepay. ### Changed -* Card Examples: Ensure that error messages are displayed just one time. +* 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`. ## [1.1.1.1](https://github.com/unzerdev/php-sdk/compare/1.1.1.0..1.1.1.1) diff --git a/examples/_enableExamples.php b/examples/_enableExamples.php index 8abb33cb..748f594c 100755 --- a/examples/_enableExamples.php +++ b/examples/_enableExamples.php @@ -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-***');