Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Ana

    (@anacouto)

    Hello @niklasinpsyde,

    Thanks for your reply. We found an odd and possibly misleading GUI issue that allows us to actually have the expected (from our point of view) result.

    Providing a bit more information: on our e-commerce shop all our products are virtual, hence we require the capture to be done once the checkout is completed and the payment processed.
    What we have seen is that just selecting the intent Capture does not actually capture the payment for virtual orders, once the checkout is completed. However, if we select the intent Authorize then we have an option Capture Virtual-Only Orders that is made available and by selecting this one we actually have the expected result: once the checkout is completed we have both the authorize and the capture actions are done and the orders are now set as completed as expected.

    An odd thing is that by selecting back the intent to Capture the correct/expected behaviour is now happening as the Capture Virtual-Only Orders option is still selected and saved on the database, so now the virtual orders purchased are authorized and captured upon successful checkout.

    Kind regards,
    Ana

    I think that this is related to the following: https://php.net/manual/en/migration70.incompatible.php

    Essentially adjusting the indirect variables and the problem would be resolved.
    My suggestion would be to change the following in the wordpress-importer.php file in line 798 where it reads:

    $$meta['key'] = $meta['value'];

    to be inline with PHP 7 and backward compatible to the following:

    ${$meta['key']} = $meta['value'];

Viewing 2 replies - 1 through 2 (of 2 total)