Problem/Motivation

Many sites have some sort of "Invoice" payment method, that maybe generates a PDF or so or also possibly doesn't do anything at all. The order won't be paid yet, but the customer needs to be able to "finish" the checkout.

Right now, if you define an empty payment gateway plugin that implements neither onsite nor offsite payment then you can select that but you are stuck on the PaymentProcess pane, which doesn't know how to handle this.

Proposed resolution

As a quickfix, I just added an else that continues to the next page, but not sure how something like a PDF-generating/mail-sending gateway would work then.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

Berdir created an issue. See original summary.

berdir’s picture

Status: Active » Needs review
StatusFileSize
new580 bytes

Can make a PR, just uploading this as a patch for now so I can apply it.

sumanthkumarc’s picture

@berdir, this https://www.drupal.org/node/2831952 can be used for printing an order invoice and issue has instructions for attaching order details pdf to an email.

bojanz’s picture

Title: How are pseudo/offline-payment gateways like invoices meant to work? » Improve the handling of unknown gateway types in the PaymentProcess pane

#2 won't hurt, so I'll commit it.

  • bojanz committed f963f3b on 8.x-2.x authored by Berdir
    Issue #2857064 by Berdir: Improve the handling of unknown gateway types...
bojanz’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

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