Hi,
There are often threads asking if there is code or libraries available to make online payments.
Code for B4A, B4i, B4J ( tried with Java14 ) is available to accept online payments by credit card and debit card, via SumUp Payment Online.
SumUp is used in many countries (see https://en.wikipedia.org/wiki/SumUp for a complete list).
Using the code is very simple:
A SumUp account must be opened ( https://sumup.com/ ). It takes a few minutes to open it. After doing this you ( or your client ) can accept online payments by credit card and / or debit card.
For example, if you want to create an app that accepts online payments only for your app, you have to open an account on SumUp. Through this account you can withdraw your credentials and receive payments in real time.
OR
If you need a customer (or more customers) who want to have an online payment system, your customer just needs to open an account on SumUp. Enter your details, including the IBAN where you want to transfer the money received with online payments.
That's all.
The operation takes a few minutes.
Example: You have a customer who opens the account and the email address she used to open the same is: [email protected]
Just enter (as indicated above) the line of code:
and all payments will be received directly in the customer's account.
SumUp also provides a convenient console (web browser or app) to check the online payments received and transfers the payments received within a few hours to the current account indicated by the customer.
HOW TO GET CREDENTIALS DEVELOPER (MUST BE DONE ONLY ONCE)
After opening your account on SumUp, go to your "Profile" (1), click on "developers" (2), create your credentials through the Create Credential button, enter a return url for payment (where you see " Home Page URL ") which can be any url. Once this is done, just click on JSON (3). You will get the client_id and client_secret which will be used to make everything work.
The result will be the following:
Very simple.
The price: 50€
Payment method : paypal
send the payment to the paypal account : [email protected]
As already done by the legendary @sfsameer Every sale we make we will donate 25% to B4X by the end of every week !
A nice day
There are often threads asking if there is code or libraries available to make online payments.
Code for B4A, B4i, B4J ( tried with Java14 ) is available to accept online payments by credit card and debit card, via SumUp Payment Online.
SumUp is used in many countries (see https://en.wikipedia.org/wiki/SumUp for a complete list).
Using the code is very simple:
B4X:
Dim total_pay as Double
Dim description_buy as String
Dim email_client_sumup as String
total_pay = 1.5
description_buy = "Test Buy"
email_client_sumup = "[email protected]"
A SumUp account must be opened ( https://sumup.com/ ). It takes a few minutes to open it. After doing this you ( or your client ) can accept online payments by credit card and / or debit card.
For example, if you want to create an app that accepts online payments only for your app, you have to open an account on SumUp. Through this account you can withdraw your credentials and receive payments in real time.
OR
If you need a customer (or more customers) who want to have an online payment system, your customer just needs to open an account on SumUp. Enter your details, including the IBAN where you want to transfer the money received with online payments.
That's all.
The operation takes a few minutes.
Example: You have a customer who opens the account and the email address she used to open the same is: [email protected]
Just enter (as indicated above) the line of code:
and all payments will be received directly in the customer's account.
SumUp also provides a convenient console (web browser or app) to check the online payments received and transfers the payments received within a few hours to the current account indicated by the customer.
HOW TO GET CREDENTIALS DEVELOPER (MUST BE DONE ONLY ONCE)
After opening your account on SumUp, go to your "Profile" (1), click on "developers" (2), create your credentials through the Create Credential button, enter a return url for payment (where you see " Home Page URL ") which can be any url. Once this is done, just click on JSON (3). You will get the client_id and client_secret which will be used to make everything work.
The result will be the following:
Very simple.
The price: 50€
Payment method : paypal
send the payment to the paypal account : [email protected]
As already done by the legendary @sfsameer Every sale we make we will donate 25% to B4X by the end of every week !
A nice day