mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-31 15:42:03 -04:00
Enable Mollie webhooks
This commit is contained in:
parent
834bce5eb2
commit
6141c48373
@ -650,6 +650,9 @@ class BasePaymentDriver
|
|||||||
$account = $this->account();
|
$account = $this->account();
|
||||||
$invitation = $this->invitation;
|
$invitation = $this->invitation;
|
||||||
$invoice = $this->invoice();
|
$invoice = $this->invoice();
|
||||||
|
if (! $invoice->canBePaid()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
$invoice->markSentIfUnsent();
|
$invoice->markSentIfUnsent();
|
||||||
|
|
||||||
$payment = Payment::createNew($invitation);
|
$payment = Payment::createNew($invitation);
|
||||||
|
@ -6,6 +6,16 @@ use Exception;
|
|||||||
|
|
||||||
class MolliePaymentDriver extends BasePaymentDriver
|
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)
|
public function completeOffsitePurchase($input)
|
||||||
{
|
{
|
||||||
$details = $this->paymentDetails();
|
$details = $this->paymentDetails();
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
->radios([
|
->radios([
|
||||||
trans('texts.country_United States') => ['value' => 'US'],
|
trans('texts.country_United States') => ['value' => 'US'],
|
||||||
trans('texts.country_Canada') => ['value' => 'CA'],
|
trans('texts.country_Canada') => ['value' => 'CA'],
|
||||||
//trans('texts.country_United Kingdom') => ['value' => 'GB'],
|
trans('texts.country_United Kingdom') => ['value' => 'GB'],
|
||||||
]) !!}
|
]) !!}
|
||||||
</div>
|
</div>
|
||||||
<div id="wepay-accept-debit" style="display:none">
|
<div id="wepay-accept-debit" style="display:none">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user