php - Using PayPal Integration Wizard: Problems with empty variables -


What do I do:

The client defines a very difficult product.

The price is calculated by javascript according to different parameters. The customer tells that he wants to pay with PayPal and sends the form.

While examining the contents of the form, I want to respond to their wish to pay through PayPal.

Integration Wizard I have applied paypals expresscheckout.php and paypalfunctions.php I set the variable at the beginning of paypalfunctions.php (sandbox). Tracked and tracked the remaining code in the code given to PayPal-call.

PayPal is called in its own function "hash_colc", where they use these variables. But they are empty.

Code paypalfunctions.php

  defines all global variables and wrapper functions ***************************** ************************ ******************************************* ****************************************************************************** '127.0.0.1'; $ PROXY_PORT = '808'; $ SandboxFlag = true; // '------------------------------------ // Change' PayPal API Credentials' Lieutenant; API_USERNAME & gt; // Change '// with your API username; API_PASSWORD & gt; // Change 'with your API password & lt; API_SIGNATURE & gt; With your signature ------------------------------------ $ API_UserName = "myemail"; $ API_Password = "mypw"; $ API_Signature = "mysignature"; Code in Hash_Col code  

...

...

// Declaration of Global Variation

Global $ API_Endpoint , $ Version, $ API_UserName, $ API_Password, $ API_Signature;

...

What's going wrong?

The wizard is a link zoo:

Piet

It is possible that you are using the wrong API credentials.
I saw in your example the following:

$ API_UserName = "myemail"; $ API_Password = "mypw"; $ API_Signature = "mysignature";

Just do not have your email address to clean your API username Your API password is not your PayPal password.
Just need it, this is an example of how API Credentials looks and how to request them from your PayPal account. You can also use these instructions along with your sandbox account:

Also, do nothing for your end point. The ending point is where you are pointing your customers. Do you point them to live sites or sandbox sites? If you need them, then the information about the API endpoint is here:

Make sure you are using Sandbox endpoint if you are using sandbox credentials. , And if you are using Live credentials, make sure to use Live Endpoint.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -