Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the PHP quick starts to remove the redirect and redirectLink methods #5

Merged
merged 2 commits into from
May 13, 2019
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 2 additions & 8 deletions docs/php_quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,8 @@ If request was successful, you should consider saving the poll url sent from Pay

```php
if($response->success()) {
// Redirect the user to Paynow
$response->redirect();

// Or if you prefer more control, get the link to redirect the user to, then use it as you see fit
$link = $response->redirectLink();
$link = $response->redirectUrl();

// Get the poll url (used to check the status of a transaction). You might want to save this in your DB
$pollUrl = $response->pollUrl();
Expand Down Expand Up @@ -164,11 +161,8 @@ $response = $paynow->send($payment);


if($response->success()) {
// Redirect the user to Paynow
$response->redirect();

// Or if you prefer more control, get the link to redirect the user to, then use it as you see fit
$link = $response->redirectLink();
$link = $response->redirectUrl();

$pollUrl = $response->pollUrl();

Expand Down
8 changes: 2 additions & 6 deletions website/pages/en/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,8 @@ $response = $paynow->send($payment);
<MarkdownBlock>
{`\`\`\`php
if($response->success()) {
// Redirect the user to Paynow
$response->redirect();

// Or if you prefer more control, get the link to
// redirect the user to, then use it as you see fit
$link = $response->redirectLink();
// Get the link to redirect the user to, then use it as you see fit
$link = $response->redirectUrl();

// Get the poll url (used to check the status of a transaction).
// You might want to save this in your DB
Expand Down