PHP SDK Adaptative Payment How to set Quantity if not embed - php

We use Paypal PHP SDK adaptative payment service to process payments in our site as we receive the payment, take a commission and send the remaining to the listing owner.
We got the PayRequest and the SetPaymentOptions working. The problem is the ReceiverOptions InvoiceData accordingly with the documentation only work with embed pay flow.
So how am I supposed to pass quantity to be paid if I am not using embed pay flow but I need adaptative payment because of the commission we take?

Related

Is there a way to disable paypal Pay Later options on checkout using REST API?

I'm using the paypal REST API using PHP as backend. And the challenge I have is the pay in 4 and pay monthly options while I want instant full payment for less than 100$.
Is there a way to disable it while calling the API to set the limit higher for pay later?
Image showing Paypal Pay later options
I am selling digital products (Airtime and internet bundles) so I want instant payment. Your help is appreciated.
Thank you.
Within the PayPal.com checkout, all the funding sources result in the receiver receiving a single payment. All the receiving account will know is that it received a successful PayPal payment. All billing details and information about the funding source used -- be it a card, bank, Pay Later, or any other local funding source -- are not visible to the receiving account, and kept private by design.
Using the JS SDK, it is possible to enable and control the display of the Pay Later button as well as other payment method buttons/messaging on your own site. However, this only affects what is displayed on your own site. It does not change what may or may not be available in the PayPal.com checkout page depending on the country and location of the payer, currency, amount, and intent of the transaction, etc.

Which PayPal method can used to Make background payment process to transfer money to a PayPal email id in PHP

Which payment method of PayPal can be used to transfer money to a PayPal email id in background process in PHP Programming.??
Paypal is payment Gateway so It provides lots of features for payment integration. About your concern which kind of business logic you are using is all upto you. But I can give some Examples.
1) For Those whose business is very small and don't want to dig his/her head in more complex SDK involvement.
Use : paypal Standard
2) For those whose want same feature as standard but not wanting to display parameter's and all the developer stuffs.
Use :Paypal Express
3) For those whose wants to merchant functionality with advanced features such like credit/dabit, bank transfer and all stuff
Use : Paypal PRO
4) For paypal email transfer
Use: paypal Payout

Manage Payment Flow Through Php Api

i had done simple payment and reccuring payment in paypal using php..but now i want do payment like ebay system..i want manage seller account,middle patry account,buyer account. when buyer order for any product that time money tranfer from buyer account to middle party account and when buyer got product at that time money tranfer from middle party to seller account..i want make this system using php..i tried for create customer and add charge in stripe..but i dont know how to deduct charge from middle party in stripe php api
You can check the whole Stripe API available for PHP at this link and check what meets your needs:
https://stripe.com/docs/api?lang=php#intro

PayPal checkout solution confusion

I am trying to figure out exactly what payment solution to use for my site.
I would like to do the same thing as Spotify (https://www.spotify.com/us/freetrial/ - You'll need to login to see it), allowing users to choose whether they want to pay with PayPal or use a credit card and then taking them to a payment selection screen (on PayPal), then returning them to my site to click confirm and buy.
I am already paying for recurring payments (even though I've yet to use it) and am unsure if that is applicable here. I have also integrated express checkout but I don't know if it will allow recurring payments.
EDIT: Do I need a separate token for recurring payments? Do I have to use the old recurring payments checkout screen? How can this be done as efficiently as possible, like Spotify? Here are my efforts to create a recurring payments profile after express checkout: http://pastie.org/private/sakzopltnwfv93wwmduqq
Diagram:
Select Buy & PayPal (subscription) --> Choose Payment (on PayPal) --> confirm & pay (my site)
This is what spotify's checkout looks like (It wouldn't say update for first time users):
Are they using recurring payments + express checkout? I would really appreciate some help with this.
Yes, you can get this done with Express Checkout + Recurring Payments. That said, if the person chooses credit card when setting up a recurring payment they will have to create a PayPal account. If they're paying a non-recurring checkout then they could use the credit card option without creating a PayPal account.
You mentioned that you're already paying for recurring payments..?? Are you referring to Payments Pro? If so, you don't need to pay for that to use EC + RP. Pro is only necessary if you want to process credit cards directly on your site without ever redirecting to PayPal. This can sometimes make things seem a little more professional and would also give you the ability to let people setup recurring payments without creating a PayPal account when using a credit card.
When using EC you just need to make sure to include the billing agreement parameters in order to get a token back that will work within CreateRecurringPaymentsProfile. Refer to the SetExpressCheckout API reference for more details on that.
This is kind of old now, but is still useful. Take a look at this sample express checkout set of api calls. You'll notice it uses the same token throughout all of the calls.
Just like Spotify -you would need to build that option on your site. If the user chooses to subscribe with a credit card - use the recurring payments w/ direct credit card (see below). If the user chooses to subscribe with a PayPal account - use the recurring payments w/ PayPal Account (this is what Andrew is suggesting above in his response).
Here are the how-to guides:
For direct credit card subscriptions: https://www.x.com/developers/paypal/documentation-tools/paypal-payments-pro/how-set-recurring-payments-profile-using-direct-payment
For PayPal Account subscriptions: https://www.x.com/developers/paypal/documentation-tools/express-checkout/how-to/ht_ec-recurringPaymentProfile-curl-etc
The APIs would allow you to do things like trial periods, setup fee, etc. For example here is a how to on building a freemium kind of model: https://www.x.com/developers/paypal/documentation-tools/express-checkout/how-to/ht_ec-freeTrialRecurringPayments-curl-etc

php paypal integration

I want to return the invoice generated after a PayPal payment on my website. How do I get the PayPal invoice generated after this payment is made?
Your question is not 100% clear. PayPal already sends an invoice (you can customize this from your PayPal account) upon payment completion.
What you can do on your side is to handle payment confirmation using PDT or IPN. I would recommend the second one since is more reliable. Once you get the payment confirmation through IPN you can send to customer your own generated invoice based on the order data.
If you are interested to easily integrate your custom shopping cart with PayPal please read this article.
You can get every information from PayPal using PayPal API.

Categories