Problem/Motivation

Two small follow-ups to the orchestra_payment bridge (#3609095).

  • The default resolver ("Amount from process variables") read generic variables named "amount", "currency" and "gateway". Those collide with a workflow's own variables of the same name and give no hint they drive the payment step.
  • The payment step always renders a summary page ("Amount due" plus a "Go to payment" button) before redirecting to the gateway. Some flows already showed the amount upstream and just want to send the payer straight to the gateway.

Proposed resolution

  • Rename the resolver's variables to "payment_amount", "payment_currency" and "payment_gateway", so they are payment-scoped and collision-free.
  • Add a "Go straight to the gateway" option to the payment step. When on, a clean first arrival redirects to the gateway immediately; a failed or cancelled attempt still returns to the summary page so the payer can retry or take another outcome.

Both are covered by kernel tests. Orchestra is pre-1.0 with no released users, so the variable rename needs no upgrade path.

Remaining tasks

  • Review.

Issue fork orchestra-3609120

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mably created an issue. See original summary.

mably’s picture

Status: Active » Needs review

Opened MR !300 with both changes and kernel-test coverage. Setting to Needs review.

  • mably committed a27d5838 on 1.x
    feat: #3609120 Payment step: payment-scope the variable-resolver...
mably’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.