asp.net中的paypal捐赠按钮整合c# [英] paypal donation button integraion in asp.net c#

查看:67
本文介绍了asp.net中的paypal捐赠按钮整合c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI ALL:



需要在asp.net c#web表单中集成paypal捐赠按钮,

点击捐赠按钮应将电子邮件发送给接收方,并记录捐赠者的详细信息,如捐赠者姓名,职业,地址和捐赠金额等。





请任何人的帮助将不胜感激。



谢谢

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

推荐答案

请参阅下面的步骤



教皇整合



创建PayPal沙箱帐户(https://developer.paypal.com)

选择测试帐户

要在PayPal.com上模拟交易,请选择一个测试帐户。



要测试商家交易,您必须使用测试商业帐户。

要测试买家交易,您必须使用测试个人帐户。



新测试帐号:预配置|手动创建



如果我们选择预先配置





创建一个商家帐户和买家帐户。

然后登录商家帐户(https://www.sandbox.paypal.com/cgi-bin/webscr?)

下一步选择我的帐户配置文件

接下来选择销售偏好 - >网站付款偏好

我们更改了一些付款偏好

第一个是自动返还网络付款

自动退货缩短结账流程并立即带来付款完成后,您的买家会返回您的网站。要设置自动退货,您需要打开它并输入将用于将买家重定向回您网站的返回网址

我们想要自动退货吗?

更改单选按钮选项自动返回打开







自动返回:







关闭



并提供自动返回网址进入文本框例如(http://e-pstech.com/TBHLearn/PayPal/OrderCompleted.aspx)







下一步选择我的账户配置文件

账户信息®ApiAccessà请求API凭证

选择请求API签名点击同意并提交

b / b








对于预先配置的购物车:复制并粘贴API用户名,密码和签名进入购物车配置或管理屏幕
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


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.


这篇关于asp.net中的paypal捐赠按钮整合c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