Page 55 of 79 FirstFirst ... 545535455565765 ... LastLast
Results 541 to 550 of 789
  1. #541
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,153
    Plugin Contributions
    58

    Default Re: Square WebPay support thread.

    Quote Originally Posted by carlwhat View Post
    look back at this post.

    PHP Code:
    //from
    if ($response['errors']) {
    //to
    if ($response['error']) { 
    TSIS.
    That worked perfect, thank you =)
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  2. #542
    Join Date
    Jul 2016
    Location
    London
    Posts
    258
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    Have it working now with webpay

    the square would not work for me.

  3. #543
    Join Date
    Oct 2008
    Posts
    381
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    Has anyone here managed to get Apple Pay to work via the Square Web Pay plugin. On Square's developer site it seems to say that as well as verifying the domain we need to add some code to certain pages on our site.

    Can anyone help with this as ApplePay seems to be getting quite popular.

    Thanks as always

    Step 2: Attach Apple Pay to the page
    The Apple Pay payment method needs information about the buyer and the payment amount before it can open the Apple Pay sheet. Your application creates a PaymentRequest object to provide that information and then gets a new ApplePay object initialized with it.

    The following code creates the payment request and attaches the ApplePay method to the page:

    Add an HTML element to the prerequisite walkthrough form with an ID of apple-pay-button. The HTML for the body of index.html should look like the following:



    <form id="payment-form">
    <!-- Add the below element -->
    <div id="apple-pay-button"></div>
    <div id="card-container"></div>
    <button id="card-button" type="button">Pay $1.00</button>
    </form>
    <div id="payment-status-container"></div>
    Add a style element and button style properties in the <head> tag. For a reference of Apple Pay button styles, see Styling the Apple Pay Button Using CSS.

    Add the following functions to the script tag:



    function buildPaymentRequest(payments) {
    return payments.paymentRequest({
    countryCode: 'US',
    currencyCode: 'USD',
    total: {
    amount: '1.00',
    label: 'Total',
    },
    });
    }

    async function initializeApplePay(payments) {
    const paymentRequest = buildPaymentRequest(payments)
    const applePay = await payments.applePay(paymentRequest);
    // Note: You don't need to `attach` applePay.
    return applePay;
    }

    In the DOMContentLoaded event listener, add the following code after you initialize the ApplePay method:



    let applePay;
    try {
    applePay = await initializeApplePay(payments);
    } catch (e) {
    console.error('Initializing Apple Pay failed', e);
    // There are a number of reason why Apple Pay might not be supported.
    // (such as Browser Support, Device Support, Account). Therefore you should
    // handle
    // initialization failures, while still loading other applicable payment
    // methods.
    }

  4. #544
    Join Date
    Aug 2012
    Posts
    44
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    I'm encountering a problem since my upgrade to 1.5.8a from 1.5.7
    PHP Version: 7.4.33 (host wont upgrade to 8.X, moving hosts next month)
    Refreshed token, everything is green on the admin of square webpay module.

    When a customer completes and pays for an order, the order in admin says this at the top.
    "The configuration of the order's payment module (square_webPay) has changed. No refunds, auths, captures or voids can be done for this order."
    Order comes through but payment is basically DOA, module is set for authorization but can't capture,void, or do anything.
    What could be causing this error?

  5. #545
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,816
    Plugin Contributions
    9

    Default Re: Square WebPay support thread.

    Quote Originally Posted by wtfbbq View Post
    I'm encountering a problem since my upgrade to 1.5.8a from 1.5.7
    PHP Version: 7.4.33 (host wont upgrade to 8.X, moving hosts next month)
    Refreshed token, everything is green on the admin of square webpay module.

    When a customer completes and pays for an order, the order in admin says this at the top.
    "The configuration of the order's payment module (square_webPay) has changed. No refunds, auths, captures or voids can be done for this order."
    Order comes through but payment is basically DOA, module is set for authorization but can't capture,void, or do anything.
    What could be causing this error?
    you need to look at the code right here:

    https://github.com/zencart/zencart/b....php#L517-L520

    specifically line 518. one of those 3 conditionals is failing.

    it works fine on my test system. not sure what could be causing that.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  6. #546
    Join Date
    Aug 2012
    Posts
    44
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    line 518 from 1.5.8 admin/orders.php is exactly the same as the github code.
    Interesting enough, I rolled the 1.5.7d admin/orders.php file back and it works again.
    What else should I look for?

  7. #547
    Join Date
    Oct 2008
    Posts
    381
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    Can anyone please help with this?

    Quote Originally Posted by Congerman View Post
    Has anyone here managed to get Apple Pay to work via the Square Web Pay plugin. On Square's developer site it seems to say that as well as verifying the domain we need to add some code to certain pages on our site.

    Can anyone help with this as ApplePay seems to be getting quite popular.

    Thanks as always

    }

  8. #548
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,386
    Plugin Contributions
    11

    Default Re: Square WebPay support thread.

    This may help. Let us know if it works for you.
    https://developer.squareup.com/docs/...ents/apple-pay

  9. #549
    Join Date
    Oct 2008
    Posts
    381
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    Quote Originally Posted by dbltoe View Post
    This may help. Let us know if it works for you.
    https://developer.squareup.com/docs/...ents/apple-pay
    Yup, that is what I looked at. Spoke to Square to see where to put that extra code and they said it would need to be sorted in the Zen Cart plugin

    "This is Cris from Square Customer Success.

    Regarding your query about integrating Apple Pay with Zen Cart. Although Square integrates with Zen Cart to process payments, all API functions are operated and managed by them directly. For help with Zen Cart specific questions, you’ll need to contact their Support Team."

  10. #550
    Join Date
    Jun 2012
    Posts
    449
    Plugin Contributions
    0

    Default Re: Square WebPay support thread.

    Quote Originally Posted by swguy View Post
    @carlwhat please write up some copy that explains how to get the updated integration, and I'll put it on the help page. People need to understand that there is an upgrade path.
    Has anything been done yet on describing how to update the SDK used in the Square Webpay module? Our webhost will be forcing a minimum of php 8.1 soon and I'd really like to get to 8.2 or above.
    Thank You!
    Dave
    working on upgrade to zc158a

 

 
Page 55 of 79 FirstFirst ... 545535455565765 ... LastLast

Similar Threads

  1. Square Payment Module for Zen Cart [Support Thread]
    By DrByte in forum Addon Payment Modules
    Replies: 765
    Last Post: 14 Feb 2025, 03:57 PM
  2. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 19
    Last Post: 23 Jan 2023, 08:04 AM
  3. Square Support for SqPaymentForm ending 15th July 2022
    By brittainmark in forum Addon Payment Modules
    Replies: 1
    Last Post: 9 Apr 2022, 02:40 PM
  4. v156 Square Payments and strange request from Square
    By ianhg in forum General Questions
    Replies: 4
    Last Post: 14 Nov 2020, 11:14 AM
  5. v156 PWA, Offline support Push notifications addon [Support Thread]
    By perfumbg in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 May 2019, 02:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR