Payment on Event Confirmation Page: Does not work when pay later is disabled
Great to have this functionality!
This has been updated after the fixes in PR 26491.
There are two cases: 1) with pay later or 2) without pay later.
If pay later is enabled, it seems to work as intended, but the pay later instructions are displayed on the payment/confirmation page (they should never be as the user hasn't selected a payment method yet) and on the Thank You page even if they selected another payment method (see screenshots below).
Updated: After submitting, the contribution is created, but it is set to pending (pay later) and no payment is present.
With pay later enabled, it looks like $is_pay_later is always true. On payment/confirmation:
On Thank You after selecting a payment method that isn't pay later:
Without pay later:
On the payment/confirmation page, something isn't loading right because these billings fields should be filled in and there shouldn't be a card type select:
On submit, we get an error:
[error] Payment processor exception: Error Unexpected Server Error, please see your logs
[info] $iATS SOAP Response = stdClass Object
(
[ProcessCreditCardResult] => stdClass Object
(
[any] => FailureObject reference not set to an instance of an object.
)
)
Fixed:
On the first page, with pay later disabled, we get divs that shouldn't be there: