Posted by Michael Horvath under Technology  on Aug 01 2022

Square Up has updated their SDK for payment processing and made a change that will obsolete the method we were using to take customer payments. We've updated our payment processing code to make use of the CheckoutApi CreatePaymentLinkAsync method. The Square Up SDK documentation for this does not include the client local variable definition so to help those who may want to use the same payment processing method we've included a code snippet from our Buy controller.

We hope this helps with your development efforts. Thanks for reading our post!

            
                if (tempProduct.SalePrice.HasValue)
                {
                    var client = new Square.SquareClient.Builder()
                        .Environment(Square.Environment.Production)
                        .AccessToken(ConfigurationManager.AppSettings["squareUpAPIKey"])
                        .Build();

                    var priceMoney = new Square.Models.Money.Builder()
                        .Amount((long?)(tempProduct.SalePrice * 100.0M))
                        .Currency("USD")
                        .Build();

                    var quickPay = new QuickPay.Builder(
                        name: tempProduct.FileName + " Activation Key",
                        priceMoney: priceMoney,
                        locationId: ConfigurationManager.AppSettings["HSS_squareUpLocationID"])
                      .Build();

                    var prePopulatedData = new PrePopulatedData.Builder()
                      .BuyerEmail(currentEmail)
                      .BuyerPhoneNumber("+1" + tblPRESSCustomer.PhoneNumber)
                      .Build();

                    var checkoutOptions = new CheckoutOptions.Builder()
                        .RedirectUrl(@"https://horvathsoftware.com/tblPRESSCustomerTransactionData/Success?activationKey=" + keyWeFound + @"&EmailAddress=" + currentEmail + @"&FileName=" + tempProduct.FileName + @"&customerID=" + customerID.ToString() + @"&transactionAmount=" + ((decimal)tempProduct.SalePrice).ToString())
                        .Build();

                    var body = new CreatePaymentLinkRequest.Builder()
                      .IdempotencyKey(NewIdempotencyKey())
                      .QuickPay(quickPay)
                      .PrePopulatedData(prePopulatedData)
                      .CheckoutOptions(checkoutOptions)
                      .Build();

                    try
                    {
                        var resultLink = await client.CheckoutApi.CreatePaymentLinkAsync(body: body);
                        int waitTime=3000;
                        HSS_DB_Settings.DBAppSettings.GetSettingInt32("waitToRedirectPayment", out waitTime);
                        System.Threading.Thread.Sleep(waitTime);
                        return Redirect(resultLink.PaymentLink.Url);
                    }
                    catch (ApiException e)
                    {
                        Console.WriteLine("Failed to make the request");
                        Console.WriteLine($"Response Code: {e.ResponseCode}");
                        Console.WriteLine($"Exception: {e.Message}");
                        goto returnView;
                    }
                }

Tagged --no tags--
Posted by Michael Horvath under Technology  PRESS News  on Jul 31 2022

Because there has been little interest in downloading our Windows Desktop Applications, we have removed the page with descriptions of our applications and links to our customer create page which allows entry to the actual download page. We aren't actively trying to pursue customers to download and use these applications to sustain our business. We do hope to provide freelance development to other small businesses and this is how we hope to sustain the business. The pages for downloading these applications and purchasing activation keys are still present on the main website to demo some of the capabilities that we have in development of both web applications and Windows Desktop Applications.

If you are interested in downloading one or more of our applications you may do so after entering your customer contact information by clicking this link, Download.

Password Randomizer with Encrypted Storage System (PRESS)

PRESS is a free password manager that will generate and store passwords for your various accounts. Your passwords are stored in a local vault file that is encrypted with AES-256 encryption using a master password you choose that if you wish is never stored anywhere on your PC or anywhere else. You may optionally create a secure vault key file that will allow you to access your passwords without typing in your master password. This free application has some capabilities limited, but for a fee an activation key may be purchased to unlock all of its features.

This is a sample of a hybrid winform/Windows Presentation Foundation (WPF) Windows application. Much of the user interface is done in winform with some WPF controls and WPF screens. This shows results of updating a winform application to include more modern controls available with WPF.

