PHP:transaction using paypal,Master card and Visa card - php

I am creating a PHP website. Here a portion is customer can pay to website owner from paypal,visa and master card(debit/credit). If transaction successful customer will get a confirmation notification and website owner will also get a confirmation notification.
I did not a work like online transaction before!! What is the best and secure way to do this?
Any help or source code is highly appreciated!!

Take a look at the Paypal API.

for paypal you need to Set up a business account with PayPal and read the documentation for their Express Checkout integration.
for visa and mastercard please check this answer

Related

How to manage response from paypal when people pay as a guest checkout. No paypal account

I'm using a custom php Paypal nvp API for express checkout.
When people pay with their paypal account I have no problem in my php script, I insert the order, order details and I send the email to the customer. When people pay with their credit card without paypal account I don't receive the transactionid.
The strange fact is that when I use the sandbox, I generate a fake visa I do the payment, in my database I have the transaction id and I receive the email.
Someone had or is having my same problem?
There are different ways to manage payment with and without account?
For both I'm checking the payment status = Complete.
Happy to help your query,
Firstly, PayPal NVP is deprecated implementation. There wouldn't any support for new merchants who willing to add PayPal as a payment option.
Please go through the below recent products which run on REST APIs. I suggested two options of accepting payments so, hence choose the best one suits you.
Standard Integration Link.
Advanced Credit & Debit Card Link.
Thanks.

Sending & Accepting PayPal Payments through my PHP Website

I have my PHP Website where two different Category of users includes: Customers and Performers signed up. Now through my Website customers wants to pay via PayPal to Performers, Is there a way in PayPal to achieve this?
I have saved Performer's PayPal Email in my database, so I just want it work like PayPal payment buttons but with my own PayPal email and with my own Amount of money.
Ideas apart from PayPal are also warmly welcome.
how about braintree. It support normal credit card payment gatemway and also paypal implementation
I think it is better to have normal credit card payment gateway and then implement paypal after that, cause I think all paypal user has credit card and not all credit card user has paypal.
Use this link for your reference to implement normal payment gateway, it should be very easy as they also provide sample code
https://developers.braintreepayments.com/javascript+php/start/overview
And you can continue to implement paypal after that using this link for reference
https://developers.braintreepayments.com/javascript+php/guides/paypal

DoDirectPayment Method in Paypal advanced

I am working on paypal api. As client said he has purchased the paypal business account where his customer's can pay money on his own website and then I came through the DoDirectPayment method and worked on it and it was working on the sandbox but it was not working on live account.
It shows error as
"Invalid Configuration : This transaction cannot be processed due to an invalid merchant configuration."
and after bit search I came to know that account should be payment pro. Client gave me a link that he has purchased the paypal advanced and the link is "https://www.paypal.com/webapps/mpp/paypal-payments-advanced"
And when I saw the account type it shows the only business account. Where can we can check the exact account type?? Is there any option where I can check the merchant type. I am bit confused. I think client needs to pay extra for payment pro as written on website. Can I use DoDirectPayment method in paypal advanced. On paypal it shows three type of account type personal personal, premier and business account. After subscription for business account does he need to subscribe for others like advance pro and standard? and what all other methods we can use for paypal advance.
I am new so I am bit confused and I didn't found any suitable document..
Thanks in advance :)
The PayPal Payments Advanced product does not support DoDirectPayment API. Advanced makes use of pages (layouts) hosted by PayPal and credit card data is posted to the server using a secure token. See PayPal Payments Advanced for a detailed explanation of how it works and links to all of the documentation.

PayPal IPN Variable receiver_email

I have created a successful PayPal IPN script which imports the result into my database but I would like to know if there is any way I can set a custom $receiver_email for the transaction. The problem I run into when doing this is that the IPN is not set up on some accounts.
To put it into context I am creating an auction site where buyers can pay for items and the seller (receiver_email) needs to change to send the payment to them.
If there any way I can get round this problem? If someone can point me in the right direction I would be very grateful.
Thanks in advance!
No, this isn't possible. The IPN settings are set at the account level, so it is up to the receiving paypal account to notify their IPN system.
You would be better off (from a technical point of view, IANAL and this isn't advice on legal issues) having buyers all paying into a central clearing account which you then use to separately pay the sellers.
It sounds like you are looking for PayPal Adaptive Payments. A note about this though: one account - probably you as the main application owner - must have a PayPal business account. The other accounts that receive a payment only need a personal account.
PayPal provides an SDK with samples for the Adaptive Payments on Github. Select Adaptive Payments from the menu on the left. There are samples for multiple languages that should be able to get you started.

Not receiving PayPal express transaction - Php

Apologies if this question has already been asked. I've been hunting around for a few hours and haven't found an answer to my problem.
I am pretty new in working with the PayPal api's, so please forgive me if I am blatantly missing something here.
I am setting up a test environment to gain an understanding of how to build a web checkout using the Express Checkout library in PHP. I have set up both a buyer and a merchant seller account and have used some of the examples in the PHP SDK to help me build a basic HTML input page, and ultimately succeed in transferring the funds from the buyer account to the merchant account.
The problem that I am having is that when I have completed in sending the money, and I then log into the buyer's sandbox account, I can see that the money was sent to the merchant, however the transaction has been tagged as "Unclaimed". Looking at the details of the transaction, it has been sent to the correct merchant sandbox account. When I then log into the merchant account however, there is no sign of the transaction.
I am using the "Sale" payment type.
Any help would be greatly appreciated.
Make sure the email address is verified on the sellers account. If you still don't see it, can you provide the transaction id, the test sandbox buyer email address, and the test sandbox seller email address and I can take a look at it on my side.

Categories