Hello Daniweb Community, I was wondering if someone could help me with the PayPal PHP SDK (version 1.3.2), I'm just going off the examples they have provided [here](http://paypal.github.io/PayPal-PHP-SDK/sample/) focusing on [this](http://paypal.github.io/PayPal-PHP-SDK/sample/doc/payments/CreatePaymentUsingPayPal.html) I was just wondering if there is a way to attach delivery instructions (coming from the website, sending them to the API).

Member Avatar
Member Avatar
+0 forum 4

Hello, I am trying to understand PayPal IPN proccess. I have built this simple script to test with the IPN simulator in the developer section of PayPal. I have tried different type of transaction status but it keeps returning VERIFIED. Can someone please explain to me how does this work? Thanks, Farris <?php require_once('../includes/main.php'); // Notify command $request = "cmd=_notify-validate"; // Prepare the URL to send via cURL foreach ($_POST as $key => $value){ if(function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()){ $value = urlencode(stripslashes($value)); }else{ $value = urlencode($value); } $request .= "&$key=$value"; } // Initial cURL $ch = curl_init(); // Set opt curl_setopt($ch,CURLOPT_URL,"https://www.sandbox.paypal.com/cgi-bin/webscr"); //curl_setopt($ch,CURLOPT_URL,"https://www.paypal.com"); …

Member Avatar
Member Avatar
+0 forum 1

I want to integrate PayPal IPN and payment getaway on my website. I want my website users to be able to sell ad space through my website using PayPal. I want the payment to be from my user (Advertiser) to my user (Publisher). Here is what I have done so far ... 1. I created a sandbox account to test payments. 2. I have created the PayPal button on my website with a custom variable. All I have left is the IPN part. I searched through this forum and the PayPal developer doc but it wasn't clear. All I want …

Member Avatar
Member Avatar
+0 forum 4

ive designa a script a bit like abay where multi vendor can sell there product and each will be pay in there specific paypal account on check out. my chanlange is how to allow multiple vendors to sell via your site and in return take a commission on sales on check out whithout holding on to the cash and later settle with seller.

Member Avatar
+0 forum 0

Hi, I am bilding a site that allow my users to accept payment for selling ad space. I want PayPal to be my payment getaway. Is this doable with PayPal?. I know IPN, but it doesn't work because I don't want to get payed, I want my user to get payed. How is this possible? Thanks, Farris

Member Avatar
Member Avatar
+0 forum 3

Hello, anyone know how to display discount code at the paypal order summary? ![paypal.PNG](/attachments/small/4/8abddac7b536dd761ea964f20f7213ce.PNG "align-left")

Member Avatar
Member Avatar
+0 forum 2

