WebsiteBaker Support (2.8.x) > Bakery Shop

Invoice payment option not working

<< < (2/3) > >>

freeSbee:
OK, the html looks fine …

Now we have to check the $_POST array. Please add some debug code to the file bakery/view_summary.php right after the comment at line 63:

--- Code: ---// Put payment method selected by user into session var
--- End code ---

Add this code and upload the file to the server:

--- Code: ---echo '<pre>';
echo 'DEBUG:<br>';
print_r($_POST);
echo '</pre>';

--- End code ---

Then again go to the Bakery checkout until you reach "(3) Summary". You should get a debug message similar to the following:

--- Code: ---DEBUG:
Array
(
    [summary] => true
    [agree] => yes
    [cust_msg] =>
    [payment_method] => Array
        (
            [invoice] => Ik betaal na ontvangst van de factuur
        )

)
--- End code ---

Broem:
Output:


--- Code: ---DEBUG:
Array
(
    [summary] => true
    [agree] => yes
    [cust_msg] =>
    [payment_method] => molliev2
    [setting_continue_url] => http://www.broodjesservicepeelenmaas.nl/pages/broodjes/broodje.php
)


--- End code ---

Molliev2 is an addon developed by Dev4Me as additional Dutch payment method (iDeal), also on this forum. I have 3 payment methods active, Invoice, MollieV2 and CoD (Cash on Delivery)

Ruud:
Could it be you are using the wrong Mollie plugin? There are two versions (for bakery 1.6.x and bakery 1.7.x)

In the info.php located in /modules/bakery/payment_methods/molliev2/ it should say:

--- Code: ---$requires_bakery_module = '1.7';
--- End code ---

Ruud:
I found the problem  :-(

It is actually a problem of the Molliev2 plugin.
The "Ik betaal via Mollie" button is generated in it's own form construct. (I guess because it was done that way in older Bakery versions)
This breaks the main form for other payment plugins.
The order of the payment methods in the website depends if it goes wrong or not. So sometimes it will work and sometimes it fails.

I fixed the plugin and put the new version on my website.
https://www.dev4me.nl/modules-snippets/opensource/bakery-betaal-plugin-voor-mollie/

Download > Unpack > Overwrite the existing molliev2 files.

Broem:
@ Ruud, was using 1.7 (verified that).

Great you did find the issue, i'm going to download the latest version and upload the files again and test it.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version