Provide method to generate link for payments / gateways payment remote id

Created on 20 December 2024, 2 days ago

Describe your bug or feature request.

Most of the payment gateways have their dashboard with transaction information. In Drupal Commerce, on the payment tab, we only display the Remote ID as plain text.

It will be useful if we can link that Remote ID to the payment gateway provider dashboard directly.

Proposed solution

  • Add method to the PaymentGatewayInterface named getExternalUrl(PaymentInterface $payment)
  • By default this new method returns null. But each payment gateway can implement it to construct string
  • Add new field formatter for remote_id field, provide option to link remote id with URL if exists

Example of

If a bug, provide steps to reproduce it from a clean install.

📌 Task
Status

Active

Version

3.0

Component

Payment

Created by

🇭🇷Croatia valic Osijek

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024