Asp.net PayPal credit card payment function

Source: Internet
Author: User

 

Some time ago, a customer's website needed to use the credit card payment function, and the customer had a website payments pro account. It took a lot of time to do this for the first time and it had been running well for a while,

To sum up:

1. Register a PayPal developer account for sandbox testing. The registration address is https://developer.paypal.com /.

Create a preconfigured buyer or seller account. Create a buyer or seller account, which is mainly used for subsequent shopping tests.

Create a website payments pro account (new release). Create a website payments pro account.

Registration steps skipped, the process requires us address, mailbox, there is a website can generate online http://www.fakenamegenerator.com/

After successful registration
2. In test accounts

 

 

You can see the black line, click the single-choice button-bussiness account, and then click Enter sandbox test site

 

Enter the logon password, and thenProfile> API access

In setting up API permissions and credentials

Select

Option 2-request API credentials to create your own API username and password.

This option applies:

    • Custom websites and online stores
    • Pre-integrated shopping carts running on your own server

View API Certificate

Then, request an API signature.

 

Request API Signature
If your shopping cart or solution provider has asked for an API username, password, and signature,
Or if you're developing a custom shopping cart.

Then you will get a long string

Credential API Signature
API Username Xxxxx_per_api1.163.com
API Password Xxxxxxxxxx
Signature Xxxxxxx

 

This is very important and will be used on your website in the future.

3. Open

Https://cms.paypal.com/us/cgi-bin? Cmd = _ render-content & content_id = developer/library_download_sdks # wpst

Download soap sdks

Then replace the API signature.

The above uses the soap Method

There is also a URL below
Http://integrationwizard.x.com/ecpaypal/main.php will show you how to do it step by step

Overview of Chinese API Interfaces

Http://paypal.ebay.cn/integrationcenter/list__resource_1.html

I am calling the dodirectpayment class directly for credit card payment.
Support for "Visa" \ MasterCard \ discover \ Amex \ solo \ switch

In the test mode, PayPal will automatically generate a Visa account in step 1.

Reference URL

API Error
Https://cms.paypal.com/us/cgi-bin? Cmd = _ render-content & content_id = developer/e_howto_api_nvp_errorcodes

P.s. Generally, it is best to pay for SSL and HTTPS on the shopping site. Otherwise, who would dare to pay?
SSL certificates can be authenticated, but they are not free of charge.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.