• SethTurin

    (@sethturin)


    Hello

    The square payment plugin seems to be working fine when I’m logged in, but when I checkout as a guest, in incognito mode, I get an error that says “There was an error processing your order”. In the logs, it’s showing the following:

    Uncaught TypeError: Square\Models\CreateCardRequest::__construct(): Argument #2 ($sourceId) must be of type string, null given, called in /home/customer/www/mysite.com/public_html/figure-out-credi/wp-content/plugins/woocommerce-square/includes/Gateway/API/Requests/Card.php on line 61 and defined in /home/customer/www/mysite.com/public_html/figure-out-credi/wp-content/plugins/woocommerce-square/vendor/square/square/src/Models/CreateCardRequest.php:40

    Please help

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter SethTurin

    (@sethturin)

    guys, you’re asking me to do a lot. can you tell me specifically what you’re trying to understand that isn’t explained in my posts, and isn’t demonstrated in the youtube video?

    It’s really simple. WooCommerce Square should record the customer ID to the order even if the user checks out as a guest. that’s it. that’s all it would take to fix this, and a video isn’t going to explain it any better than that. you’re giving me busy work when really the only thing left to do is just make a minor change to the source code. come on guys.

    Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hey @sethturin ,

    It looks like this issue happens because Square needs a customer token saved to process one-click upsells. For logged-in users, this works fine since WooCommerce Square can securely save the customer token to their account. But for guest users, WooCommerce Square doesn’t keep these tokens for privacy and security reasons, which makes it tricky to handle one-click upsells in guest checkouts

    My best bet would be to submit a feature request so that our developers could dig into this and see if it is possible. You can do this here: https://woocommerce.com/feature-requests/square/

    I know this may not be the answer you were hoping for, but I do hope it helps get you pointed in the right direction! ??

    Cheers

Viewing 2 replies - 16 through 17 (of 17 total)
  • You must be logged in to reply to this topic.