Skip to content

Commit b68e0a4

Browse files
author
Andy Pieters
committed
Merge branch 'master' of https://github.com/paynl/sdk.git
2 parents 184c04a + a6277ef commit b68e0a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Set the configuration
3131
```php
3232
require __DIR__ . '/vendor/autoload.php';
3333

34+
// Replace apitoken and serviceId with your own.
3435
\Paynl\Config::setApiToken('e41f83b246b706291ea9ad798ccfd9f0fee5e0ab');
3536
\Paynl\Config::setServiceId('SL-3490-4320');
3637
```
@@ -126,8 +127,7 @@ require __DIR__ . '/vendor/autoload.php';
126127
$transaction = \Paynl\Transaction::getForReturn();
127128

128129
//manual transfer transactions are always pending when the user is returned
129-
if( $transaction->isPaid() || $transaction->isPending()
130-
){
130+
if( $transaction->isPaid() || $transaction->isPending()){
131131
// redirect to thank you page
132132

133133
} elseif($transaction->isCanceled()) {
@@ -153,7 +153,7 @@ if($transaction->isPaid()){
153153
// always start your response with TRUE|
154154
echo "TRUE| ";
155155

156-
// Optionally you can send a message after TRUE|, you can view this messages in the logs.
156+
// Optionally you can send a message after TRUE|, you can view these messages in the logs.
157157
// https://admin.pay.nl/logs/payment_state
158158
echo $transaction->isPaid()?'Paid':'Not paid';
159159

0 commit comments

Comments
 (0)