Password from return url of recuring paypal payment is not matched with the one in the paypal confirmation page - paypal-subscriptions

i have integrated the recurring paypal payment method in mysite. In this method , i get the username and password from the return url. The username is same on both the return url and paypal confirmation page. But the password is different in both return url and paypal confirmation page.
i need the same password in both confirmation page and return url.
My code is . .
<form action="paypal.php" method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="alice#mystore.com">
<!-- Specify a Subscribe button. -->
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<!-- Identify the subscription. -->
<input type="hidden" name="item_name" value="Alice's Weekly Digest">
<input type="hidden" name="item_number" value="DIG Weekly">
<!-- Set the terms of the 1st trial period. -->
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="a1" value="0">
<input type="hidden" name="p1" value="14">
<input type="hidden" name="t1" value="D">
<!-- Set the terms of the 2nd trial period. -->
<input type="hidden" name="a2" value="5.00">
<input type="hidden" name="p2" value="3">
<input type="hidden" name="t2" value="W">
<!-- Set the terms of the regular subscription. -->
<input type="hidden" name="a3" value="49.99">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="Y">
<input type="hidden" name="src" value="1">
<input type="hidden" name="usr_manage" value="1">
<input type="hidden" name="return" value="http://server/projects/ananth/subscribebutton/thanks.php">
<input type="image" name="submit" border="0"
src="https://www.paypal.com/en_US/i/btn/btn_subscribe_LG.gif"
alt="PayPal - The safer, easier way to pay online">
<img alt="" border="0" width="1" height="1"
src="https://www.paypal.com/en_US/i/scr/pixel.gif" >
</form>
In this paypal confirmation page, the username and password are as follows
Password: deal2minor
Username: pp-cheersidle
In this Return url page, the username and password are as follows
Password : ojjxcsIatFLp2
Username : pp-cheersidle
I need the same password in the confirmation page to get returned in the return url. So only i can store it in my database .
Please advise me. . . .

Related

Dynamic redirect url for PayPal Buy Now button

I have integrated a PayPal Buy Now button on my site as follows:
<form name="_xclick" action="https://www.paypal.com/uk/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="RECEIVER#RECEIVER.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="description here">
<input type="hidden" name="amount" value="100">
<input type="image" src="https://www.paypalobjects.com/en_US/NL/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
Upon a succesfull purchase, I would like to redirect the user to a certain page (not known in advance - dynamic). How can this be achieved?
You will need to set "return" field in your form. Like this:
<input type="hidden" name="return" value="URLspecificToThisTransaction">
For more information please visit the documentation here

Paypal donation's notification going elsewhere instead of specified addressee

I have a question regarding paypal donation. This is the current paypal on a production site (excluding personal information which has been altered but otherwise identical).
The issue is that for some reason, it has randomly started sending the email notifications to the overall person in charge of the paypal's account here instead of specified email address written in the code beneath. And yes, the email addressee has received emails before, and is part of the paypal account.
Why would it suddenly just start sending emails to the overall account holder instead of the specified addressee?
Please let me know if there are further information I need to add. Thank you.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- Specify a Donate button. -->
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="email_address">
<input type="hidden" name="item_name" value="Donation Program">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="return" value="URL">
<!-- Replace value with the web page you want the customer to return to after item cancellation -->
<input type="hidden" name="cancel_return" value="URL">
<!-- Note: shipping override variable is used with this example -->
<input type="hidden" name="no_note" value="0">
<!-- Specify details about the contribution -->
<input type="hidden" name="item_number" value="Donation Program">
<select name="amount" class="typl8-zeta">
<optgroup label="Donation Program">
<option value="200">$200</option>
<option value="250">$250</option>
<option value="300">$300</option>
<option value="350">$350</option>
<option value="400">$400</option>
<option value="450">$450</option>
<option value="500">$500</option>
</select>
<input type="hidden" name="currency_code" value="USD">
<br /><br />
<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif"
alt="PayPal - The safer, easier way to pay online">
<img alt="" border="0" width="1" height="1"
src="https://www.paypal.com/en_US/i/scr/pixel.gif" >
</form>
PayPal will always send email notifications to whichever email address is marked as "Primary" in your email settings on the account, no matter which email address you list in the 'business' input.

