没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Payment Solution using PayPal Express Checkout SOAP API
I've just implemented a payment solution using PayPal Express Checkout with the SOAP
API. Since PayPal - and especially the SOAP API - is not trivial, I thought I would share
some of the implementation details with you.
I, like every other developer out there, started out by going to the PayPal site
-%paypal.com. You then click the "Business" tab and select the "Products & Services" link.
Well, what will you find - not more than 6 different%web-site payment%solutions. There is a
lot of documentation and information about each PayPal offering, and in addition you
have the PayPal X Developer Network -%https://www.x.com/. The documentation is great
- but totally overwhelming :(% So if you really want to learn how to use PayPal, it is
probably better to go and buy one of the many great books that are out there%- or you
could just read on...
This document gives a description for the implementation of the PayPal Express
Checkout using the SOAP API.%This API is great for asp.net implementations for
integrating PayPal%into custom shopping carts. I.e, you are a developer who
has%implemented a custom shopping cart and you now want to implement a payment
solution using PayPal.
Why do I not talk about the other PayPal payment solutions. Well, there are plenty of
really good web sites out there that does exactly that .
This document%is divided into the following sections:
Getting Started with PayPal
Setting up the PayPal API
PayPal Express Checkout
Program Examples using the SOAP API
Updating the Web.Config file
Getting Started with PayPal
First you will need to set up a PayPal test account in the test environment called PayPal
Sandbox. You may want to%read the%Getting Started with PayPal Sandbox%documetation
before you attempt to do this. Make sure you follow the instructions - first sign up for a
sandbox developer account, then create both a personal and a business account (buyer
and seller accounts) using the "Create a preconfigured buyer og seller account" link. You
will need both for testing. The personal account is used by ýou as the customer, while the
business account is used by you as the store owner (merchant).
If you go to%http://sandbox.paypal.com%without being logged in with your developer
account, you will see the following screen instructing you to log in to your developer
account.
Setting up the PayPal API
The PayPal API contains a vast number of methods for performing transactions, issue
refund, browsing history of transactions, update payment profiles, and so on. See
the%PayPal API Reference%for more information. So how do you start using the API. Well,
first you need to enable API access%in your account by following these steps:
1. Go to the%PayPal Sandox%environment and log in with your developer account
2. Log in%to Sandbox using%your business account
3. Click the "My Account" tab and then the "Profile" sub tab
4. Click the API Access link under the Account Information header
5. Click the link that says Request API Credentials / View API Certificate
6. Select API Signature or API Certificate
As I find the API Signature easier to set up, I recommend that you use this setting.%The
discussion in this document assumes this choice.
%
Now that you have the credentials for making API calls, you are ready to add the Web
Service Reference tohttps://www.paypalobjects.com/wsdl/PayPalSvc.wsdl. After a few
moments, you'll have an up-to-date class ready to serve you with all the benefits of
strong typing - no building of HTTP requests, no copy-pasting field names, and no
cumbersome parsing of responses. You have the same thing available for Sandbox
at:%https://www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl.
If you don't know how to add Web References, do the following:
1. Right-click on the root item in Solution Explorer
2. Select "Add Web Reference"
3. Enter either the sandbox URL or the production URL in the pop-up window
4. The system will then load the PayPal Web Reference for you - one for the
sandbox and one for the production (you should load both). See image below.
剩余13页未读,继续阅读
资源评论
- nsy19892017-11-25不好用!盗版的,不建议用!!qq3626439002020-03-04一点都不是盗版的,自己开发的
- caofei2772013-11-05不好用 ,还是英文的……qq3626439002020-03-04代码肯定是英文的啊,有操作说明
qq362643900
- 粉丝: 9
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功