• Resolved meissheiten

    (@meissheiten)


    When Pay upon invoice is chosen everything filled out and click on buy it says:
    “DEVICE_DATA_NOT_AVAILABLE Device Data is not available for processing this order. The PayPal-Client-Metadata-Id header value sent during Create Order api call is either missing or incorrect or there was an error in collecting required data. Please verify if appropriate value for PayPal-Client-Metadata-Id header is being sent during ‘Create Order’ api call. Please note this error only applies to payment_source.pay_upon_invoice at the moment.”

    The protocol in the plugin shows the following:
    CRITICAL Uncaught Error: Call to a member function meta_exists() on null in /wp-content/plugins/woocommerce/includes/class-wc-checkout.php:1346
    Stack trace:
    #0 /wp-content/plugins/woocommerce/includes/class-wc-checkout.php(234): WC_Checkout->get_value()
    #1 /wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Gateway/PayUponInvoice/PayUponInvoice.php(332): WC_Checkout->get_checkout_fields()
    #2 /wp-includes/class-wp-hook.php(308): WooCommerce\PayPalCommerce\WcGateway\Gateway\PayUponInvoice\PayUponInvoice->WooCommerce\PayPalCommerce\WcGateway\Gateway\PayUponInvoice{closure}()
    #3 /wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #4 /wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-payment-gateway.php(318): apply_filters()
    #5 /wp-content/plugins/woocommerce/includes/class-wc-checkout.php in Line 1346

    The setting in paypal and the connection seems to be fine, just in the Error Log of PayPal Developer Dashboard says: “The requested action could not be performed, semantically incorrect, or failed business validation.”


    Any idea how I can fix it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @meissheiten

    Could you please give it a try with this version? Alternatively, this issue should not be present in the previous version 2.0.1.
    The latest update extended the availability of the FraudNet feature, but under certain circumstances this could cause the Pay upon Invoice feature to be negatively impacted.

    The cause of this issue will be resolved with the next plugin update in any case. But please let us know how it works for you with either of the versions mentioned above.
    Thanks!

    Kind regards,
    Niklas

    Thread Starter meissheiten

    (@meissheiten)

    Both seem to work fine. Thank you!

    Is there any reason I should not use the version you send me in a live store?

    For when is the next update planed?

    I noted a small difference between the new one and the old version (I guess its a wanted feature):
    In the old version Ratepay (Partner of Paypal) send an extra eMail with the invoice. Now that’s included in the normal confirmation E-Mail that was send out anyway, what seems to be a better solution.

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @meissheiten

    Thanks for the feedback.

    Using the test version on a production site should be fine, as it only includes a few tweaks to fix the FraudNet issue. But I’d like to mentioned this version was only tested with critical flow, and has not gone through the entire testing routine, like the full update.

    The upcoming 2.0.3 update is currently being tested: https://github.com/woocommerce/woocommerce-paypal-payments/releases/tag/2.0.3-rc1

    Testing usually takes about a week or two (depending on the testing results) and the official release happens once all flows were successfully tested.

    I noted a small difference between the new one and the old version (I guess its a wanted feature):
    In the old version Ratepay (Partner of Paypal) send an extra eMail with the invoice. Now that’s included in the normal confirmation E-Mail that was send out anyway, what seems to be a better solution.

    I am not aware of any changes to the email handling. There should be two different emails: One WooCommerce confirmation mail that includes the Ratepay payment instructions and a second mail with the same instructions coming directly from Ratepay: https://woocommerce.com/document/woocommerce-paypal-payments/#PUI-email-notification
    Third-party plugins like Germanized may modify the WooCommerce email behavior, but there should still be at least one WooCommerce mail with the instructions, and a separate one from Ratepay.

    Did you not receive the email from Ratepay?
    Thanks!

    Kind regards,
    Niklas

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error on Pay upon invoice’ is closed to new replies.