Skip to content

Commit e847abb

Browse files
committed
[doc] simplify prepare example. return url will be set implicitly
1 parent 2442acc commit e847abb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

docs/get-it-started.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ class PaypalController extends CController
9797

9898
$captureToken = $payum->getTokenFactory()->createCaptureToken($paymentName, $details, 'paypal/done');
9999

100-
$details['RETURNURL'] = $captureToken->getTargetUrl();
101-
$details['CANCELURL'] = $captureToken->getTargetUrl();
102-
$storage->updateModel($details);
103-
104100
$this->redirect($captureToken->getTargetUrl());
105101
}
106102

@@ -127,4 +123,4 @@ class PaypalController extends CController
127123
}
128124
```
129125

130-
Back to [index](index.md).
126+
Back to [index](index.md).

0 commit comments

Comments
 (0)