php - Proceed to credit card payment method in PayPal

218

There is a form, which redirects to PayPal on https://www.paypal.com/cgi-bin/webscr . And shows two ways of payment: login in PayPal and pay with credit card. Is there any way to get redirect right to pay with credit card? Maybe it is need to add some parameter in form or change an action url?

926

Answer

Solution:

No, it a paypal decision, usually if they now users have paypal account, thy redirect to paypal tab, otherwise if its the first time they redirect to card one, this is a semplicistic explanation,but if you search on paypal doc or consult an account manager(that's what i did) you'll get this answer

364

Answer

Solution:

For credit cards payment with PayPal you can use PayPal-PHP-SDK, example - CreatePayment.php.

825

Answer

Solution:

Use this library https://github.com/angelleye/paypal-php-library I have created sample also for creditcard payment. It is very easy to use Just fill-up array values and your work is ready. No need to read core functions of paypal. Find your appropriate file in samples/rest.

People are also looking for solutions to the problem: php - Get highest and lowest values from an array where order is like "AAA", "AA", "A", "BBB", "BB", etc

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.