Page 21 of 21 FirstFirst ... 11192021
Results 201 to 206 of 206
  1. #201
    Join Date
    Feb 2009
    Posts
    97
    Plugin Contributions
    1

    Default Re: Adding Braintree payment module

    Update: I read through the Google Pay docs at https://developers.google.com/pay/ap...esources/demos and the Paypal/Braintree ones at https://developer.paypal.com/braintr...javascript/v3/, and have found if I go to pay.google.com and at the top right get the Merchant ID, a 16 character alpha-numerical string like ABCD1234DEFG4567 and edit braintree_api to pass that in the call to the google pay API, i.e.:

    Code:
    braintree.googlePayment.create({
        client: clientInstance,
        googlePayVersion: 2,
        googleMerchantId: 'ABCD1234DEFG4567' // EDIT, was: " . MODULE_PAYMENT_BRAINTREE_MERCHANTID . "
    }, function (googlePaymentErr, googlePaymentInstance) {
    Then the google pay form does appear correctly, at least on my dev machine. I'm having trouble getting it to work on live, but it seems to show that the payment module is incorrect in trying to pass the Braintree Merchant ID value from the Zen admin panel. I don't know if using the Braintree ID is supposed to be a substitute for the Google Pay one and i'd been getting something else wrong in the config, the documentation is all rather confusing. I'll keep poking it tomorrow.

  2. #202
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,255
    Plugin Contributions
    124

    Default Re: Adding Braintree payment module

    To clarify, is your issue only with Google Pay under Braintree? Does regular Braintree for Credit Card processing work?
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #203
    Join Date
    Feb 2009
    Posts
    97
    Plugin Contributions
    1

    Default Re: Adding Braintree payment module

    Quote Originally Posted by swguy View Post
    To clarify, is your issue only with Google Pay under Braintree? Does regular Braintree for Credit Card processing work?
    Thanks, yes, the three credit card fields initialise OK and normal credit/debit card payments work fine when these are filled in, and these initialise using the MODULE_PAYMENT_BRAINTREE_MERCHANTID constant, which is our company name in lowercase. Our problem is when we enable the "Google Pay" radio button on the Braintree admin panel and the JS from braintree_api.php tries to put the Google Pay button on the checkout page. The button appears OK, but when clicked was raising a popup form from Google with the OR_BIBED_11 I mentioned earlier. I had tried putting in our Google Payments Profile ID (a 12 digit number), then stumbled on the pay.google.com merchant ID string and finally the popup payment form loads OK, on my dev system at least.

    Side note, surnames with an apostrophe like "O'Neill" cause a syntax error and cause the three credit card fields to fail to init, due to this line, so I also modified the module to properly escape all the strings used in that section:
    surname: '".$order->billing['lastname']."',

  4. #204
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,255
    Plugin Contributions
    124

    Default Re: Adding Braintree payment module

    If what you want is Google Pay, the most recent version of Square provides it.

    https://docs.zen-cart.com/user/payme...ercial_module/
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #205
    Join Date
    Feb 2009
    Posts
    97
    Plugin Contributions
    1

    Default Re: Adding Braintree payment module

    Quote Originally Posted by swguy View Post
    If what you want is Google Pay, the most recent version of Square provides it.[/url]
    OK, thank you for that. We would prefer to get the Braintree payment module working, so that all transactions go through one portal (normal credit/debit cards, google pay, apple pay) and it's a single platform on which to handle transactions, refunds, analytics etc. I could check the module's source code to see how it uses the Google Pay API config, but apparently you have to pay for it.

    I finally figured out that to get Google Pay working on the production Braintree platform you need your Google Pay business console at https://pay.google.com/business/console, in the Google Pay API section, add a new Integration for our website ("Integrate your website", choose Integration Type 'Gateway' and fill in the screenshots of your business (they accepted mine even though step 4 "Google Pay API payment screen" was showing the OR_BIBED_11 error still). Next day I got email notification saying my application was successful. Now, the Google Pay button raises the payment dialog successfully, with my hack to the braintree_api.php file to pass our Google Pay Merchant ID instead of the Braintree Merchant ID (as I described earlier).

    To double check, after the Google Pay API integration registration was successful, I tried reverting the braintree_api.php code so that it passes our Braintree Merchant Id (lower case company name) as in the out-of-the-box code, but it fails with OR_BIBED_11 again.

    So, I still think the payment module needs modification for this googleMerchantId field (which I think would mean a new config entry and input field on the admin panel for the Google Pay Merchant ID value). It would really help if the documentation supplied with it was improved as well, as it's very bare bones. Maybe Numinix is hoping to get more people paying for installation by not documenting the steps required.

    I'm also in talks with Braintree tech support on the Apple Pay side, because the Certificate Signing Request you download from their site to give to Apple appears to be a 256 bit key and not the 2048 bit key required by Apple and is rejected when you try to upload it to the Apple Developer site, I'll try to feed back here on what happens in case it helps others.
    Last edited by neekfenwick; 29 Jan 2025 at 04:00 AM.

  6. #206
    Join Date
    Aug 2013
    Location
    Perth, WA, AU
    Posts
    246
    Plugin Contributions
    4

    Default Re: Adding Braintree payment module

    Quote Originally Posted by neekfenwick View Post
    OK, thank you for that. We would prefer to get the Braintree payment module working, so that all transactions go through one portal (normal credit/debit cards, google pay, apple pay) and it's a single platform on which to handle transactions, refunds, analytics etc.
    Again, square does all this so consider it if you continue to luck out.

 

 
Page 21 of 21 FirstFirst ... 11192021

Similar Threads

  1. v154 BrainTree Payment Module before_process - DP-5 Errors
    By RJR in forum Addon Payment Modules
    Replies: 1
    Last Post: 7 Jan 2016, 10:15 PM
  2. v154 Braintree Payment Module Problems
    By andeza20 in forum Addon Payment Modules
    Replies: 1
    Last Post: 5 Feb 2015, 07:37 AM
  3. Adding an image to a payment module
    By sirluck in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 5 Oct 2007, 06:23 AM

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