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:
parent
834bce5eb2
commit
6141c48373
@ -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);
|
||||
|
@ -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();
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user