Payment Processing

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
LunaRebirth
Posts: 386
Joined: Sun May 11, 2014 12:13 am

Payment Processing

Post by LunaRebirth »

Totally Irrlicht-unrelated question :D I hope that's okay to ask here.

I am ready to set up various account types for certain services in my application, including ones that cost monthly and one-time payment fees.

Does anyone have experience with this? I am having a lot of troubles.

First I decided to try and use PayPal, since they are well-known. After setting up a development account and using Curl to send credit card transactions, I am receiving errors in the testing environment -- PayPal support suggests not testing but rather going directly into testing with real credit cards. Because they don't have a C++ SDK and I need to gather and parse JSON information received, this is terrible advice from such a popular company, so I've ruled them out. They are having several issues currently, and I don't want to deal with it.

Other companies, such as 4dPayments and BluePay don't have their costs online, but you must request a quote, which leads me to believe they are expensive services. Truthfully, I am not even sure they are what I am looking for.

Does anyone have experience with making transactions in C++? It looks like there aren't many options to choose from.
denzelbro
Posts: 50
Joined: Wed Jun 27, 2018 11:53 pm

Re: Payment Processing

Post by denzelbro »

I haven't done anything C++ and PayPal related but you can still use their REST SDK/API with C++..

related question/answer on stackoverflow:
https://stackoverflow.com/a/40503359/4402436

there's also a Qt based project here in C++..

https://github.com/podsvirov/qtpaypal
LunaRebirth
Posts: 386
Joined: Sun May 11, 2014 12:13 am

Re: Payment Processing

Post by LunaRebirth »

denzelbro wrote:I haven't done anything C++ and PayPal related but you can still use their REST SDK/API with C++..

related question/answer on stackoverflow:
https://stackoverflow.com/a/40503359/4402436

there's also a Qt based project here in C++..

https://github.com/podsvirov/qtpaypal
Yes, I got a working solution for PayPal. The issue is that the sandbox (testing with a business pro account) is having problems on their end. When I spoke with their support team on the phone, their solution was not to use sandbox, but rather test with real cards. I don't want to do that
denzelbro
Posts: 50
Joined: Wed Jun 27, 2018 11:53 pm

Re: Payment Processing

Post by denzelbro »

LunaRebirth wrote:
denzelbro wrote:I haven't done anything C++ and PayPal related but you can still use their REST SDK/API with C++..

related question/answer on stackoverflow:
https://stackoverflow.com/a/40503359/4402436

there's also a Qt based project here in C++..

https://github.com/podsvirov/qtpaypal
Yes, I got a working solution for PayPal. The issue is that the sandbox (testing with a business pro account) is having problems on their end. When I spoke with their support team on the phone, their solution was not to use sandbox, but rather test with real cards. I don't want to do that
I see, probably just a temporary issue and should get sorted out eventually. I doubt this will take longer as developers really rely on their sandbox system.
funkey
Posts: 4
Joined: Wed Jul 18, 2018 12:57 pm

Re: Payment Processing

Post by funkey »

Are you doing on your website?

Game => Website => PayPal => Website => Game

I ask because when I do (using PHP), I send request to PayPal, they contact back to website URL and I send back confirm.
If you do in game client then they may be (probably) on intranet and PayPal not able to contact back?


I never had to use real cards to test, sandbox works ok for me, more so nowadays, but it is confusing, especially when it times out
funkey
Posts: 4
Joined: Wed Jul 18, 2018 12:57 pm

Re: Payment Processing

Post by funkey »

sorry, I just think

This is process I use for website and I need to redirect user to PayPal, so may not work here like this, sorry
LunaRebirth
Posts: 386
Joined: Sun May 11, 2014 12:13 am

Re: Payment Processing

Post by LunaRebirth »

Actually, I contacted Paypal's technical support and in a matter of about a week, they fixed my account for me so I could send sandbox requests. I will say their technical support is very irritating (the person I spoke to didn't know they were able to access my account, and a few days later asked for my account information so they could fix my account even though I already gave the information -- very frustrating..)

I tried to set up the payment requests using libcurl in C++, but it requires being built with TLS V1.2. I spent days and several dozens of hours trying to build it in every way possible, but always resulted in incompatibility with MinGW errors.

In the end, I just downloaded the Curl binary executable and made System() calls on my Amazon EC2 server and piped the response, then parsed the result to see whether the transaction completed/failed.
Seems to work pretty well.
Post Reply