Payment no funds deposit redirecting to initial order.

Created on 9 December 2022, over 1 year ago
Updated 18 January 2023, over 1 year 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

Comments & Activities

Not all content is available!

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

No activities found.

Production build 0.69.0 2024