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, ];