diff --git a/app/PaymentDrivers/Stripe/BankTransfer.php b/app/PaymentDrivers/Stripe/BankTransfer.php index 06125d6ab9..64fb1545e1 100644 --- a/app/PaymentDrivers/Stripe/BankTransfer.php +++ b/app/PaymentDrivers/Stripe/BankTransfer.php @@ -201,17 +201,19 @@ nlog($pi); } + private function formatDataforEur(PaymentIntent $pi): array { return [ 'amount' => Number::formatMoney($this->stripe->convertFromStripeAmount($pi->next_action->display_bank_transfer_instructions->amount_remaining, $this->stripe->client->currency()->precision, $this->stripe->client->currency()), $this->stripe->client), - 'account_holder_name' => $pi->next_action->display_bank_transfer_instructions->financial_addresses[0]->sort_code->account_holder_name, - 'account_number' => $pi->next_action->display_bank_transfer_instructions->financial_addresses[0]->sort_code->account_number, - 'sort_code' => $pi->next_action->display_bank_transfer_instructions->financial_addresses[0]->sort_code->sort_code, + 'account_holder_name' => $pi->next_action->display_bank_transfer_instructions->financial_addresses[0]->iban->account_holder_name, + 'account_number' => $pi->next_action->display_bank_transfer_instructions->financial_addresses[0]->iban->iban, + 'sort_code' => $pi->next_action->display_bank_transfer_instructions->financial_addresses[0]->iban->bic, 'reference' => $pi->next_action->display_bank_transfer_instructions->reference, 'description' => $pi->description, 'gateway' => $this->stripe->company_gateway, + 'currency' => $pi->next_action->display_bank_transfer_instructions->currency, ]; @@ -235,10 +237,10 @@ nlog($pi); 'bank_name' =>$pi->next_action->display_bank_transfer_instructions->financial_addresses[0]->zengin->bank_name, 'branch_code' =>$pi->next_action->display_bank_transfer_instructions->financial_addresses[0]->zengin->branch_code, 'branch_name' =>$pi->next_action->display_bank_transfer_instructions->financial_addresses[0]->zengin->branch_name, - 'sort_code' => $pi->next_action->display_bank_transfer_instructions->financial_addresses[0]->zengin->sort_code, 'reference' => $pi->next_action->display_bank_transfer_instructions->reference, 'description' => $pi->description, 'gateway' => $this->stripe->company_gateway, + 'currency' => $pi->next_action->display_bank_transfer_instructions->currency, ]; diff --git a/lang/en/texts.php b/lang/en/texts.php index 221a03f510..ae23b083f1 100644 --- a/lang/en/texts.php +++ b/lang/en/texts.php @@ -5002,7 +5002,13 @@ $LANG = array( 'gateway_payment_text_no_invoice' => 'Payment with no invoice for amount :amount for client :client', 'click_to_variables' => 'Client here to see all variables.', 'ship_to' => 'Ship to', - 'stripe_direct_debit_details' => 'Please transfer into the nominated bank account above.' + 'stripe_direct_debit_details' => 'Please transfer into the nominated bank account above.', + 'branch_name' => 'Branch Name', + 'branch_code' => 'Branch Code', + 'bank_name' => 'Bank Name', + 'bank_code' => 'Bank Code', + 'bic' => 'BIC', + ); diff --git a/resources/views/portal/ninja2020/gateways/stripe/bank_transfer/bank_details.blade.php b/resources/views/portal/ninja2020/gateways/stripe/bank_transfer/bank_details.blade.php index 1f79e3f80c..05c1a9e641 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/bank_transfer/bank_details.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/bank_transfer/bank_details.blade.php @@ -93,6 +93,103 @@