Commerce Payment Failing due to SalepriceResolver

Created on 14 February 2019, about 6 years ago
Updated 16 April 2024, 11 months ago

Hello thanks for the great module !!! When setting up a bee event to be bookable hourly I stumbled across some strange behaviour, when calculating the price (only until after product is reviewed) shows the correct price ... and thats cool however, my payment modules were telling me that PAYMENT FAILD on the remote end with log message from commerce_payment

"This transaction cannot be processed. The amount to be charged is zero." when trying to pay for an hour time slot ...

this was strange as payment was infact taken ... for the correct amount ... but commerce would fail ... and the customer would be in a constant loop of trying to pay for something (having there money taken) but the order never completing say when using commerce_paypal module.

I think not 100% sure but found when the remote payment IPN would call back to Drupal ... SalepriceResolver plugin on the product would not be called therefore resulting in a 0$ amount ... so it would not make sence to the payment gateway...

this is Assume using the Price field on the NODE, not on the bee created product attribute as that defaults to 0$ USD

so in order to get this to work ... I used the price field on the product variation... and used the attach patch.

so really I found that doing the full sale price calculation in the reservation form submit made it easier as then in the cart it also made easier to read ... however i had to disable changing quantity..

I dont really know ... just leaving this here if anyone else has a problem with payment.

But really thanks again this is a handy module !!!!

Feature request
Status

Closed: outdated

Version

1.0

Component

Miscellaneous

Created by

🇦🇺Australia taggartj

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.

Production build 0.71.5 2024