Hello,
I've tried this module and I think it is not working... when user is redirected back to the site after payment, although the payment was done, the module is not catching Sermepa response successfully.
The system throws two errors after payment completion and order can't be never completed.
path payment/notify/credit_card:
Error: Call to a member function get() on null en Drupal\commerce_sermepa\Plugin\Commerce\PaymentGateway\Sermepa->processRequest() (line 340 of ...modules/contrib/commerce_sermepa/src/Plugin/Commerce/PaymentGateway/Sermepa.php)
path checkout/%/payment/return
Bad feedback response, missing feedback parameter.
Could somebody help me with this error?
Thanks,
Dani
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | commerce_sermepa-error-response-2948804-11-8.x.patch | 1.09 KB | facine |
Comments
Comment #2
dromansab commentedComment #3
dromansab commentedComment #4
dromansab commentedNobody using this module for Drupal 8?
Comment #5
carles.zapater commentedWe have solved the problem with this modification:
Sermepa.php
Line 340
if ($credit_card = $order->get('payment_method')->first()->get('entity')) {if($credit_card = $order->get('payment_method')->entity) {
Comment #6
fastangel commentedHere a patch.
Comment #7
fastangel commentedSorry error in the patch.
Comment #8
jncrucesThe attached patch in #7 works great!
Thanks.
Comment #9
interdruper commented#7 RTBC IMHO, thanks!
Comment #10
trebormcThe attached patch in #7 works great!
Thanks.
Comment #11
facine commentedThanks to all for the work!
I have implemented the patch making a small modification.
Comment #12
pcambraLGTM
Comment #13
facine commentedFixed!