Access custom variable without using IPN

Is it possible to get the value of the custom variable from without using IPN?
I have a very simple project that doesn't need auto payment verification or anything like that, everything is done manually. I just need to like one input from the payment page along with that payment.
So is it possible to get the info from the custom variable in the payment confirmation email from paypal or the paypal payment receipt?
Check out button example:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" id="paypal-form" target="_top">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="paypal#email.com">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Item Name">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="src" value="1">
<input type="hidden" name="a3" value="10.00">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="custom" id="payment-custom" value="CUSTOM VALUE">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-SubscriptionsBF:btn_subscribeCC_LG.gif:NonHostedGuest">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
So I want to get that "CUSTOM VALUE" without using a ipn script, is it possible?
The GetTransactionDetails API will return it

How to keep a customer on the same page after they click "add to cart"

I'm attempting to create my first business webpage. I would like to add a message box where they can submit a personalized message. My question is, how can I code it so they can enter the message and submit it, but not be redirected to their shopping cart (paypal)?
This is the code as of now:
<!-- START SAMPLE PAYPAL FORM 5 -->
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" style="margin: 0px">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="website#email.com">
<input type="hidden" name="item_name" value="Custom Message">
<input type="hidden" name="custom" value="">
<input type="hidden" name="return" value="http://your-domain.com/thanks-payment.htm">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="quanity" value="1">
<input type="hidden" name="add" value="1">
<input type="hidden" name="amount" value="0.01">
<!-- START COMMENTS LINES -->
<input type="hidden" name="on0" value="Custom Message">Enter Item Comments:<br>
<TEXTAREA ROWS="4" COLS="17" name="os0">
</textarea><br>
<!-- END COMMENTS LINES -->
<input type="image" src="http://www.paypalobjects.com/en_US/i/btn/x-click-but22.gif" border="0" name="submit" alt="Submit Quote" vspace="4"><br>
</form>
<!-- END SAMPLE PAYPAL FORM 5 -->
A simple way,
Look here for basic jQuery UI Modal Window:
http://jqueryui.com/dialog/
And here to make the ajax call to the server with jQuery:
http://api.jquery.com/jquery.ajax/
See this Stackoverflow question for an example:
How Do I Create a multi submit form with no page reload?

paypal express checkout landingpage billing issue

For some reason I can't get my paypal express checkout to allow guest-checkout without logging into paypal. I have the two vital form fields
<input type="hidden" name="SOLUTIONTYPE" value="Sole" />
<input type="hidden" name="LANDINGPAGE" value="Billing" />
but it still only shows login.
The full form looks like this (without products, normally there'd be item_1, item_2 and so forth):
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="image" src="myimg.png" name="submit" class="wp_cart_checkout_button" alt="Betal med PayPal - det er hurtigt, gratis og sikkert!"><input type="hidden" name="return" value="return.com">
<input type="hidden" name="business" value="my#email.dr">
<input type="hidden" name="currency_code" value="DKK">
<input type="hidden" name="lc" value="da_DK">
<input type="hidden" name="SOLUTIONTYPE" value="Sole">
<input type="hidden" name="LANDINGPAGE" value="Billing">
<input type="hidden" name="logoimg" value="logo.png">
<input type="hidden" name="PAYMENTACTION" value="Sale">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="rm" value="2">
</form>
If you're specifying this information in a , you're most likely not using Express Checkout.
Can you share the rest of your code? I have a strong suspicion you're using Payments Standard instead.
With Payments Standard you can't force the billing or login page; it's determined by cookie. If a PayPal login cookie is found, it'll display the login page. If no login cookie is found, it will display the billing page.