Jump to content

Paypal checkout and php - A bit lost...


bambinou1980

Recommended Posts

Hello,

 

I am struggling understanding exactly how the Paypal logic works.

 

From the info I got, you need to POST an hidden field with the notify_url parameter name and set a return url.

 

1)My first question is, will I be able to GET multiple returned parameters on successful transaction? Will the GET parameters be passed if the transaction fails?

 

 

2)My script is about multiple shops, users will checkout and the money will go in whatever shops they are buying from, my worry is that Paypal may need and API key of some sort to send the money to an account, is it possible to send money to different shops from the same domain?

 

 

3)Something that completly confused me is this:

https://developer.paypal.com/docs/classic/api/apiCredentials/

 

Why use an API key, username,password if you can just send payments without it

 

 

Thank you,

 

 

Link to comment
Share on other sites

The reason for the api is to integrate it into a site for payments, then check if payment was actually made.

 

Paypal has a few different payment types.

You would want the integrated paypal pro/business.

Create a developer account at https://developer.paypal.com/

Once you make that account click "application" then "sandbox accounts", use that for testing.

https://developer.paypal.com/webapps/developer/docs/classic/lifecycle/ug_sandbox/

 

If you have multiple domains and the accounts are someone elses, they should each have their own paypal accounts and you supply a way they can insert their credentials(api key) and ability to set each IPN URL in your script.

Link to comment
Share on other sites

Hi,

 

Thank you for the reply.

Is there a way to send something to paypal without an API key?

 

IE:

I have domainA.com

 

with multiple shops

When customer buys he may checkout to:

Business1@business-paypal-address1.com

or

business2@business-paypal-address2.com

or

business3@business-paypal-address3.com

 

a few hundreds of them.

 

 

It is my understand that we can create a form with the "notify_url" hidden field, then the cart items to paypal, and GET the call back parameters, if this works that way, where is the API key needed?

 

 

Thanks,

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.