Search the Community

Showing results for tags 'paypal'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Calendars

  • Community Calendar

Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 6 results

  1. I'm using eCommerce. Once done payment it should be captured & after few days it should be processed or deducted from customers account. Example: If the customer pays using Paypal initial it would be "Authorize" & after (Max 21 days) that particular transaction is converted in to "Sale" means processed. Customers can pay using Credit Card. Can we achieve using Paypal or need to use another Payment Method? As per my knowledge: In Paypal SDK API you have to create that Payment Again & then Process. But I already have Transaction Id. So need to create payment again right?
  2. Hi there. I have been wandering around the tutorials and examples and trying to get a simple variable calculation done in the html code below but can't seem to get it right. The html code below works fine now to create a button for PayPal and submit an order. The problem is, I need the "amount_2" to actually be calculated to 2% of "amount_1". a simple, "amount_2" = "amount_1" * 0.02 This is to allow us to take payment with PayPal and add their merchant fees. Can anyone help please :-) ------------------------------------------ <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="upload" value="1"> <input type="hidden" name="business" value="accounts@freelanceswitch.com"> <input type="hidden" name="currency_code" value="AUD"> <input type="hidden" name="item_name_1" value="My Invoice"> <input type="hidden" name="amount_1" value="1885.00"> <input type="hidden" name="item_name_2" value="Merchant Fee"> <input type="hidden" name="amount_2" value="9999"> <input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form> ------------------------------------------
  3. I'm trying to set the quantity of an item in an HTML Paypal button. I'm creating the buttons dynamically using a HTML template and values from my products table in my database [php/mysql]. I know you can set the quantity of an an item in the paypal buttons you can make on the the paypal website, but I want to make the buttons dynamically and avoid this step. I have generated the rest of the button without problem - they currently have name, price, postage etc. The one thing I can't do is set the quantity of the item. So the problem at the moment is, I have a lot of one off items. I want to be able to set the quantity to 1. this way I can control whats being sold. once the item is sold I will use the Paypal IPN to update my databases stock level. At the moment the user can add more than one of the item in the paypal basket. This is a problem where there is only one item. If any one knows ho w to set the quantity of an item in an dynamically made HTML Paypal buy now button please let me know.
  4. BackgroundI'm not sure if any of you are familiar with the Paypal APIhttps://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/howto_api_reference Just looking for advice in best practices, security, technical, etc, context regarding the topic title. FlowAs part of the Express Checkout flow, after a user chooses to checkout with Paypal from my clients site (by adding to cart from products in the 1000BC Store)http://www.1000-bc.com/products.php I make an AJAX request to the server to a PHP script which creates an instance of a Paypal class I created, populates it with the products and their properties (amount, description, etc) and I make a method call which upon success, returns a TOKEN I can use to redirect the user to paypal's site so that they can initiate the Express Checkout flow (i.e. review their order, login, pay, etc). After this, the user is redirected back to my site, to a separate checkout page, which handles the follow up methods that I need to call/make against the Paypal API in order to complete the transaction. The QuestionAfter the first AJAX request is made and I get the initial success TOKEN, I save the Paypal class instance in $_SESSION so that I have access to the classes state on the checkout page. Per paypal's recommendation, they suggest that for the follow up calls, the same information should be used as in the first call that returns the TOKEN. Rather than recreate the class on the checkout page and repopulate it again, is saving the class instance in $_SESSION okay? The only edge case I can invision is the user taking so much time checking out with Paypal that by the time they are redirected back to my site, their $_SESSION may have expired. Thoughts, advice?
  5. So I am at the part of my website where I need to decide how to display individual products being sold on the website. I want to display the picture, a description, and link it to a paypal account where the individual product can be sold. But I am unsure how to do it. I could do it with HTML easily, but I am wondering if I should use PHP or another programming langauge so I dont have to create 1 page per product, so I dont have to create 50 additional pages. Im thinking that I would have to create a template page using HTML or PHP and then use the programming language to fill in the description and images according to which link (product) they click. How would I do this exactly? I dont have a ton of experience with PHP, am I way over my head? And would PHP would well with PayPal? again, would that be a huge project?
  6. I am new to PHP and really enjoying learning it. I am stuck on a key part of my project for my small company. I am trying to learn how the IPN Listener for Paypal works. They provided an example in PHP. So I figured i'd modify it to send me an email when a person does a "normal" purchase. After I got that working I'd take that and work it into the project. I got a responce from the IPN Listnener when I had a typo in the url to send info back to Paypal for varification, but once I fixed that I have got nothing. I am sure I am making a lot of Noobie mistakes in it, please help me learn. I've been looking at it so long I am lost as how to fix it. Ryan (The project will in the end take the verified message from Paypal and pull information from the db and put in a file and email it to the client.) below is my code: <?php$dvd_purchase = TRUE;//variables to compaire against IPN information$dvd_cost = 149.00;$test_custom = 25;$boss_email = 'boss@mycompany.com';//Showme the errorsini_set ('display_error', 1);error_reporting (E_ALL | E_STRICT);// read the post from paypal systemand add 'cmd'$req = 'cmd=_notify-validate';foreach ($_POST as $key => $value) { $value = urlencode (stripslashes ($value)); $req .= "&$key=$value";}//postback to Paypal system to validate$header = '';$header .= "POST /cgi-bin/webscr HTTP/1.0\r\n";$header .= "Content-Type: application/x-www-form-urlencoded\r\n";$header .= "Content-Length: " . strlen($req) . "r\n\r\n";//$fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30);$fp = fsockopen ('ssl://www.sandbox.paypal.com', 443, $errno, $errstr, 30);//assign posted variables to local variablesif (isset($_POST['item_name'])){$item_name = $_POST['item_name'];}if (isset($_POST['item_number'])){$item_number = $_POST['item_number'];}if (isset($_POST['payment_status'])){$payment_status = $_POST['payment_status'];}if (isset($_POST['mc_gross'])){$payment_amount = $_POST['mc_gross'];}if (isset($_POST['txn_id'])){$txn_id = $_POST['txn_id'];}if (isset($_POST['receiver_email'])){$receiver_email = $_POST['receiver_email'];}if (isset($_POST['payer_email'])){$payer_email = $_POST['payer_email'];}if (isset($_POST['custom'])){$custom = $_POST['custom'];}if (!$fp) { // HTTP ERROR $to= myemail@mycompany.com; $subject= "DVD Order Could Not Connect to PayPal!"; $message= "PayPal connection failed ". "\r\n" . $from = "IPN"; $headers = "From: $from" . "\r\n"; mail($to,$subject,$message,$headers);} else { fputs ($fp, $header . $req); while (!feof($fp)) { $res = fgets ($fp, 1024); if (strcmp ($res, "VERIFIED") ==0) { if ($payment_amount != $dvd_cost){ $dvd_purchase = FALSE; } if ($custom != $test_custom){ $dvd_purchase = FALSE; } if ($receiver_email != $boss_email){ $dvd_purchase = FALSE; } if ($dvd_purchase = TRUE){ //Email me it is ok. $to= myemail@mycompany.com; $subject= "DVD Order Good to Go!"; $message= "DVD ORDER: "."$payer_email". "\r\n" . "Iten Name: " ."$item_name". "\r\n" . "Iten Number: " ."$item_number". "\r\n" . "Payment status: " ."$payment_status". "\r\n" . "Payment Amount: " ."$payment_amount". "\r\n" . "Transaction ID: " ."$txn_id". "\r\n" . "receiver_email: " ."$receiver_email". "\r\n" . "payer_email: " . "$payer_email" . "\r\n"; $from = "$payer_email"; $headers = "From: $from" . "\r\n"; mail($to,$subject,$message,$headers); } if ($dvd_purchase = FALSE){ $to= myemail@mycompany.com; $message = "Somthing is off:"."$payment_amount". "\r\n". "$custom"."\r\n". "$receiver_email"."\r\n"; $from = "IPN"; $headers = "From: $from" . "\r\n"; mail($to,$subject,$message,$headers); } } else if (strcmp ($res, "INVALID") ==0) { //log for manual investigation $to= "myemail@mycompany.com"; $subject= "DVD Order IPN Verification Failed!"; $message= "DVD ORDER: "."$payer_email". "\r\n" . "Iten Name: " ."$item_name". "\r\n" . "Iten Number: " ."$item_number". "\r\n" . "Payment status: " ."$payment_status". "\r\n" . "Payment Amount: " ."$payment_amount". "\r\n" . "Transaction ID: " ."$txn_id". "\r\n" . "receiver_email: " ."$receiver_email". "\r\n" . "payer_email: " . "$payer_email" . "\r\n"; $from = "$payer_email"; $headers = "From: $from" . "\r\n"; mail($to,$subject,$message,$headers); } } fclose ($fp);}?>