paypal chained payments on my website - php

I have no experience in integrating Paypal, so I'm sorry if my questions seems a little bit odd..
I have tried for the last 48 hours to read Paypal API docs, but I can't figure out how to achieve what I'm looking for:
I want to use the chained payment option on my website,
but I don't want to host the purchase form etc on my website,
I want to put a purchase button that will redirect to paypal's payment page, where there will be two options:
- Pay with Paypal account
- Pay with credit card
can anyone reference me to what should I do?
thanks..

Read through the Adaptive Payments developer guide, and then take a look at the Pay API specifically.

Related

Using paypal on custom website and accept credit / debit Card

I have an issue right now that is killing me, I have implemented several payment options but never used paypal, I don't know why is it so complicated.
The website already exists and wasn't developed by myself.
I don't know the ammount of the order it is dynamic, so the "create payment buttons" on the paypal website doesn't work for me, at this point i developed a solution using
PayPal developers
But it turns out that i only have the option to pay with a PayPal account or register a PayPal account, I do not want to force customers to do this, it has no sense. is there any relatively easy solution out there using the same PayPal API?
EDIT
The whole site code is in PHP so i need the solution in this language
As you have mentioned that you are aware of one payment method i.e. Express Checkout ( in which user needs to have a valid Paypal account) so the other method which I think you need is the Direct Payment (i.e. a user can pay with credit cards directly without any Paypal account) API.
For this direct payment api you need to enable Website Payment Pro WPP , here you can get info about WPP.

paypal customize checkout page which use paypal payment only

I want to include paypal checkout without leaving website i develop for a client. i'm using the developer account. what paypal option or api do i need to use here? (there are so many api's which confuses me)
and also i need to customize the checkout page style and look, so that users can only pay through paypal accounts (not enter credit card details).
i have reviewed the following questions but couldn't find a proper solution..
stack overflow question
Here is a similar question to yours:
From Stack PayPal Redirection
You cannot use PayPal Standard and stay on your website. You either need to get setup with PayPal Payments Advanced or PayPal Payments Pro.
Using PayPal Payments Advanced you can use an iFrame that uses the PayPal Hosted Page while giving the appearance of staying on your website.
Here is the getting started guide:
PayPal Payments Advanced Getting Started Guide

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 recurring payment

Hi
Can someone please explain me if "PayPal recurring payment" and "Paypal subscription" are the same thing?
Like I am working on a monthly membership payment integration with php and paypal. What I need to do is make this go on forever until the member decides to opt out. I am using this class found at www.micahcarrick.com/php-paypal-ipn-integration-class.html for the integration.
In the class you can mention like for how long you would like to make it as recurring payment but there are no options to make it go forever like a monthly subscription thing. Please help!
Many thanks in advance and I really appreciate your help :-))
These are not the same thing. A standard PayPal account can create subscriptions but not recurring payments. If you plan to use IPN as your only integration, you need to create subscriptions, not recurring payments. You do not create them programmatically, you just generate a subscription link and the buyer creates the subscription on the PayPal website.
Recurring payments are part of one of the APIs accessible to PayPal Website Payments Pro accounts.

Pay online service

I have a database where you can select articles etc, users have an account, it's all in mysql and php (i guess you don't need that code).
What i was wondering was how to write a script that allows users to pay online for the articles they selected?
It doesn't need to be any code, just ideas / hints / tips / ... (that are doable in PHP or something similar)
Thanks in advance!!
-Samuel
You have to do that through a service that collects money, such as paypal or a bank.
You make an account there, and they will provide the necessary files and documentation to do that.
Usually it will mean
when the user wants to pay, you redirect them to a specific page in the payment site
you host an IPN (Instant Payment Notification) file where that site will contact you when he receives a payment
I've done some paypal coding before and it is easy to set up, suggest that you should search for payment gateway that, i've work with ipay88.com before its one of payment gateway at my place.
Usually if you setup the paypal for the business transaction you will need to register as merchant account and they will charge you per transaction, same goes with payment gateway.
It is a very broad question. But basically you need to integrate some payment module, such as paypal. Look at their website, where there are tutorials on how to get it working with php.

Categories