Paul Posted September 1, 2017 Report Posted September 1, 2017 (edited) A new Square gateway (alpha) is available for testing. To install, download the attached , square.zip unzip and upload the "square" directory to ~/components/gateways/nonmerchant/ and visit Settings > Company > Payment Gateways to install and configure. Edited November 21, 2017 by Paul updated stripe.zip Abdy, activa, MHS-Marc and 1 other 4
Michael Posted September 18, 2017 Report Posted September 18, 2017 If people want help to configure it I've done a tutorial as I was a bit confused lolhttps://blesta.store/plugin/support_manager/knowledgebase/view/2/how-to-connect-blesta-to-square/8/ Paul and Abdy 1 1
Abdy Posted September 19, 2017 Report Posted September 19, 2017 12 minutes ago, Nelsa said: Is this gateway based on Square checkout or e-commerce API? Is a non-merchant gateway, is based on Square Checkout.
Michael Posted September 30, 2017 Report Posted September 30, 2017 On 20/09/2017 at 2:07 AM, Nelsa said: The reason square doesn't show up is because of the currency. If you are in the USA you can only accept USD payments, in the UK i'm on the Square UK account thing so I can only accept GBP payments.
Michael Posted September 30, 2017 Report Posted September 30, 2017 14 minutes ago, Nelsa said: That is screen shot of 2 checkout gateway with inline payment implemented,as you see in left corner there is checkout button and when you click on it credit card form will pop up(shown on 1st and 2nd image),and when it comes to square..yes I figure out that payment button is missing if something is not configured as it shoud be...in my case country is not supported...and it is kind their fault why user have to spent hours to find reason...I signed up and I verify my account..they even show my local currency,and also put my local currency on invoice and auto currency converter....accepted bank account...account status is ready...and than I find out country is not supported...for god sake why not than put account status as non supported..or something..or put any kind of flag...why allow user to sign up ,set country and configure account..and they even auto-apply currency when you sign up....than I visited documentation page and look in to list of supported countries...bang.After that I set test API and it worked...:) I agree, I thought I could accept all currencies just paid out in GBP not the case. Have you looked at a remote office? Abdy 1
skillednerd Posted October 15, 2017 Report Posted October 15, 2017 Yes when I try it works and like charges but like never updates to blesta it never shows the invoice as paid is there something I am doing wrong? thanks
MistaGrk Posted November 18, 2017 Report Posted November 18, 2017 On 9/18/2017 at 6:46 AM, BlestaStore said: If people want help to configure it I've done a tutorial as I was a bit confused lolhttps://blesta.store/plugin/support_manager/knowledgebase/view/2/how-to-connect-blesta-to-square/8/ Hey! I've been following your work for a while now and I have to say, you're great. Having followed your tutorial, I've set it all up - BUT I am getting an error after I submit payment (see screenshots below) - any help is appreciated: I place an order: It then kicks me to pay with Square... SIDE-NOTE QUESTION: How can I remove the shipping section? I don't ship anything to customers - our services are all digital... I don't need this page, just CC info and Pay, would be nice. Any help on this is appreciated. Upon submission of the info, I get this error: Any help is appreciated
Michael Posted November 19, 2017 Report Posted November 19, 2017 Hi mate is your currency USD and your package price in USD? Also did you import from another software if not then it's the module so we can narrow the issue down?
MistaGrk Posted November 19, 2017 Report Posted November 19, 2017 7 hours ago, BlestaStore said: Hi mate is your currency USD and your package price in USD? Also did you import from another software if not then it's the module so we can narrow the issue down? Howdie. Thanks for the reply. Package set in CAD. Square Gateway set in CAD only, as well. My URL used to be different where Blesta was originally installed. The domain has remained the same but instead of www.domainname.com/blesta, it's now blesta.domainname.com... BUT, I recently installed Square gateway. I never had this module in the original URL. Hope that helps. Let me know what else you'd like to know, I would like this resolved ASAP as my company is live and taking payments.
Michael Posted November 19, 2017 Report Posted November 19, 2017 1 minute ago, MistaGrk said: Howdie. Thanks for the reply. Package set in CAD. Square Gateway set in CAD only, as well. My URL used to be different where Blesta was originally installed. The domain has remained the same but instead of www.domainname.com/blesta, it's now blesta.domainname.com... BUT, I recently installed Square gateway. I never had this module in the original URL. Hope that helps. Let me know what else you'd like to know, I would like this resolved ASAP as my company is live and taking payments. hopefully I can get Mike to look into this for you but Paul and the team will be back on Monday it looks like you've got it to call home and it's not sending the currency back to Blesta.
MistaGrk Posted November 19, 2017 Report Posted November 19, 2017 2 minutes ago, BlestaStore said: hopefully I can get Mike to look into this for you but Paul and the team will be back on Monday it looks like you've got it to call home and it's not sending the currency back to Blesta. Okay, sounds good. As a side note mate, Do I need to setup a webhook on Square? I must add that I am using Version 3.6.1, we are very comfortable with this version and it works flawlessly - with that said, we wish to stay on this version as we've had issues upgrading and losing data in the past. Our blesta configuration is complex, so we're happy with the version used (until it's actually time to upgrade).
Michael Posted November 19, 2017 Report Posted November 19, 2017 13 minutes ago, MistaGrk said: Okay, sounds good. As a side note mate, Do I need to setup a webhook on Square? I must add that I am using Version 3.6.1, we are very comfortable with this version and it works flawlessly - with that said, we wish to stay on this version as we've had issues upgrading and losing data in the past. Our blesta configuration is complex, so we're happy with the version used (until it's actually time to upgrade). I don't think so, I haven't had a client order with square yet as only new customers / non usa customers have GBP and they all use PayPal.
MistaGrk Posted November 19, 2017 Report Posted November 19, 2017 2 minutes ago, BlestaStore said: I don't think so, I haven't had a client order with square yet as only new customers / non usa customers have GBP and they all use PayPal. Ok, keep me posted on any help for today. Cheers mate.
Blesta Addons Posted November 19, 2017 Report Posted November 19, 2017 the error come from empty currency data, i don't think the gateway is not returning the currency used . but what i think the Blesta gateway is not able or it has a wrong currency post field . so i think is Blesta gateway error , this is not a big issue so is easily resolved .
MistaGrk Posted November 19, 2017 Report Posted November 19, 2017 1 minute ago, Blesta Addons said: the error come from empty currency data, i don't think the gateway is not returning the currency used . but what i think the Blesta gateway is not able or it has a wrong currency post field . so i think is Blesta gateway error , this is not a big issue so is easily resolved . I am happy to read that, but how can I fix it? Or where do I begin to look?
Abdy Posted November 20, 2017 Report Posted November 20, 2017 8 hours ago, MistaGrk said: I am happy to read that, but how can I fix it? Or where do I begin to look? Send me a PM with the Logs of the gateway, I will check if I can help you.
MistaGrk Posted November 20, 2017 Report Posted November 20, 2017 1 hour ago, cyandark said: Send me a PM with the Logs of the gateway, I will check if I can help you. How do I gather the logs? Where are they located?
Abdy Posted November 20, 2017 Report Posted November 20, 2017 11 minutes ago, MistaGrk said: How do I gather the logs? Where are they located? Under the admin panel, Tools > Logs > Gateway
MistaGrk Posted November 20, 2017 Report Posted November 20, 2017 1 minute ago, cyandark said: Under the admin panel, Tools > Logs > Gateway lol sorry man, i keep forgetting blesta offers this.. PMing you now mate.
MistaGrk Posted November 20, 2017 Report Posted November 20, 2017 18 hours ago, cyandark said: Send me a PM with the Logs of the gateway, I will check if I can help you. Hey Mate. By no means pushy but was wondering if you can take a look at those logs I PMed you. Or if anyone else can put in their input? @Blesta Addons ... I am live and not accepting payments and have past dues.
Blesta Addons Posted November 20, 2017 Report Posted November 20, 2017 you can paste the logs and change sensitive data with asterisk .
MistaGrk Posted November 20, 2017 Report Posted November 20, 2017 17 minutes ago, Blesta Addons said: you can paste the logs and change sensitive data with asterisk . Hi, Most recent log is: /callback/gw/1/square/?checkoutId=***********************&client_id=12&referenceId=5a11a80178afd&transactionId=******7de2-a937-595a-7fe8-0c*********44ea:6:{i:0;s:1:"1";i:1;s:6:"square";s:10:"checkoutId";s:30:"C******************OogAQ";s:9:"client_id";s:2:"12";s:11:"referenceId";s:13:"5*****80178afd";s:13:"transactionId";s:36:"d1***de2-a937-**5a-7fe8-0c928******4e";} One before that is: /client/pay/confirm/ a:1:{i:0;a:3:{s:4:"name";s:14:"Payment Credit";s:8:"quantity";i:1;s:16:"base_price_money";a:2:{s:6:"amount";s:5:"28.85";s:8:"currency";s:3:"CAD";}}} Then another one is: INPUT: /client/pay/confirm/ a:1:{i:0;a:3:{s:4:"name";s:14:"Payment Credit";s:8:"quantity";i:1;s:16:"base_price_money";a:2:{s:6:"amount";s:5:"28.85";s:8:"currency";s:3:"CAD";}}} OUTPUT: /client/pay/confirm/ O:8:"stdClass":1:{s:8:"checkout";O:8:"stdClass":8:{s:2:"id";s:30:"CBASEHpBfiAS*********wSu6OogAQ";s:17:"checkout_page_url";s:106:"https://connect.squareup.com/v2/checkout?c=CBASEHp*********wSu6OogAQ&l=CBASE*********2z8bcvY5gU*********gAQ";s:24:"ask_for_shipping_address";b:1;s:24:"pre_populate_buyer_email";s:15:"***@***.***";s:29:"pre_populate_shipping_address";O:8:"stdClass":8:{s:14:"address_line_1";s:25:"***-***";s:14:"address_line_2";s:0:"";s:8:"locality";s:7:"***";s:31:"administrative_district_level_1";s:7:"***";s:11:"postal_code";s:7:"***";s:7:"country";s:2:"CA";s:10:"first_name";s:5:"***";s:9:"last_name";s:6:"***";}s:12:"redirect_url";s:68:"https://***.***.com/callback/gw/1/square/?client_id=12";s:5:"order";O:8:"stdClass":6:{s:11:"location_id";s:30:"CBASEMK_*********UHIQgAQ";s:12:"reference_id";s:13:"***";s:10:"line_items";a:1:{i:0;O:8:"stdClass":7:{s:4:"name";s:14:"Payment Credit";s:8:"quantity";s:1:"1";s:16:"base_price_money";O:8:"stdClass":2:{s:6:"amount";i:2885;s:8:"currency";s:3:"CAD";}s:17:"gross_sales_money";O:8:"stdClass":2:{s:6:"amount";i:2885;s:8:"currency";s:3:"CAD";}s:15:"total_tax_money";O:8:"stdClass":2:{s:6:"amount";i:0;s:8:"currency";s:3:"CAD";}s:20:"total_discount_money";O:8:"stdClass":2:{s:6:"amount";i:0;s:8:"currency";s:3:"CAD";}s:11:"total_money";O:8:"stdClass":2:{s:6:"amount";i:2885;s:8:"currency";s:3:"CAD";}}}s:11:"total_money";O:8:"stdClass":2:{s:6:"amount";i:2885;s:8:"currency";s:3:"CAD";}s:15:"total_tax_money";O:8:"stdClass":2:{s:6:"amount";i:0;s:8:"currency";s:3:"CAD";}s:20:"total_discount_money";O:8:"stdClass":2:{s:6:"amount";i:0;s:8:"currency";s:3:"CAD";}}s:10:"created_at";s:20:"2017-11-19T15:49:21Z";}}
Abdy Posted November 21, 2017 Report Posted November 21, 2017 I found the problem, it looks like Square's API has been updated and broke the gateway. Square released the Connect v2.5 version on November 2nd, with changes in transaction management. I fixed the API and tested the gateway in Blesta 4.x and works pretty well. I attached the fixed version in this post. square.zip Beav, activa and Michael 2 1
MistaGrk Posted November 21, 2017 Report Posted November 21, 2017 29 minutes ago, cyandark said: I found the problem, it looks like Square's API has been updated and broke the gateway. Square released the Connect v2.5 version on November 2nd, with changes in transaction management. I fixed the API and tested the gateway in Blesta 4.x and works pretty well. I attached the fixed version in this post. square.zip You sure did Thank you!!!!! Beav, Abdy and Michael 3
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now