Payment no funds deposit redirecting to initial order.

Created on 9 December 2022, about 2 years ago
Updated 7 October 2024, 2 months ago

This patch inherit codes in issues/3322351 ,
which perovided order redirecting.

Problem/Motivation

New wallet with zero balance need to make deposit or transfer first before using it to pay order,
otherwise the wallet would be negative.

User can bypass the the PaymentInformation step and jump to the PaymentProcess step, to make a payment without wallet amount checking.

Steps to reproduce

1. New user without any wallet.
2. Checkout a cart, useing Funds Balance payment option.
3. Checkout successfully, but without real payment, balance of the new wallet is negative.

Proposed resolution

* Redirect to make deposit after create a new wallet in checkout step in BalanceMethodAddForm::submitConfigurationForm().
* Redirect to deposit the wallet when not enough money to pay commerce order in BalanceGateway::createPayment().

Remaining tasks

Test case.

User interface changes

No.

API changes

No.

Data model changes

No.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇨🇳China 司南

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024