Skip to content

Commit

Permalink
Update: add vads_redirect_error_timeout & vads_redirect_success_timeo…
Browse files Browse the repository at this point in the history
…ut parameters for SystemPayPaymentGateway
  • Loading branch information
BeBlood committed May 19, 2021
1 parent 3f3e48a commit 36d0e7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Gateway/SystemPayPaymentGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ private function buildOptions(
PaymentGatewayConfigurationInterface $paymentGatewayConfiguration,
Transaction $transaction
): array {
// Important: Options must be in alphabetical order.
return [
'vads_action_mode' => $paymentGatewayConfiguration->get('action_mode'),
'vads_amount' => $transaction->getAmount(),
Expand All @@ -66,6 +65,8 @@ private function buildOptions(
'vads_order_id' => $transaction->getId(),
'vads_page_action' => $paymentGatewayConfiguration->get('page_action'),
'vads_payment_config' => $paymentGatewayConfiguration->get('payment_config'),
'vads_redirect_error_timeout' => $transaction->getMetadata('vads_redirect_error_timeout'),
'vads_redirect_success_timeout' => $transaction->getMetadata('vads_redirect_success_timeout'),
'vads_site_id' => $paymentGatewayConfiguration->get('site_id'),
'vads_trans_date' => (new \DateTime())->setTimezone(new \DateTimeZone('UTC'))->format('YmdHis'),
'vads_trans_id' => sprintf('%06d', $transaction->getNumber()),
Expand Down

0 comments on commit 36d0e7c

Please sign in to comment.