Skip to content

Commit

Permalink
feat: extend bank transfers to 100 days validity
Browse files Browse the repository at this point in the history
  • Loading branch information
Wouter0100 authored Oct 26, 2021
1 parent f3378c5 commit 4e3fc4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mollie/mollie.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ function mollie_link($params, $method = Mollie_API_Object_Method::IDEAL)
'metadata' => array(
'invoice_id' => $params['invoiceid'],
),
'issuer' => ((isset($_POST['issuer']) && !empty($_POST['issuer'])) ? $_POST['issuer'] : NULL)
'issuer' => ((isset($_POST['issuer']) && !empty($_POST['issuer'])) ? $_POST['issuer'] : NULL),
'dueDate' => (($method == \Mollie\Api\Types\PaymentMethod::BANKTRANSFER) ? date('Y-m-d', strtotime('+100 days')) : NULL),
));

update_query('gateway_mollie', array('paymentid' => $payment->id), array('id' => $transactionId));
Expand Down

0 comments on commit 4e3fc4f

Please sign in to comment.