Windows Desktop Farkle Dice Game

Farkle is a free dice game that you can play on your Windows PC.

This is a sample of a WPF Windows application.

Screen Snapshots


Thanks and have a blessed day!

Tagged --no tags--
Posted by Michael Horvath under Faith, Hope & Love  on Jul 30 2022


Joy Unspeakable
Words by Barney Elliot Warren, (1900)
Music by Barney Elliot Warren, (1900)
YouTube performance by Faith Life Church in Branson, MO

Tagged Hymn 
Posted by Michael Horvath under Technology  SQL Server  .Net MVC  Embedded Systems  Test Automation  on Jul 30 2022

We have much experience in software development with a range of application project experience that can translate into productive freelance development. Early in our experiences we worked on embedded systems development where we programmed in a variety of microprocessor assembly languages, Ada, C, C++. We have experience with avionic software, medical device and manufacturing process controls. Embedded systems work was among some of our favorites; however, we also have worked in IT development where we have experience with relational database management systems such as Ingres, Oracle, RBase, and SQL Server. We have developed solutions for Unix and Windows platforms and have experience in working with Flexera's Install Shield software for creating install packages for Windows Desktop Applications. We have developed a variety of desktop applications including winform and Windows Presentation Foundation (WPF) as well as some hybrids of winform with WPF controls.

Our primary interest now is in helping other small businesses in whatever ways they may need. We are open for any ideas that you may have but don't have the in house skills to develop for your business.

Aside from software development work experience we have worked in retail and food service industries in our younger days. This gave us experience in point of sale as well as inventory control and food preparation. These skills may also aid us in developing a solution that will perfectly address an issue you may have in your day to day business.

Thanks for your time and attention to reading our posts on this blog site and may you be blessed today and always!

Tagged --no tags--
Posted by Michael Horvath under Faith, Hope & Love  on Jul 06 2022

As you may have noticed this is a new attempt at starting up a freelance software development company. I had previously shutdown the site due to very little traffic on the site and potential financial difficulties with some of my free services causing high monthly expenses. In fact, no customers had downloaded any code or used any of the free services available on the main site. After a while of the site being taken down, I was reminded of this story about Jesus telling his disciples to try again after a long night's failed fishing. This reminder encouraged me to try again.

It is my hope that someone else may also be encouraged to try again!


Later, Jesus appeared once again to a group of his disciples by Lake Galilee. It happened one day while Peter, Thomas (the Twin), Nathanael (from Cana in Galilee), Jacob, John, and two other disciples were all together. Peter told them, “I’m going fishing.” And they all replied, “We’ll go with you.” So they went out and fished through the night, but caught nothing.

Then at dawn, Jesus was standing there on the shore, but the disciples didn’t realize that it was him! He called out to them, saying, “Hey guys! Did you catch any fish?”

“Not a thing,” they replied.

Jesus shouted to them, “Throw your net over the starboard side, and you’ll catch some!”

And so they did as he said, and they caught so many fish they couldn’t even pull in the net!
Then the disciple whom Jesus loved said to Peter, “It’s the Lord!”

When Peter heard him say that, he quickly wrapped his outer garment around him, and because he was athletic, he dove right into the lake to go to Jesus! The other disciples then brought the boat to shore, dragging their catch of fish. They weren’t far from land, only about a hundred meters. And when they got to shore, they noticed a charcoal fire with some roasted fish and bread.

Then Jesus said, “Bring some of the fish you just caught.”

So Peter waded into the water and helped pull the net to shore. It was full of many large fish, exactly one hundred and fifty-three, but even with so many fish, the net was not torn.

“Come, let’s have some breakfast,” Jesus said to them. And not one of the disciples needed to ask who it was, because every one of them knew it was the Lord. Then Jesus came close to them and served them the bread and the fish. This was the third time Jesus appeared to his disciples after his resurrection.

Brian Simmons, trans., The Passion Translation (BroadStreet Publishing, 2017), Jn 21:1–14.

Tagged Bible 

<< Previous Page
Next Page >>