Click here to Skip to main content
15,914,322 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI ALL:

it is required to integrate the paypal donation button in asp.net c# web form,
on clicking the donate button an email should be sent to the receiver with capturing the details of the donor like donor name, occupation, address and donation amount etc.


Please anyhelp from anyone will be appreciated.

thanks
Posted

hi pls refer bellow steps

Papal Integration

Create PayPal sandbox account (https://developer.paypal.com)
Chose Test accounts
To simulate a transaction on PayPal.com, choose a test account.

To test a merchant transaction, you must use a test Business Account.
To test a buyer transaction, you must use a test Personal Account.

New test account: Preconfigured| Create Manually

If we choose Preconfigured


Create one merchant account and buyer account.
Then login merchant account (https://www.sandbox.paypal.com/cgi-bin/webscr?)
Next choose My accountà profile
Next choose selling preference -> website payment preferences
We have change some payment preferences
First one is auto return for web payments
Auto Return shortens the checkout flow and immediately brings your buyers back to your website upon payment completion. To set up Auto Return, you need to turn it on and enter the return URL that will be used to redirect your buyers back to your site
Do we want auto return?
Change the radio button option auto return is on



Auto Return:


On
Off

And give auto return url into the textbox for example(http://e-pstech.com/TBHLearn/PayPal/OrderCompleted.aspx)



Next choose My accountà profile
Account Informationà Api Accessà Request API credentials
Select Request API signature By clicking Agree and Submit





For preconfigured shopping carts: Copy and paste the API username, password and signature into your shopping cart configuration or administration screen
 
Share this answer
 
v2
Comments
Member 11647412 30-May-15 1:25am    
thanku .. this code works
CSS
To create a Sandbox test account:
Go to https://developer.paypal.com/.
Click "Sign Up Now."
Complete the form and accept the Terms of Use.
Click "Sign Up."
Once you complete the sign up, create a test account:
Log in at https://developer.paypal.com/.
Click the "Test Accounts" link.
Click the "Create Test Account" link.
Complete the form and click "Create Account."
For more information, see the Sandbox User Guide:
From your Sandbox account, click "Help."
Click the "Sandbox User Guide (PDF)" link
To view your Sandbox emails, please follow the steps below:
Log in to Developer Central at https://developer.paypal.com
Click the 'Email' tab on the left side.
Your Sandbox generated emails can be found on this page
For more information, please refer to the API Sandbox User Guide, pp 15-16.
Please follow the steps below to generate a credit card number for testing PayPal Account Optional within the Sandbox.
Log in to your Sandbox Account
Click 'Profile'
Click on 'Credit Cards' under Financial Information
Click the ''Add' button, as if you are adding a credit card to the account
Use the credit card number that is automatically generated here as the credit card of your buyer
Note: Do not click on the 'Add Card' button as this will add the credit card to your Sandbox account. If it is added to your Sandbox account, it cannot be used to make a non-PayPal account payment.
For a Social Security Number within the Sandbox, you can enter a number beginning with 111 and then enter random numbers.  To get a Social Security Number generated for your account, go to your Account Overview page and click on the 'Money Market' link, then click on 'Enroll Now'.  This will generate a SSN for your account that you can copy and use for your Sandbox account.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900