PayPal adaptive payment flow on React Native - react-native

I'm creating an app with react native that have a payment module with credit card and PayPal as payment module. The payment is automatically transferred to a vendor account subscribed in our platform
(Buyer -> Platform -> Vendor).
I already successfully created this payment flow in the credit card payment module using stripe as a payment gateway but i didn't find a way to do it with PayPal.
Here's a list of what i tried:
Adaptive payment: the problem with PayPal adaptive payment is that's it's not mobile friendly, the standard checkout page is not even close to being responsive. The lightbox checkout page need to open a new Popup which is not possible with RN WebView. And the Mini-Browser one do not return a response after the payment is done (check out this link)
Braintree SDK: Braintree has a pretty great SDK for RN that i already tested and it works great, the problem is that i need to use Braintree's master-merchant and sub-merchants technique to achieve the payment flow i need, but this technique is only available in the US and the funds needs to be in USD and my application is deployed in France using EUR as a currency.
Braintree SDK with PayPal payout: I could create a Braintree account to receive all the funds and then send each one to it's receiver (vendor) automatically but i couldn't find a way to do this
If anyone have an idea of how could i create this flow with PayPal on RN.

Fixed with using the PayPal express checkout with a payee object.
If you want to know more about this functionality i advice you to read more about it here: https://www.paypal-engineering.com/2017/01/03/setting-payee/ .
Now instead of calling the Adaptive Payment API i use the regular payment API with a custom payee and then give the user the express checkout link generated dynamically and finally i call the execute payment API to make the payment after having the client authorization.

Related

React Native payout solution with Paypal and Credit card

I'm going to implement payout payment with Paypal and Credit card in my React Native application. There're two kinds of users in my app - customers and freelancers. Customers should pay to freelancers for their service.
The payment methods I'm going to implement are Paypal and various kinds of Credit cards. The backend server is based in NodeJS.
I'm quite new to this payout development and I'm really not sure where I should begin and which services I should use. Please reach out me any comments.
P.S. I'm contacting to Braintree service for several months and it's taking too long to register, so I'm looking for another solution now.
I don't know of a native solution that will allow you to facilitate payments to a PayPal account that is not yours.
Here is a non-native, vanilla JS demo pattern for PayPal Checkout: https://developer.paypal.com/demo/checkout/#/pattern/server
Using such a checkout, you can set a custom payee to the freelancer's account: https://developer.paypal.com/docs/checkout/integration-features/custom-payee/

In-App Payment, is it possible to save a list of user's credit card in Android App

I'm trying to build up an android platform that takes in user credit card info and charge it on use without inserting the credit card details after saving one. But I don't seem to actually see any possible work ways in the "In-App Payment" SDK and I think I see it under Square's java SDK. But as researched in github, their official reply is that I'm unable to use java SDK in android app.
So I'm trying to figure out has anyone done this before or face the same issue?
In-App Payments SDK is solely meant for generating a card nonce on your mobile application. All other API endpoints must be done on a server or service due to security reasons (you don't want to store your personal access token within your application). Once you have that nonce, you need a server or service running that your mobile application will talk to. Ie the most basic is passing the nonce to the Charge endpoint to charge a customer.
On that same note, we have another endpoint called CreateCustomerCard, which you can pass the nonce as well as customer_id to in order to save the card to this particular customer's profile. So, at the very least you'll need to create a customer in order to have their id.
For info around saving cards on file, see this post: Hot to generate card nonce for repeated transactions without making users to enter card details?

Laravel Paypal API single payout

I'm trying to integrate the Paypal API to my Laravel project to send payments to users emails automatically from my own Paypal account.
The thing is that there are some "mass payments" packages but that's not what I need, I actually need to send a single payment to one user each time.
Thanks in advance!
I don't know about package you are using but for single payout or any type of payment you can use PayPalPHP SDK and here is sample code for single Payout :
Paypal Single Payout PHP
This is PHP Package and you can pull with composer so you can easily use with Laravel Also.
Let me know if have any question.
For document please have a look Paypal Documents API:
Paypal Documentation

bigcommerce app development - custom payment portal

I need to create a custom payment portal for my BigCommerce store.
So that I can capture credit card information and store that in my own system.
Given that bigcommerce supports the development of private apps - can anyone suggest an approach as to how to write an app that would allow me to change the checkout screen to not display, say the paypal checkout, but instead display my own?
There are 3rd party apps that allow you to capture payment information to facilitate recurring payments, and others to change the checkout page layout, so it seems possible to inject javascript into the bigcommerce screens.

how to deal with recurring payment

I am new to the paypal and intefrati it with asp. Net mvc.
Can anyone plz guide which api should be used...??
I have downloaded merchant sdk and I have also seen the documentation but still not able to get what can be used among express checkout, pro, adaptive payment, etc
Thanks in advance.
I would recommend Express Checkout with Recurring Payments. Specifically, that will consist of the following API calls:
SetExpressCheckout - To get a token back from PayPal, and then redirect the user to PayPal.
GetExpressCheckoutDetails - To obtain details about the buyer. This is optional depending on how you setup your SEC request
DoExpressCheckoutPayment - This would be used to finalize a regular (non-recurring) Express Checkout flow.
CreateRecurringPaymentsProfile - This would be used to generate the profile using the tok you got back from SEC.
If you want to setup recurring payments with credit cards directly on your site you'll need Payments Pro with Recurring Billing, and then you would use the PayFlow API to set everything up.