From 49bdd37c72b788b6137b87827548574332f4eb6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Hrivn=C3=A1k?= Date: Tue, 13 Oct 2020 17:39:42 +0200 Subject: [PATCH] update doc - required params (#73) closes #71 --- .docs/README.md | 6 ++++-- examples/create.php | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.docs/README.md b/.docs/README.md index b958d95..3a809c3 100644 --- a/.docs/README.md +++ b/.docs/README.md @@ -142,8 +142,10 @@ $payment = [ 'additional_params' => [ ['name' => 'invoicenumber', 'value' => '2017001'], ], - 'return_url' => 'http://www.myeshop.cz/api/gopay/return', - 'notify_url' => 'http://www.myeshop.cz/api/gopay/notify', + 'callback' => [ + 'return_url' => 'http://www.myeshop.cz/api/gopay/return', + 'notify_url' => 'http://www.myeshop.cz/api/gopay/notify', + ], 'lang' => Language::CZ, ]; ``` diff --git a/examples/create.php b/examples/create.php index 0695d0d..6ff6f4c 100644 --- a/examples/create.php +++ b/examples/create.php @@ -56,8 +56,10 @@ 'additional_params' => [ ['name' => 'invoicenumber', 'value' => '2017001'], ], - 'return_url' => 'http://www.myeshop.cz/api/gopay/return', - 'notify_url' => 'http://www.myeshop.cz/api/gopay/notify', + 'callback' => [ + 'return_url' => 'http://www.myeshop.cz/api/gopay/return', + 'notify_url' => 'http://www.myeshop.cz/api/gopay/notify', + ], 'lang' => Language::CZ, ];