1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Enable Mollie webhooks

This commit is contained in:
Hillel Coren 2017-07-06 12:45:44 +03:00
parent 834bce5eb2
commit 6141c48373
3 changed files with 14 additions and 1 deletions

View File

@ -650,6 +650,9 @@ class BasePaymentDriver
$account = $this->account();
$invitation = $this->invitation;
$invoice = $this->invoice();
if (! $invoice->canBePaid()) {
return false;
}
$invoice->markSentIfUnsent();
$payment = Payment::createNew($invitation);

View File

@ -6,6 +6,16 @@ use Exception;
class MolliePaymentDriver extends BasePaymentDriver
{
protected function paymentDetails($paymentMethod = false)
{
$data = parent::paymentDetails($paymentMethod);
// Enable the webhooks
$data['notifyUrl'] = $data['returnUrl'];
return $data;
}
public function completeOffsitePurchase($input)
{
$details = $this->paymentDetails();

View File

@ -42,7 +42,7 @@
->radios([
trans('texts.country_United States') => ['value' => 'US'],
trans('texts.country_Canada') => ['value' => 'CA'],
//trans('texts.country_United Kingdom') => ['value' => 'GB'],
trans('texts.country_United Kingdom') => ['value' => 'GB'],
]) !!}
</div>
<div id="wepay-accept-debit" style="display:none">