What i have to do in my app to receive payments? (java - spring) - spring

I am developing a portal where users to access, must buy a plan. This portal is being developed with angular + spring.
To purchase the plan will have to be through PayPal or by entering the credit card information.
I know that PayPal has an API for this case and I have no doubt.
How can I do to implement this logic payments with credit cards? The server part is java soon recommend the use of a service, it must be compatible with Java.
thanks

You should use Paypal Java SDK (https://github.com/paypal/PayPal-Java-SDK). The repository contains working example of performing REST calls to Paypal API, so it should be easy to create a specific Spring service within your app to make use of these calls.

Related

Using cashier capabilities without stripe?

Stripe and Braintree are not available in my location, so I've to use Paypal.
I'm trying to figure out the technicalities and best practices , since it's my first time integrating payments.
I'm also trying to figure how to smoothly go from a register + free access, to register + pay to access
Questions:
I want to make it a smooth transition when I decide to start charging my users for access. What do I need to set-up beforehand? Currently I haven't launched yet so I want to prepare everything I need.
Can I use cashier to manage access for users that paid but while I'm using paypal and not stripe like cashier use? (i mean to use some of cashier functionality).
note: I found a package on github (https://github.com/srmklive/laravel-paypal) that integrates paypal into a laravel app, but it uses a deprecated api from 2017.

spring mvc integration with hdfc payment gateway

Hii I want to build an ecommerce website where I can integrate various payment gateways like hdfc,icici,sbi,kotak,etc.How can it be implemented in spring mvc projects.What are the interfaces,jars,classes required.Do we need to register anywhere.Any help would be deeply appreciated.
There are various payment gateway available for indian merchant like:
CCAvenue
ebs
Citrus Pay
DirecPay
PayUmoney
I would suggest you to use CCAvenue. To integrate CCavenue Payment gateway to your website. you will need to follow below step:
create account in CCAvenue.
verify your mobile and email.
your account will activate within a hour.
you will get username and password
CCAvenue's technical team will check you website ans content and based on that they will mail you.
there are some document you need to provide them like cancelled cheque, undertaking form etc.
after that they will give you marchant id based on your website

Delay Paypal payment - Braintree APIs

I am developing a website that offers car-washings in all places publicly available through geolocation. However, due to weather instability, bookings can be cancelled at any time; instead of issuing expensive refunds, I would like to charge customers only once the washing has been performed.
I would like to accept Paypal payments and was suggested to use Braintree. Do you know if it is possible to delay charges with Braintree APIs on Paypal accounts?
I use Laravel 5.1.
Thank you
I would recommend using PayPal Preapproval profiles, specifically the Preapproval API to setup the profile, and then you would use the Pay API to process payments using the preapproval key for a given customer.
This PayPal PHP SDK makes all of those API calls very quick and easy, and it's available on Packagist so you can load it up in your composer.json for Laravel and be running in no time.
It has samples and empty templates for you to work with to make the Preapproval and Pay calls.

Braintree and credit card payment from mobile app

I am working on an app that requires payment to be collected from customers. I have few questions related to braintree integration with my app. I am actually struggling a bit with the workings of the braintree so thought of checking here.
The PCI compliance is critical so i do not want to store anything in my app or the backend server. Can I achieve this with braintree? I also don’t want customer to retype the credit card information when they come back to the app. As I understand there is a Vault functionality which can do this but I was not sure.
Do I invoke the braintree API from iOS app directly or do I need to first send the credit card information to my backend layer and then invoke the Braintree APIs from backend. I don’t want to transmit anything to my server due to the PCI compliance so I am hoping that I can just invoke the braintree API directly from the iOS APP and when user comes back, again invoke the braintree Vault API from the APP and pull the previously used credit card.
appreciate if anyone can pls. direct me to some kind of architecture / white paper/best practice on this. I went thru the APIs document on braintree site which provides and good API documents but i could not find the high level architecture document on this.
Thanks in advance..
Yes. https://articles.braintreepayments.com/control-panel/vault/overview
Yes use from iOS. https://developers.braintreepayments.com/ios+ruby/start/hello-client
for number three... I'm not sure where to find that. Definitely ask support

Downloading existing paypal payments with rest api

I need to download all existing payment information from a paypal account to do some analysis on it, so I set up paypal's ruby rest sdk, which involved creating a new application with its own API keys and whatnot. I can make a successful request with the following:
payment_history = Payment.all( :count => 10 )
However,
payment_history.payments
Is empty.
I'm not sure if this application can only access payments created with it? Can I not get pre-existing payments with the rest api? I would prefer to use ruby, if that's possible, as I would like to keep this all within the simple script I have to analyze similar stripe payments.
Some guidance would be extremely appreciated, as paypal's labrinth of documentation and overlapping APIs have me pretty confused.
You will be able to query only those payments that are made or created with Rest API not the Classic APIs. You can use the Classic Ruby SDKs for the appropriate product to get the Transaction details of the classic APIs

Resources