When the checkout flow gets completed it doesn't create a payment until the method onNotify gets called.
This patch implements the method onReturn to create a new Payment with state New and total paid 0, so when the method onNotify it's called, the payment will be updated.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | implement-on-return-method-3087881-6.patch | 3.71 KB | wmb1207 |
Comments
Comment #2
wmb1207 commentedComment #3
wmb1207 commentedComment #4
gerzenstl commentedOverall it looks good. But, there is one thing we need to verify.
On lines 140 - 143:
Either we use $orderId because $order->id() results in null
or
$order->id() needs to be replaced by another variable and $orderId isn't needed.
Please check
Comment #5
gerzenstl commentedComment #6
wmb1207 commentedYou're right, $order->id() must be replaced with $orderId. Here it's the updated patch
Comment #7
gerzenstl commentedPatch from #6 looks good.
Comment #8
gerzenstl commentedComment #9
gerzenstl commentedComment #10
gerzenstl commented