I don't usually write about acquisitions and all that financial stuff, but news that PayPal has acquired CyActive caught my eye as apparently this brings the promise of 'bio-inspired predictive security' into the online payments provider threat protection mix. Which made me think, just what the heck is bio-inspired predictive security when it's at home, and why has PayPal bought into it? ![cyactive.jpg](/attachments/large/0/262c724e7b79e730b40c8e9772dd6fb5.jpg "align-center") My first port of call in trying to get a line on this was the [official PayPal blog posting](https://www.paypal-community.com/t5/PayPal-Forward/PayPal-Establishes-New-Security-Center/ba-p/956298) on the thing. "While we have industry-leading fraud models and verification techniques, and a world-class security team" …

Member Avatar
+2 forum 0

i have a page with this code <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:f="http://xmlns.jcp.org/jsf/core"> <h:head> <title>Facelet Title</title> </h:head> <h:body> <h:outputText value="#{pros.handleIpn(request)}"/> </h:body> </html> and althought i can access this page throught internet ip:8084/path to the page when i insert this page to paypal ipn simulator it does not working. It says Please enter a valid URL. What i am doing wrong? paypal ipng is the only way that i can update my database when a new reservation is made right? Thank you

Member Avatar
+0 forum 0

I am creating a table of my services or products where each product have their id next to it. I want to grab that product id into the URL of buy now button when customer click on that button, and when customer have done their shopping , that custom id should return back to my site within success URL. [img example](http://awesomescreenshot.com/0d03c0hwa1) any idea how can I do this? many thanks in advance.

Member Avatar
Member Avatar
-1 forum 1

Just noticed that my subscription came to a sudden halt in May. It seems I took out the subscription in May 2013 - so do subscriptions run for 12 months only. I can't remember cancelling my subscription. Any idea before I start sending tickets to PayPal?

Member Avatar
Member Avatar
+0 forum 4

I want to connect my paypal with Adfly. I want to know what is "Withdrawal Account" ? Can anyone give me an example please? thanks!

Member Avatar
Member Avatar
+0 forum 7

Hi i am new to paypal , my client need to pay the payment in the date which was set by the admin , is it possible to do this using cron . is any method is there in paypal . i search in google but i didn't find the answer . help me to do it .

Member Avatar
Member Avatar
+0 forum 4

hello guys can i ask if the **PayPal** is ideal to use in Online Bingo Game? If Paypal is not ideal to used can u give me what payment method are ideal to use in online Bingo Game and how its works. please help me. thanks.

Member Avatar
+0 forum 0

Hi, Anyone can suggest me the best paypal module for prestashop site. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 9

Hi I have the following code so far. Basically I have a drop down list were the user selects the type of membership he wants. When he clicks the button buy now from the database the membership cost and type are displayed in the pg. The problem is that I cannot figure out how to retrive a confirmation that the payment has been done successfully. Could you please help? I read alot of forums so far but did not understand anything since I am new in using paypal in websites. Thanks <form method="post" id="frmMembershipPayment" action="https://www.paypal.com/cgi-bin/webscr" target="paypal"> <input type="hidden" name="cmd" value="_cart"> …

Member Avatar
+0 forum 0

Okay, here is the code I'm using. The original author hasn't been seen in three years and I haven't been able to get a response for a month so I'm asking here. The people here seem to be abel to help me more than anyone else. This is the ipn.php: <?php // === Include the scripts to make this IPN works === // include('core/class.config.php'); include('core/class.database.php'); include('core/lib/class.paypal.php'); // =====================================// // Initiate the classes, and establish a DB conection $Config = new Config; $Paypal = new Paypal; $DB = new Database( $Config->getDbInfo('db_host'), $Config->getDbInfo('db_port'), $Config->getDbInfo('db_username'), $Config->getDbInfo('db_password'), $Config->getDbInfo('db_name') ); // Set test mode features …

Member Avatar
Member Avatar
+0 forum 13

Hi, Hope you are ok. I made a website to recieve donations in from other people. It is possible to check if this coding hereunder are working or not? Thanks for your help. Donation page: <?php require "config.php"; require "dbconnection/connection.php"; // Determining the URL of the page: $url = 'http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER["REQUEST_URI"]); // Fetching the number and the sum of the donations: list($number,$sum) = mysql_fetch_array(mysql_query("SELECT COUNT(*),SUM(amount) FROM dc_donations")); // Calculating how many percent of the goal were met: $percent = round(min(100*($sum/$goal),100)); // Building a URL with Google's Chart API: $chartURL = 'http://chart.apis.google.com/chart?chf=bg,s,f9faf7&amp;cht=p&amp;chd=t:'.$percent.',-'.(100-$percent).'&amp;chs=200x200&amp;chco=639600&amp;chp=1.57'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html …

Member Avatar
Member Avatar
+0 forum 3

This is regarding paypal through Curl. I am trying to access paypal by using below code. The code is working fine in one server. After moving this code to live server, getting the below error. Can anybody tell me the solution for this. $API_Endpoint = "https://api-3t.sandbox.paypal.com/nvp"; $version = urlencode('76.0'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $API_Endpoint); curl_setopt($ch, CURLOPT_VERBOSE, 1); // Turn off the server and peer verification (TrustManager Concept). curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); // Set the API operation, version, and API signature in the request. $nvpreq = "METHOD=$methodName_&VERSION=$version&PWD=$API_Password&USER=$API_UserName&SIGNATURE=$API_Signature$nvpStr_"; // Set the request as …

Member Avatar
Member Avatar
+0 forum 1

Dear friends on daniweb, First of all hope all of you are ok. I post this article to suggest me some ideas about the attachment of paypal in php. I wish to try a booking site for travelling(as a dummy at this stage). For this, php language is better than other and it is possible to make the system that the client pays with paypal? This is the first one for me to make this type of project, anyone give me a good tutorial links to learn how to make it? Thanks. marifard

Member Avatar
Member Avatar
+0 forum 2

Hi Friends, I am struggling from last couple of days with this paypal return array. After completion of successful transaction in Live account, Paypal sends empty resultset to my website. Is there anything i need to set in Mercant paypal account ? Coming to Sandbox, everything is working fine. Please give me some suggestions.

Member Avatar
Member Avatar
+0 forum 1

How would I make premium memberships for PingrGlobe with PHP and PayPal?

Member Avatar
Member Avatar
+1 forum 5

Does anyone know how we can set up an ecommerce system that can limit purchases to one per customer? We'd need to use PayPal. We are trying to sell tickets and limit the online purchases to one pair (two tickets) per customer. Obviously we can limit the quantity, say in a drop down , to 2, but that would not stop people from repeating the process. We'd be okay if they bought again using another name, but otherwise want to limit purchases to one time per customer. Any suggestions are appreciated. Thank you.

Member Avatar
Member Avatar
+0 forum 3

Hi I have a website. One can download books from this site. There r various books in various price. Now I want that user will pay to paypal and I will get the value of amount diposit. How can I do that. Thank u

Member Avatar
Member Avatar
+0 forum 1

Ok this is the most unsoveable problem i have ever dealt with and the worst is i know it can be solved because someone has done it. I want my users after succsefull payment to be redirected to my site where i will capture their details and give them a bus ticket. the redirect works perfect if you are signed in as a paypal user, but when they click pay by debit or credit card the redirect does not work. Now i can deactive the option to allow only express payment but then it asks your username and password and …

Member Avatar
Member Avatar
+0 forum 1

Hi , I am struggling for two to make test payment through paypal sandbox but after entering user and password simply received this image attached.I want to pay through paypal using paypal's sandbox for testing and retrund to my website (localhost) giving confirmation in "confirm.php" , here is my paypal code: $strform="<form target='paypal' action='https://www.sandbox.paypal.com/cgi-bin/webscr' method='post'> <input type='hidden' name='cmd' value='_s-xclick'> <table> <tr> <td><input type='hidden' name='on0' value='Products'>Products</td> </tr> <tr> <td> <select name='os0'> <option value='WiseImage'>WiseImage $68.00 USD</option> <option value='WiseScan'>WiseScan $126.00 USD</option> <option value='EDA'>EDA $83.00 USD</option> </select> </td> </tr> </table> <input type='hidden' name='currency_code' value='USD'> <input type='hidden' name='return' value='http://localhost/csoftworld/paypalinvoice/thanks.php' /> '> <input type='image' src='https://www.sandbox.paypal.com/en_US/i/btn/btn_cart_LG.gif' border='0' …

Member Avatar
Member Avatar
+0 forum 17

It took me a little bit of frustrating time to figure this out yesterday, so I thought I'd post it in case other people ran into the same issue. I set up PayPal Instant Payment Notification (IPN) and thoroughly tested it in the sandbox environment. Everything worked fine. However, when switching over to real PayPal, it stopped working and I couldn't figure out what was wrong with my code. PayPal actually has IPN disabled by default while the Sandbox environment has IPN enabled by default. Be sure to change this setting in your profile.

Member Avatar
Member Avatar
+0 forum 1

Hi All, I have been configuring a monthly subscription Paypal IPN to collect monthly recurring payments from a membership website. I have my annual IPN working great. Just strugling with the monthly recurring payments. I have the following configured in my subscription button <input type="hidden" name="a1" value="' . $price . '"> <input type="hidden" name="p1" value="1"> <input type="hidden" name="t1" value="M"> <input type="hidden" name="a2" value="' . $pricem1 . '"> <input type="hidden" name="p2" value="1"> <input type="hidden" name="t2" value="M"> <input type="hidden" name="a3" value="' . $pricemthly . '"> <input type="hidden" name="p3" value="12"> <input type="hidden" name="t3" value="M"> <input type="hidden" name="src" value="1"> <input type="hidden" name="sra" value="1"> <input …

Member Avatar
Member Avatar
+0 forum 1

i put a code in my website to redirect user to paypal sandbox , after entering his email id , and storing it in session , in return url of paypal sandbox i mentioned a page but it doesn't work, it doesn't maintaing the session variable, it assigns null to session variable upon returning , even i checked same session variable on every page and it is working but not with the one to which paypal sandbox is returning upon succesful transaction , why ? i think that redirection between http and https destroys session , help plz ? using …

Member Avatar
Member Avatar
+0 forum 4

Hi all, I've setup a simple cart where users choose how much they would like to deposit as virtual currency using the PayPal sandbox - I've tested it and it works great. So far I've got to successful money transfers between accounts and notifications. However what I can't figure out is how to give the account on my website the virtual credit after the user pays. I want to store the value in a SQL column next to their username; doing so is easy - but how do I execute that SQL command only when a user has genuinely paid? …

Member Avatar
Member Avatar
+0 forum 4

how to redirect paypal sandbox to localhost (asp.net's ) after successful transaction ? is it possible ? silly question but may be ....................

Member Avatar
Member Avatar
+0 forum 1

The End.