paypal immediate, chained payment - ruby-on-rails

I have a an application for digital goods which makes use of paypal.
I need to tackle the following scenario:
A buyer (german paypal account) buys an item, the application itself (german paypal account) should receive a fee and another party (german paypal account) should receive money.
So I started using adaptive payments (in rails I do use the active_paypal_adaptive_payment gem), which is working fine.
But as soon as the buyer is located in the us (paypal sandbox account for us seller) I have an unverified checking account. Consequently the payment remains pending until the receiver accepts the payment.
But this is not wanted, since I want to accept only payments which can be processed right away.
So is it possible to use paypal's immediate payment in conjunction with adaptive payment (preferably the active_merchant gem for reils) ?
Best,
Philip

Related

Is there a way to check how user pay(with his own account or credit card) in PayPal checkout?

Is there a way to check how user pay(with his own account or credit card) in PayPal checkout by adaptive payments api?
It's not going to be obvious what your user paid with, due to security purposes of PayPal checkout. You can see things like Instant Transfer(paid by bank) or echeck(also paid by bank). Other than that, those payments will just show as PayPal payments.
You can, however, use this parameter in your call.
PAYMENTREQUEST_n_ALLOWEDPAYMENTMETHOD
The payment method type. Specify the value InstantPaymentOnly. You can specify up to 10 payments, where n is a digit between 0 and 9, inclusive.
This would make everything Instant Payment(all payments paid by bank or by balance).

pay from customer to another customer in my app use paypal or stripe?

I am developing an application that has a function allow an customer pay to another customer.Can I use Paypal mobile or Stripe? how to implement it?
Stripe has a full solution of this. This is call stripe connect.
Suppose you have a marketplace and you have buyer and seller. Now you want to send money directly to your seller.
For this situation you can use stripe connect.
To use stripe connect your seller need to connect with his/ her stripe account (similar as facebook or social media login).
When you use stripe connect a charge will deduct from buyers account which is called stripe charge. Another type of charge you can deduct from your buyer which is called application fee. You can set your own application fee.
Money will send directly to seller's stripe account after deducting stripe charge and applicatipn fee. You also have full refund option in stripe comnect.
There're several options for you to implement a person-to-person payment function, but you may want to check with venmo as the most convenient way for an native APP integration
Stripe is one of the popular gateway for receiving payment in Canada, if you have user base of canada than i would recommend using stripe, you can find the integration kit here
Paypal is also good option you can get the documentation of paypal integration here.
For Paypal account you need to verify your email id & bank accounts same is for stripe.

How to receive payments in PayPal account

I have an app in which I have to receive payment within the app
The flow should be as below
user A will pay to merchant
Merchant will deduct his fee (say 10% )
merchant will send 80% to user b who do the service
My question is how we can transfer money from Merchant to user B
Can we ask a user to enter PayPal detail in a form and send that to our own server and then we can make the transfer?
Please suggest.
There are a few different ways to accomplish that.
1) You could use the setup a chained payment with the Adaptive Payments API and it would handle the split of the money between the different accounts for you. You could even do a delayed chained payment if you need to delay the funds to the secondary receiver(s).
2) You could setup a regular PayPal checkout of any kind (Payments Standard, Express Checkout, etc.) with the merchant site, and then use the Pay API (which again would be part of Adaptive Payments) or the MassPay API to send payments out to the secondary receiver(s).

Can we use Apple Pay for Customer to Customer application?

I am new to Apple Pay. We need to develop an application in which we need to pay from Customer to Customer. I have checked out official documentation of ApplePay for payment from the documents given on below link.
https://developer.apple.com/apple-pay/
They have mentioned that customer can pay to merchant for Service or goods.
But if we need to accept make payment one customer to other customer then it is possible or not? If it is possible then how can we accept it?
Thanks in advance!
Apple Pay can be used to make any payment into a merchant's account, using one of the payment providers that Apple Pay supports. Currently Apple Pay supports payments using Braintree, Stripe and others (see their web page). It's up to you what you do with the money once you receive it, you could transfer it to another user, but not using Apple Pay.
You'd want to use a payment provider that supports customer to customer payments, like Paypal.

how to pay through a Paypal Direct Payment if buyer have a paypal account?

Context:
I have to implement a Ruby on Rails e-commerce website, containing a shopping cart.
An option is to use PayPal as a payment gateway.
The merchant (PayPal business account owner) is from Italy.
There are two different PayPal payment workflows available:
1. Express checkout:
in 4 steps:
The web app submits a payment request to PayPal via some PayPal API (see below),
The buyer is redirected to PayPal web server and once there the buyer:
can login (with his paypal username and password), if they already possess a PayPal Account, or
can submit credit/debit card data, if they do not possess any PayPal ACCOUNT
confirm purchase on paypal's server,
the buyer is redirected back to the application server, "where the settlement must be done to complete payment".
2. Direct Payment:
the buyer submits credit/debit card data directly into the original web app.
I'd prefer to implement this second scenario.
About Paypal available APIs:
I read something here: http://paypal.github.io/
Paypal "REST" APIs are NOT still available out of the US, so I have to use Paypal "Classic" APIs.
Using gem 'paypal-sdk-merchant' seems clear to me about how to submit a payment from a credit/debit card.
I can't find any info about the possibility to submit a Direct Payment for a buyer that have a Paypal Account.
if a buyer pays through his Paypal Account:
:payer => {
:payment_method => "paypal" }
if a buyer pays through his credit card:
:payer => {
:payment_method => "credit_card"}
So:
Can I use the Classic API for a live Italian Merchant User?
I'm asking because in PayPal sandbox it seems I can't set a test merchant user with country:IT ... maybe it's a sandbox limitation?
Can I do a direct payment with the Classic API supplying PayPal username/password (for users who have a PayPal account) instead of creditcard data (all other users)?
In short:
Yes, you can set up a merchant sandbox account on Paypal from Italy. You first need to login to Paypal with some real credentials (yours or your customer's), then go to to Paypal developers' page, select applications, then sandbox accounts.
I'm afraid direct payment is not part of the classic APIs, but I suggest you using the Paypal Express method. You can find docs here, and in Italian here.

Resources