Home
PayPal Sandbox User Guide - Website design agency
Contents
1. Launch the Sandbox as your test buyer or seller account and navigate to My Account gt Overview to see the transaction in your Recent Activity October 2009 Sandbox User Guide Testing PayPal Website Features a Handling Pending Transactions Handling Pending Transactions Transactions typically are credited to your PayPal account instantly after the buyer completes the transaction however a buyer might select a payment method that is not completed instantly In these cases the transaction goes into a pending state and the transaction is completed after a couple of days The following sections describe how to set up pending status transactions that can either be completed or canceled Creating a Pending Transaction 1 Log in to https developer paypal com click the Test Accounts tab select a buyer personal or premier test account and click Enter Sandbox Test Site 2 Log in to your test buyer account and create a transaction such as one created using a Buy Now button or by passing parameters in the URL as in the following example https www sandbox paypal com us cgi bin webscr cmd _xclick amp business selle domain com 3 On the Review Purchase Page click on the link Change under funding method 4 Select eCheck as the funding method and click Continue 5 Click Pay to create the transaction To verify the creation of the transaction see Verifying a Test Payment on page 32 Completing or Canceling a P
2. Item Name Service Order Number Billing Information Please enter the following information exactly as it appears on the customer s credit card statement United States _ Card Number Expiration Date 0 On the back of your card locate the final 3 digit number What s this Using Amex Address Line 1 1 Address Line 2 State X ZIP Code Email Address Home Telephone Shipping Address No shipping address required Use the same above billing address as the shipping address Enter a separate shipping address When you attempt to process the transaction the following message appears FIGURE 7 2 AVS error message from Virtual Terminal PayPal Log Out Security Center Account Overview Add Funds History Profile Virtual Terminal Order Entry Form Secure Transaction A 10555 This transaction cannot be processed Filter Decline Processor Response Code 0000 AVS Address only match e CW M Pass Reference 10 2 1 2 Testing an AVS Code Using DoDirectPayment Consider an example that sets up testing for AVS code A and error code 10755 in DoDirectPayment for which AVS code A indicates no zip code is specified and results in an error if the Partial Address Match risk control is set whether or not other errors occur October 2009 Sandbox User Guide Testing Error Cond
3. To complete the application for Website Payments Pro you must enter a Social Security Number You can enter a Social Security Number in the following format 111 where x is any digit Norte The SSN you enter must not have already been recorded for some other account in the Sandbox Sandbox User Guide October 2009 27 Setting Up Test Accounts Adding a Funding Source Adding a Funding Source To test transactions you must add a source of funds to your buyer test account The following sections describe your choices 1 Changing or Adding Additional Bank Accounts on page 28 You can add bank accounts but they will not contain funds unless you use Send Money to send the bank account holder money 2 Adding Credit Cards on page 29 For testing this is the most efficient way to add funds Note No money or funds are actually transferred in the Sandbox however to protect confidentiality you should not use actual credit card numbers or bank accounts if you allow other people to log in to your Sandbox account Changing or Adding Additional Bank Accounts You add a bank account to the Sandbox test account representing a customer or buyer so that you can test transactions between the buyer s account and another account typically the other account is a business account that represents yourself as a merchant Adding a bank account also changes the account status from Unverified to Verifie
4. Sandbox Home Test Email API Credentials Can We Help Visit the PayPal Developer Community to get answers to integration questions or to file a support ticket Reset a Sandbox Account Reset this sandbox account Only preconfigured test accounts can be reset The email address country and API credentials will not be changed The password payer ID account ID and all credit card and bank account numbers will be changed Country United States Account Type Seller Use to represent yourself as the merchant Login Email seller_1198117529_biz live com This email address is only used inside the Sandbox ENS ETE Hide Advanced Options Add Credit Card visa Add Bank Account Yes Account Balance 0 00 USD ou Cancel October 2009 Sandbox User Guide Setting Up Test Accounts Managing Test Accounts After you reset the account the information to rerun your test is preserved Log in email Type Country Status Test mode Reset seller_1198117529_biz li Business United States Verified Disabled Reset ve com Hide Details Business Name Gary McCue s Test Store Credit Card Visa 4641631486853053 Exp Date 12 2017 Bank Account Checking Confirmed Routing Number 325272034 Bank Account Number 848726650957846 Balance 0 00 USD Email Confirmed Notes Rerun test Date Reset Dec 19 2007 18 30 53 PST Test Account Date Created Test Account seller 1198117529 bizalive com 19
5. Sandbox User Guide October 2009 29 Setting Up Test Accounts Adding a Funding Source Generating a Credit Card Number to Test PayPal Account Optional To obtain a test credit card number for testing PayPal Account Optional 1 Select a buyer s test account and click Enter Sandbox Test Site 2 Navigate to My Account gt Profile 3 Under the Financial Information header click the Credit Cards link Make a note of the credit card number for your use in later testing 30 October 2009 Sandbox User Guide Testing PayPal Website Features This chapter describes PayPal products features you can test in the Sandbox without PayPal APIs Website Payments with Buy Now Buttons Use the Sandbox to test accepting PayPal as a payment mechanism on a website Shopping Cart Purchases Use the Sandbox to test the purchase of multiple items in a single transaction using a single payment Instant Payment Notification IPN Use the Sandbox to test IPN for updates and payment notifications Refunds Use the Sandbox to test refunding payments from a test buyer Subscriptions Use the Sandbox to test subscription buttons IMPORTANT To execute test transactions on Sandbox you need to complete a purchase as a test buyer with your buyer test account Typically you go through your website purchase flow as a buyer You must ensure that you execute your test on www sandbox paypal com instead of www paypal Website Payment
6. 2007 18 30 53 PST API Username seller 1198117529 biz apil ive corn Password 1198117541 Signature AWYujlOomqYJ9hjSo4XD9vdtF7TtGAmKfSL2cHk63Scn5IXIGiKoCVWx Sandbox User Guide October 2009 25 Setting Up Test Accounts Managing Test Accounts Creating a Test Account Manually You can create a test account manually by clicking the Create Manually link for Create Account This action automatically places you in the Sandbox Test Site where you create the test account just as you would on the live site Test Site Login Security Center Search Create your PayPal account Secure Your country or region United States Your language U S English Already have a PayPal account Upgrade now Personal Premier Business For individuals who shop online For individuals who buy and sell For merchants who use a online company or group name Learn about low PayPal fees Looking for a Student account About Accounts Fees Privacy Security Center Contact Us Legal Agreements Developers Jobs Mobile Plus Card Referrals Site Feedback Copyright 1999 2008 PayPal All rights reserved Information about FDIC pass through insurance Fees Privacy e Security Center Contact Us User Agreement PayPal an eBay Company Copyright 1999 2008PayPal All rights reserved Information about FDIC pass through insurance October 2009 Sandbox User Guide Setting Up Test Ac
7. For general information about shopping cart purchases see https www paypal com shoppingcart For general information about subscriptions see https www paypal com pdn recurring Encrypted Website Payments The Sandbox also supports Encrypted Website Payments EWP as does the PayPal SDK console For information about what EWP is and how to use it see the Website Payments Standard Integration Guide For information about using the PayPal SDK console to generate EWP HTML see the PayPal SDK Guide for any of the supported platforms Testing Payments with Buy Now Button For the purposes of testing the Buy Now button your web page does not need to be published to your web server It can reside on your local hard drive However you do need to be logged in to the Sandbox 1 Log in to https developer paypal com click the Test Accounts tab select the desired test account and click Enter Sandbox Test Site Open the HTML file containing the Buy Now Button Click the Buy Now Button Log in using your test buyer account UC N Follow the on screen instructions to complete your test payment Verifying a Test Payment 1 Log in to https developer paypal com and click the Test Email tab Your Sandbox inbox shows payment confirmation email messages for the seller and buyer 2 To further verify that the payment was successful Check your web server for IPN notifications related to the payment
8. Test Email on page 16 Sandbox User Guide October 2009 37 Testing PayPal Website Features Billing A Customer 38 October 2009 Sandbox User Guide Testing PayPal APIs This chapter describes how to test the Express Checkout name value pair NVP API in the Sandbox For more sophisticated examples PayPal recommends you use the PayPal SDK that matches your environment such as PHP or ASP You can also use this chapter for ideas on how to establish a general testing procedure for PayPal APIs called from your site Testing Express Checkout The following diagram shows the Express Checkout flow which uses the Sandbox as the API server The pages on the left represent your site Legend gt Web Flow gt Call Token Request gt a SetExpressCheckout PayPal 2 Sandbox 4 Response Token 3 PayPal Login L Redirect 4 Redirect Confirm Details RetumURL Token C Continue amp 5 Confirm Order Request Token gt GetExpressCheckoutDetails PayPal Sandbox 4 Response Customer Details 6 Request Final Transaction Details a DoExpressCheckoutPayment Sandbox 7 4 Response Transaction Results Success Failure Sandbox User Guide October 2009 39 40 Testing PayPal NVP APIs Testing Express Checkout Note For
9. input type hidden name PWD value password input type hidden name SIGNATURE value signature lt input type hidden name VERSION value 2 3 gt lt input type hidden name PAYMENTACTION value Authorization gt lt input type hidden name PAYERID value 7AKUSARZ7SAT8 gt lt input type hidden name TOKEN value EC 2d1NK66318YB717835M gt input type hidden name AMT value 19 95 lt input type submit name METHOD value DoExpressCheckoutPayment gt Sandbox User Guide October 2009 41 ent Testing PayPal NVP APIs Testing Express Checkout lt form gt 7 If the operation was successful the response should include ACK set to Success as follows TIMESTAMP 2007 2d04 2d05T23 3a30 3a16Z amp CORRELATIONID 333fb808bb23 amp ACK Success amp VERS ION 2 326300000 amp BUILD 1 2e0006 amp TOKEN EC 2d1NK66318YB717835M amp TRANSACTIONID 043144440L487742J amp TRANSACTIONTYPE expresscheckout amp PAYMENTTYPE instant amp ORDERTIME 2007 2d04 2d05T23 3a30 3a1 42 19 2 95 amp CURRENCYCODE USD amp TAXAMT 0 2e00 amp PAYMENTSTATUS Pending amp PENDINGREASON authorization amp REASONCODE None 42 October 2009 Sandbox User Guide Sandbox Test Tools Instant Payment Notification Simulator Sandbox User Guide You can use the Instant Payment Notification IPN Simulator to send IPNs to the URL that you set up to receive them You can use
10. 10755 Specify the error code to trigger as all digits in the field for example a token value of 10755 triggers PP API error code 10755 Specify the error code to trigger as all digits in a number with two digits to the right of the decimal point for example 106 23 triggers PP API error code 10623 Specify the error code to trigger as all digits in the field for example an ID of 10623 triggers PP API error code 10623 Specify the error code to trigger as all digits in a number with two digits to the right of the decimal point for example 106 23 triggers PP API error code 10623 Specify the error code to trigger as all digits in a number with two digits to the right of the decimal point for example 106 23 triggers PP API error code 10623 Specify the error code to trigger as all digits in the field for example a subject of 10755 triggers PP API error code 10755 Specify the error code to trigger as all digits in a number with two digits to the right of the decimal point for example 107 55 triggers PP API error code 10755 Specify the error code to trigger as all digits in the field for example an ID of 10755 triggers PP API error code 10755 Sandbox User Guide October 2009 49 Testing Error Conditions API Testing TABLE 7 1 API Fields That Trigger Error Conditions Continued API Name NVP Field Name SOAP Element Description BAUpdate REFERENCEID ReferenceID Speci
11. Credit Card Visa Add Bank Account Yes O No Account Balance 0 00 USD Notes rOmasAcsunk Cancel Fees Privacy Security Center Contact Us Legal Agreements User Agreement ed 4 Click Create Account October 2009 Sandbox User Guide Sandbox User Guide Setting Up Test Accounts Managing Test Accounts The result is shown below Sandbox Home Test Email Test Accounts API Credentials Test Tools You have successfully created a test account You can view email for this account on the Test Email tab Additional resources Documentation PayPal Developer Your test accounts are listed below You must have a Business account to represent a merchant Community and a Personal account to represent a buyer To simulate an action on the live site PayPal com Customer Support select a test account and click Enter Sandbox Test Site Developer Central Create Account Preconfigured Create Manually Website Payments Pro US UK Negative Log in Email Payment Review Test Mode Reset restsB 1254900954 bizGpaypal com Disabled Disabled Reset Business Verified view Details 3 2009 21 Setting Up Test Accounts Managing Test Accounts Note The Login Email is a pseudo randomized address which is based on the address you specified Credit card and bank account numbers are also generated randomly which are s
12. list 6 Select the reason for sending the funds in the Type drop down list 7 Enter text in the Subject box if you want to This text is the subject of the email sent to the recipient about the transfer of funds 8 Enter text in the Note memo box This text appears in the body of the notification email 9 Click Continue This does not send the money a confirmation step follows 10 the Check Payment Details page review the transaction details for correctness You can click More Funding Options to change the source of fund used for payment 11 Click Send Money This triggers the actual transfer of funds 12 Your Test Email tab contains all the email messages that are sent to the test account sending the money and the test account receiving the money See Test Email on page 16 Log in as the seller test account and navigate to the My Account gt Overview tab to see the transaction for the recipient s account Billing A Customer PayPal business users can bill another PayPal user for the purchase of goods or services In PayPal terminology the feature to bill a customer is called Request Money In the PayPal Sandbox you can manually initiate a request for funds from a test account One test account is the seller The other test account is the buyer To request funds from a buyer October 2009 Sandbox User Guide Testing PayPal Website Features ia Billing A Customer 1 Log in to https developer paypal com
13. this tool to verify that you are receiving IPNs correctly To set up and send an IPN select Instant Payment Notification IPN simulator from Test Tools You can enter the URL to receive the notification and the kind of notification on the following screen Sandbox Home Test Accounts Test Email Instant Payment Notification IPN simulator API Credential TE Ree Peg e es Select from the transaction types supported to test the Instant Payment Notification IPN feature Test Tools Enter the URL of the webpage where you wish to receive IPNs and the transaction type for this test Can We Help General information Visit the PayPal Developer to integration questions or to file a support ticket eCheck pending eCheck complete eCheck declined Express Checkout Cart checkout Web Accept Refund eBay checkout Reversal Canceled reversal Seny JPII Cancel 2009 43 Sandbox Test Tools Instant Payment Notification Simulator When you select the kind of transaction that you want to test a form containing test data appears PayPal Sandb Help Profile Log Out an ox Sandbox Home Test Accounts Test Email Instant Payment Notification IPN simulator API Credentials Select from the transaction types supported to test the Instant Payment Notification IPN feature Enter the URL of the webpage where you wish to receive IPNs and the transaction type for this
14. to allow access to your regular PayPal account After you sign up PayPal sends login instructions to the email address you used to sign up If you have mail filtering enabled in your mail software the email sent by PayPal might be filtered out or stored in a folder where you are not expecting it to be For instance with Microsoft Outlook mail software your filtering might cause the email to be stored in Junk or Spam 4 Respond to the confirmation e mail and log in October 2009 Sandbox User Guide Accessing the PayPal Sandbox Welcome to the PayPal Sandbox Welcome to the PayPal Sandbox When you log in to the Sandbox the Sandbox Test Environment home page appears as follows Sandbox Test Accounts Test Email API Credentials Test Tools The PayPal Sandbox allows you to test the integration of your PayPal payment solution before submitting transactions to the live PayPal environment The Sandbox is a duplicate of the live Additional resources PayPal site except that no real money changes hands Documentation PayPal Developer Test Accounts Community gt Create a preconfigured buyer or seller account Customer Support Create a Website Payments Pro account US UK Developer Central Manually create accounts Test Email Access email sent to your test accounts API Credentials Manage credentials for your test accounts Test Tools Instant Payment Notification IPN
15. up for an account at https developer paypal com After signing up you access the Sandbox either programatically or by logging in Depending on the PayPal feature you want to test with an application you need to set up different types of test accounts PayPal Personal or Premier and Business accounts See Planning the Types of Test Accounts You Need on page 17 Signing Up for Sandbox Access To sign up for Sandbox access 1 Go to https developer paypal com The log in screen is shown below PayPal Developer Central inju aisi Member Log In 2 Email Address Password C Log me in automatically die to the test Need an account Sign up now to access PayPal s Sandbox Test Environment Trouble Logging In Use the Sandbox Test Environment to create and manage test accounts and their associated email Can We Help and credentials You can also access valuable developer resources from Help Visit the PayPal Developer Sign Up Now Community to get answers to integration questions or to file a support ticket 2 If you already have an account enter your Log In Email and Password and click Log In Sandbox User Guide October 2009 13 Accessing the PayPal Sandbox Signing Up for Sandbox Access 3 If you do not already have an account click Sign Up Now and provide the requested information shown below Sign Up for Access to the Sandbox Test Environment This account will allow you to use
16. 9 Chapter 6 Sandbox Test Tools 43 Instant Payment Notification Simulator 43 Testing IPN Messages inthe Sandbox 45 Chapter 7 Testing Error Conditions 47 API Testing lt d be aU A ea Be ESRB 40 08 4 Uh us 48 Negative Testing Using an Amount Related Trigger Field 50 Negative Testing Using a Non Amount Trigger Field 50 Negative Testing With Multiple 51 Testing Using AVS Codes 52 Testing an AVS Code Using Virtual Terminal 53 Testing an AVS Code Using 54 Testing Using CVV 56 Testing a CVV Code Using Virtual 56 Testing CVV Code Using 57 Chapter 8 Testing Payment Review 59 Chapter 9 Technical 61 Contacting Customer Service for Live PayPal Website Help 61 Contacting Developer Technical Support for 61 ee oo ee s 569 October 2009 Sandbox User Guide Preface This Document This document describes the PayPal test environment called the Sa
17. BUILD 1 2e0006 Sandbox User Guide October 2009 55 56 Testing Error Conditions Testing Using CVV Codes Testing Using CVV Codes You can simulate credit card validation by triggering a CVV error code when you call DoDirectPayment or use Virtual Terminal To specify a CVV code place a trigger value in the CVV2 field or the CVV2 SOAP element when you call DoDirect Payment or enter the trigger in Card Security Code when using Virtual Terminal The following table identifies valid CVV codes corresponding triggers and a description of each error condition TABLE 7 3 CVV Error Conditions and Triggers CVV Code Trigger Description of Error M N U 115 116 125 123 120 130 CVV2 matches no error CVV2 does not match Service unavailable Service not supported Transaction not processed No response Note The specified CV V2 code is set regardless of whether a PP API error code is set If no 2 code is specified Mis returned Virtual Terminal only displays the CVV2 error if the risk control blocks the payment Testing a CVV Code Using Virtual Terminal Consider an example of testing for CVV code N using Virtual Terminal You enter 116 in the Card Security Code field October 2009 Sandbox User Guide Testing Error Conditions Testing Using CVV Codes FIGURE 7 3 Entering a CVV code in the Card Security Code field PayPal Log Out Security Center My Account Send Money Reque
18. PayPal Sandbox User Guide For Professional Use Only Currently only available in English A usage Professional Uniquement Disponible en Anglais uniquement pour l instant Last updated October 2009 PayPal Sandbox User Guide Document Number 100007 en_US 200910 2009 PayPal Inc All rights reserved PayPal is a registered trademark of PayPal Inc The PayPal logo is a trademark of PayPal Inc Other trademarks and brands are the property of their respective owners The information in this document belongs to PayPal Inc It may not be used reproduced or disclosed without the written approval of PayPal Inc Copyright PayPal All rights reserved PayPal Europe S r l et Cie 5 Soci t en Commandite par Actions Registered office 22 24 Boulevard Royal L 2449 Luxembourg R C S Luxembourg B 118 349 Consumer advisory The PayPal payment service is regarded as a stored value facility under Singapore law As such it does not require the approval of the Monetary Authority of Singapore You are advised to read the terms and conditions carefully Notice of non liability PayPal Inc is providing the information in this document to you AS IS with all faults PayPal Inc makes no warranties of any kind whether express implied or statutory with respect to the information contained herein PayPal Inc assumes no liability for damages whether direct or indirect caused by errors or omissions or resulting fro
19. al Developer Central Test Site LoqOut Security Center Search PayPal My Account Send Money Request Money Merchant Services Auction Tools Products amp Services Transaction Details W Wait Don t ship yet Payment Status Under Review What should I do now Seller Protection Not Eligible Wait to ship the item until we ve completed Payment Review for this transaction help protect you PayPal is reviewing this payment The review process may take up to 24 hours We ll contact you as soon as we reach a decision To remain eligible for Seller Protection you should not ship the item until we let you know the payment has cleared Transaction Completed Unique Transaction ID 0AM784105N6596809 Name TestUser The sender of this payment is Verified Email kchalu_1228050167_per paypal com Billing Agreement ID B 9FS32506MB869970E Billing Description Payment Sent to kchalu_1227895647_biz paypal com View Billing Agreement Details 60 October 2009 Sandbox User Guide Technical Support Depending on the PayPal product you need assistance with contact either Customer Service or Developer Technical Support Contacting Customer Service for Live PayPal Website Help Use PayPal Help to find an answer to any problem you might encounter with live products such as Website Payments or Instant Payment Notification To contact Customer Service about issues with the Live PayPal website 1 Go to h
20. aypal com nvp or API Certificate security ttps api paypal com 2 0 es nn S EX bon or API Signature security https api 3t paypal com 2 0 Real world people fill these roles Real companies and people s names and postal addresses Real email address and inbox for each business role Actual verification of bank account numbers credit card numbers and CVV2 numbers Real social security numbers Live transactions cleared by live PayPal processes Full protection through PayPal s fraud detection To safeguard your and your customers security requests for digital certificates for use with the Live PayPal Web Services API must be verified by PayPal before they are issued You are notified in email when your request has been approved October 2009 Sandbox User Guide Overview to the PayPal Sandbox At a Glance Differences between the Sandbox and Live PayPal TABLE 1 1 Differences between PayPal Sandbox and Live PayPal PayPal Sandbox Live PayPal Website and API Service PayPal All features of the live PayPal website except Merchant closing an account auction features monthly Features statements shipping preferences and PayPal supported Shops Sandbox User Guide October 2009 11 Overview to the PayPal Sandbox At a Glance Differences between the Sandbox and Live PayPal 12 October 2009 Sandbox User Guide Accessing the PayPal Sandbox To access the PayPal Sandbox sign
21. ckly Integration Center PayPal s Integration Center at https www paypal com integration has step by step details for getting started with the PayPal Software Development Kits SDKs Website Payments Pro Express Checkout Website Payments Standard Authorization amp Capture Instant Payment Notification and more Visit the Integration Center at https www paypal com integration At a Glance Differences between the Sandbox and Live PayPal The following table compares the Sandbox and Live PayPal This is an at a glance view of the differences from the perspective of an in house or third party developer for a business You can also use this table as a checklist TABLE 1 1 Differences between PayPal Sandbox and Live PayPal PayPal Sandbox Live PayPal Website and API Service of PayPal Depending on the feature you want to develop and Personal Business or Premier account Accounts test you need a Personal Business or Premier account Site logos in https www sandbox paypal com https www paypal com upper left corner PayPal Sandbox User Guide October 2009 10 Overview to the PayPal Sandbox At a Glance Differences between the Sandbox and Live PayPal TABLE 1 1 Differences between PayPal Sandbox and Live PayPal NVP API Servers SOAP API Servers Business roles Company and people s names and postal addresses Email addresses and email inboxes Bank account and credi
22. click the Test Accounts tab select a test account for which funds are requested and click Enter Sandbox Test Site 2 Navigate to the Request Money tab 3 On the Request Money page enter the email address PayPal login name for the test account being billed in the Recipient s Email box 4 Enter the billed amount in the Amount box 5 Select the currency for the funds in the Currency drop down list 6 Select the reason for the request for funds billing in the Type drop down list Note Auction is not an option in the drop down list 7 Enter text in the Subject box This text is the subject of the email sent to the recipient regarding the sent funds 8 Enter text in the Note memo box This text appears in the body of the notification email 9 Click Continue 10 On the Request Money Confirm page click Request Money This triggers the actual request for funds 11 Navigate to the My Account gt Overview tab The request for money should be listed 12 Log in as the buyer and navigate to the My Account gt Overview tab to see the transaction for the buyer s test account The transaction for the request for money appears on the My Account gt Overview tab with Pay and Cancel buttons Click Pay and in the confirmation window click Send Money This completes the transfer of requested funds To view the email messages sent to both test accounts select the Test Email tab For details about your Sandbox email see
23. configured Account 22 Creating a Test Account 26 Creating a Website Payments Pro 27 Adding a Funding Source 28 Changing or Adding Additional Bank 28 Adding Credit 29 Generating a Credit Card Number to Test PayPal Account Optional 30 4 Testing PayPal Website Features 31 Website Payments with Buy Now Button 31 Encrypted Website 32 Testing Payments with Buy Now 32 Verifying a Test Payment 2 2 2000 2 rs 32 Handling Pending Transactions 33 Creating a Pending 33 October 2009 Completing or Canceling a Pending Transaction 33 Verifying a Test Refund 34 Transferring Funds toa Test 35 Clearing or Failing Test eCheck 35 Sending 5 36 Billing A Customer aaaea 2 36 Chapter 5 Testing PayPal NVP APIs 39 Testing Express 3
24. counts Creating a Website Payments Pro Account Creating a Website Payments Pro Account You can use a wizard to create a Website Payments Pro business account by clicking the Website Payments Pro link for Create Account This action automatically places you in the Sandbox Test Site where you create the test account just as you would create a Website Payments Pro account on the live site using a wizard to take you through the steps PayPal Secure Website Payments Pro Getting started Get the benefits of a secure internet merchant account and gateway plus much more Customers shop and pay with credit cards directly on your website What are the steps to apply Complete application approx 20 min Account Use your existing account or create a new one N Information Social Security number of owner or federal tax number Sales data e g average monthly volume Review Confirm your selection of product and services 4 Billing Provide credit card information What do need to know Approval process We ll review your application and notify you within 2 business days with your status Upon approval you can integrate and start receiving payments provided you have a functioning business website Pricing 30 monthly fee 2 2 2 9 0 30 USD per transaction Integration Requires a pre integrated cart or an experienced web developer Learn nn O
25. curity questions and answers for all your test accounts so that you can more easily remember them IMPORTANT Never use real email addresses or live paypal com passwords for a test account Only use fictitious information in your answers to the security questions All of this data should be fictional e Personal or Business account e Your agreement to the terms of using the Sandbox For Business accounts the following additional information is generated for you e Business name and address e Customer service contact information e Business owner contact information e Business owner address e Social Security Number to sign up for Website Payments Pro Sandbox User Guide October 2009 17 Setting Up Test Accounts Managing Test Accounts Managing Test Accounts You can view work with or launch the Sandbox Test Site for all your test accounts You can also create new accounts or remove test email addresses from your view e To work with test accounts log in to https developer paypal com and click the Test Accounts tab e create a new account click the Create Account link e To work with the account select the account by clicking the radio button associated with it on the left You can simulate the live paypal com site for the selected account by clicking Enter Sandbox Test Site When you logged in to https developer paypal com you might have set the Log me in automatically checkbox to allow direct access
26. d The bank account is a source of funds for a user s PayPal account and thus for transactions between that test account and other test accounts A test account can have multiple bank accounts but at least one is required in order to verify the test account The Sandbox automatically generates bank account and sort code numbers when you add a bank account For Australia Canada Germany or UK Use the automatically generated bank account information only for test US bank accounts To add test Canadian German or UK bank account information follow these guidelines TABLE 3 1 Australian German Canadian and UK Test Bank Account Information Australia Canada Germany UK BSB Number 242 Transit Number Routing Number Bank Account 200 00001 37020500 Number Any 8 digit number Account Number Institution Number Bank Account Sort Code 609204 any random number 311 Number Any 10 or 700709 digit number Bank Account Sort Code Any 8 Number Any one digit digit number to 12 digit number 28 October 2009 Sandbox User Guide Setting Up Test Accounts Adding Funding Source Steps for All Countries 1 Select a test account and click Enter Sandbox Test Site Navigate to My Account gt Profile Under the Financial Information header click the Bank Accounts link In the Bank Account window click Add UC N In the Add Bank Account window Enter a fictitious bank name Using th
27. e a Sandbox Test Account API Credentials After creating the account you can delete the account or you can provide additional information in Test Tools the Sandbox Test Site How to automatically create verified accounts Country Unitec es United Kingdom Australia Canada France Germany Italy Netherlands Additional resources Documentation PayPal Developer Community present your customer s experience present yourself as the merchant Customer Support Developer Central paypal com only used inside the Sandbox Sandbox User Guide October 2009 19 Setting Up Test Accounts Managing Test Accounts 3 Specify the Account Type and make other selections or accept the defaults PayPal Sandb Help Profile Log Out an ox Sandbox Home Test Email Create a Sandbox Test Account Credentials After creating the account you can delete the account or you can provide additional information in Test Tools the Sandbox Test Site How to automatically create verified accounts Country Additional resources United States Documentation Account Type PayPal Developer Community Buyer Use to represent your customer s experience seller Use to represent yourself as the merchant Customer Support Login Email paypal com This email address is only used inside the Sandbox Developer Central Password Ss Your password must be at least 8 characters Add
28. e automatically generated bank account number as the name ofthe bank will make that account number visible to you for use in testing later Except for UK or German test bank accounts leave all other automatically generated information as is Make a note of the test bank account number because it will be handy to have when you do your testing Click Add Bank Account 6 In the resulting success window click the Continue button at the bottom The My Account gt Overview page opens 7 Click the Confirm Bank Account link in the Activate Account box at the left side 8 In the Confirm Bank Account window click Submit Adding Credit Cards A credit card is a source of funds for the buyer s PayPal account and thus can be used for transactions between a buyer s test account and other test accounts A test account can have multiple credit cards Test credit card numbers cannot be used to pay for real world transactions To create additional credit card accounts for an already existing test account 1 Select a buyer s test account and click Enter Sandbox Test Site Navigate to My Account gt Profile Under the Financial Information header click the Credit Cards link In the Credit Cards window click the Add button In the Add Credit Card window leave the automatically generated information as 15 Make a note of the credit card number for your use in later testing NY A a A UQ N Click Add Credit Card
29. elds After you have viewed or modified the fields to be sent click Send IPN The results of the operation are displayed at the top of the page Testing IPN Messages in the Sandbox After you use the IPN simulator you should test actual notifications in the Sandbox as well The only difference between a test IPN message and a live IPN message is that PayPal includes a test_ipn variable in the IPN message To set up your Sandbox account to handle IPNs outside of the test tool click Enter Sandbox Test Site from your test account and proceed as if you are using a live account See Instant Payment Notification Guide for more information Sandbox User Guide October 2009 45 Sandbox Test Tools Instant Payment Notification Simulator 46 October 2009 Sandbox User Guide Sandbox User Guide Testing Error Conditions In default operation the Sandbox mimics the live PayPal site as closely as possible which means that an error can be replicated only by creating the exact conditions and sequence of events to raise an error This positive test environment is well suited for testing logic that follows the typical error free path however it can be difficult to raise error conditions and test logic to handle errors The Sandbox can be set to allow negative testing which enables you to simulate an error You can test against the following kinds of errors e errors that result from calling a PayPal API e address verification and credi
30. ending Transaction 1 In the buyer s transactions log click the Details link in the Details column 2 In the Transaction Detail window there are two links to simulate actual bank clearing These links appear only in the Sandbox as shown below Clear Transaction Click to complete the transaction Sandbox User Guide October 2009 33 Testing PayPal Website Features Verifying a Test Refund Fail Transaction Click to cancel the transaction My Account Send Money Request Money Merchant Services Overview Add Funds History Profile Transaction Details Add Funds from a Bank Account ID 42T856487XV899364R Original Transaction Date BH Type 1 Status Details 1 m Apr 25 2008 payment To Gary McCue s Test Store Uncleared 10 00 USD j Related Transaction Date Type aT Status Details Amount Apr 25 2008 Add Funds from a Bank Account Uncleared 033 10 00 USD Date Apr 25 2008 Time 21 57 17 PDT Status Uncleared Expected Clearing Date Apr 30 2008 1 Funding eCheck Funding Source Chase Manhattan Checking Confirmed xxxxxx9243 eee re Transaction Transaction Verifying Test Refund To verify a test refund you must have already made a test payment 1 Log in to https developer paypal com 2 Click the Test Email tab Your Sandbox inbox shows refund confirmation email messages for the sell
31. er 2009 Sandbox User Guide Testing Payment Review On the live site payment reveiw is always active which means that PayPal reviews payments automatically for various risk factors In the Sanbox all transactions pass payment review by default If you want to simulate payment review you can enable it from the Test Accounts page as shown on the following screen PayPal Help Profile Log Out Sandbox Sandbox Home Test Accounts Test Email Test Accounts API Credentials Your test accounts are listed below You must have a Business account to represent a merchant Test Tools and a Personal account to represent a buyer To simulate an action on the live site PayPal com select a test account and click Enter Sandbox Test Site Can we help Create Account Preconfigured Create Manually Additional resources Website Payments Pro Documentation PayPal Developer Log in email Type Status Spee Test mode Reset Community seller 1220477199 Business Verified Enabled Disabled Reset Customer Support biz ebay com view Details buyer 1220476984 p Personal Verified Enabled N A Reset er ebay com B view Details mopate 1220469128 Business Verified Disabled Disabled Reset biz ebay com B view Details Enter Sandbox Test Site Sandbox User Guide October 2009 59 Testing Payment Review When payment review is enabled all transactions become pending as shown below logged in as KCHALUVADI PAYPAL COM PayP
32. er and buyer 3 To further verify that the refund was successful Check your Web server for IPN notifications related to the refund 34 October 2009 Sandbox User Guide Testing PayPal Website Features Transferring Funds a Test Account Launch the Sandbox as your test buyer or seller account and navigate to My Account gt Overview to see the transaction in your Recent Activity Transferring Funds to a Test Account To transfer funds to a test account 1 After logging into https developer paypal com select a test account and click Enter Sandbox Test Site 2 Navigate to My Account gt Add Funds 3 Click the Transfer funds from a Bank Account link 4 On the Add Funds by Electronic Funds Transfer page Select the bank account from which the funds are coming in the From drop down list Enter the amount to transfer in the Amount box Click Continue 5 On the resulting Add Funds Confirmation page click Submit Navigate to My Account gt Overview to see that the transfer transaction is listed Clearing or Failing Test eCheck Transactions Sandbox User Guide When you use eCheck to transfer funds or send payments the transaction appears as pending until you manually clear or fail it Manual clearing is only necessary in the Sandbox To clear or fail test eCheck transactions 1 In the transactions log click the Details link in the Details column 2 In the Transaction Detail windo
33. erun transactions and need to start from the same point as the original test Resetting a test account preserves information required to rerun the test such as the account email address API credentials credit card and bank accounts and starting balance It does not however use the same bank 22 October 2009 Sandbox User Guide Setting Up Test Accounts Managing Test Accounts account or credit card numbers Consider the following account information associated with a test account Log in email Type Country Status Test mode Reset seller_1198117529_biz li Business United States Verified Disabled Reset ve com E Hide Details Business Name Gary McCue s Test Store Credit Card Visa 4997638765391457 Exp Date 12 2017 Bank Account Checking Confirmed Routing Number 325272199 Bank Account Number 316253011064226 Balance 0 00 USD Email Confirmed Notes Date Created Dec 19 2007 18 25 40 PST Sandbox Test Accounts With API Signatures Test Account Date Created Test Account seller_1198117529_biz live com Dec 19 2007 18 25 41 PST Username seller_1198117529_biz_apil live com Password 1198117541 Signature AWYujIlOmqYJ9hjSo4XD9vd4tF7TtGAmKfSL2cHk63Scn5IXIGiKoCVWx Sandbox User Guide October 2009 23 24 Setting Up Test Accounts Managing Test Accounts When you click Reset for the account from the Test Accounts tab you are prompted to enter a new password and a note to associate with the account
34. fy the error code to trigger as all Version 3 0 digits in the field for example an ID of 10755 triggers PP API error code 10755 AddressVerify Not supported for negative testing Note If the trigger value is not a valid error code for the API being tested positive testing occurs for the request which might result in another error occurring Negative Testing Using an Amount Related Trigger Field Consider an example that sets up testing for error 10623 for DoAuthorization in which the error code is specified in the AMT field METHOD DoAuthorization amp TRANSACTIONID 0 1GU0288989807143B amp 106 236 TRANSACTIONENTITY Order amp VERSION 2 4 amp USER usemames PWD passwords SIGNATURE signature The request invokes the following response TIMESTAMP 2007 2d04 2d04T03 3a10 3a1 9Z amp CORRELATIONID 447d121150529 amp ACK Failure amp ERRORCODEO 10623 amp L SHORIMESSAGE0 Maximum 20number 200f 20authorization 20allowed 20for 20the 20order 20is 20reached 2e amp LONGMESSAGE0 Maximum 20number 200f 20authorization 20allowed 20for 20the 20order 20is 20reached 2e amp L SEVERI TYCODEO Error amp VERSION 2 2e400000 amp BUILD 1 2e0006 Negative Testing Using a Non Amount Trigger Field 50 Consider an example that sets up testing for error 10603 for DoVoid in which the error code is specified in the AUTHORIZATIONID field October 2009 Sandbox User Guide Te
35. ge such as the one shown below Note the status which should include ACK set to Success and a token that is used in subsequent steps TIMESTAMP 2007 2d04 2d05T23 3a23 3a07Z amp CORRELATIONID 63cdac0b67b50 amp ACK Success amp VERS ION 2 526300000 amp BUILD 1 2e0006 amp TOKEN EC 2d1NK66318YB717835M If the operation was successful use the token and redirect your browser to the Sandbox as follows https www sandbox paypal com cgi bin webscr cmd express checkout amp token EC 1NK66318YB717835M You may need to replace hexadecimal codes with ASCII codes for example you may need to replace 524 in the token with a hyphen Log into the Sandbox and confirm details You must log in to https developer paypal com and select the test account that represents the buyer not the username business test account that represents you as the merchant Then click Enter Sandbox Test Site When you confirm the Sandbox redirects your browser to the return URL you specified when calling SetExpressCheckout as in the following example October 2009 Sandbox User Guide http www YourRetumURL com token EC 5 Invoke a form on your site that calls the Testing PayPal NVP APIs Testing Express Checkout 1NK66318YB717835M amp PayerID 7AKUSARZ7SAT8 GetExpressCheckout API on the Sandbox lt form method post action https api 3t sandbox paypal com nvp gt lt
36. hown when you view details Sandbox Home Test Accounts Test Email Test Accounts API Credentials Test Tools You have successfully created a test account You can view email for this account on the Test Email tab Additional resources Documentation PayPal Developer Your test accounts are listed below You must have a Business account to represent a merchant Community and a Personal account to represent a buyer To simulate an action on the live site PayPal com select a test account and click Enter Sandbox Test Site Customer Support Developer Central Create Account Preconfigured Create Manually Website Payments Pro US UK Negative Log in Email Payment Review Test Mode Reset TestsB 1254900954 bizGpaypal com Disabled Disabled Reset Business Verified Ed Hide Details Country United States Business Name sa v s Test Store Credit Card Visa 4862147293709687 Exp Date 10 2019 Bank Account Checking Confirmed Routing Number 325272063 Bank Account Number 316986173464501 Balance 0 00 USD Email Confirmed Notes Date Created Oct 7 2009 00 36 14 PDT Delete Verified Account Status By default a preconfigured test account has a confirmed bank account and email addresses To create an unverified account change the bank account to unconfirmed Resetting a Preconfigured Account You can reset a preconfigured test account This is useful when you want to r
37. iggers PP API error code 10755 GetTransaction TRANSACTIONID TransactionID Specify the error code to trigger as all Details digits in the field for example an ID of 10755 triggers PP API error code 10755 TransactionSearch InvoiceID Specify the error code to trigger as all digits in the field for example an ID of 10755 triggers PP API error code 10755 DoDirectPayment AMT OrderTotal Specify the error code to trigger as all digits in a number with two digits to the right of the decimal point for example 107 55 triggers PP API error code 10755 SetExpressCheckout MAXAMT MaxAmount Specify the error code to trigger as all digits in a number with two digits to the right of the decimal point for example 107 55 triggers PP API error code 10755 48 October 2009 Sandbox User Guide Testing Error Conditions API Testing TABLE 7 1 API Fields That Trigger Error Conditions Continued API Name NVP Field Name GetExpressCheckout TOKEN Details DoExpressCheckout DoCapture DoVoid DoReauthorization DoAuthorization MassPay BillUser BAUpdate Version 2 4 TOKEN AUTHORIZATIONID AMT EMATLSUBJECT MPID SOAP Element Token Token Amount AuthorizationID Amount Amount EmailSubject Amount MpID Description Specify the error code to trigger as all digits in the field for example a token value of 10755 triggers PP API error code
38. information about Express Checkout see the Express Checkout Integration Guide and the PayPal NVP API Developer Guide and Reference The following steps match the circled numbers in the diagram Perform the actions in each step to test Express Checkout 1 Invoke a form on your site that calls the SetExpressCheckout API on the Sandbox To invoke the API set form fields whose names match the NVP names of the fields you want to set specify their corresponding values and then post the form to https api 3t sandbox paypal com nvp as shown in the following example form method post action https api 3t sandbox paypal com nvp input type hidden name USER value gt input type hidden name PWD value password input type hidden name SIGNATURE value signature lt input type hidden name VERSION value 2 3 gt lt input type hidden name PAYMENTACTION value Authorization gt lt input name AMT value 19 95 gt lt input type hidden name RETURNURL value http www YourRetumURL com gt lt input type hidden name CANCELURL value http www YourCancelURL com gt lt input type submit name METHOD value SetExpressCheckout gt lt form gt Norte The API username is a Sandbox business test account for which a signature exists See the API Credentials tab of the Sandbox to obtain a signature PayPal responds with a messa
39. input type hidden name USER val lt input type hidden name PW lt input type hidden name SIGNATURE lt input type hidden name VE lt input name TOKEN value EC input form ue gt D value API_password gt value API_signature gt RSION value 2 3 gt 1 66318 717835 gt type submit name METHOD value GetExpressCheckoutDetails gt If the operation was successful the GetExpressCheckout API returns information about the payer such as the following information TIMESTAMP 2007 32d04 32d05T23 3a44 3a11Z amp CORRELAT IONID 6b174e 9bac3b3 amp ACK Success amp VERS ION 2 526300000 amp BUILD 1 2e0006 amp TOKEN EC 2d1NK66318YB717835M EMA PAYERID 7AKUSARZ7SAT8 PAYERSTATUS verified FIRSTNAME LASTNAME amp COUNTRYCOD amp B ESS amp SHIPTONAME amp SHIPTOSTREET amp SHIPTOCITY amp SHIPTOSTATE CA amp SHIPTOCOUNTRYCOD amp SHIPTOCOUNTRYNAM amp SHIPTOZIP 94666 amp ADDRESSID amp ADDRESSSTATUS Confirmed Li zi U US HHAHHHH 6 Invoke form on your site that calls the Sandbox YourSandboxBuyerAccountEmail UnitedS20States DoExpressCheckoutPayment API on the form method post action https api 3t sandbox paypal com nvp lt input type hidden name USER value gt
40. itions Testing Using AVS Codes METHOD DoDirect Payment amp CREDITCARDTYPE VISA amp ACCT 4683075410516684 amp EXPDATE 112007 amp CVV2 808 amp AMT 107 55 amp FIRSTNAME Designer amp LASTNAME Fotos amp TPADDRESS 255 55 167 002 amp STREET 1234 20AVS A 20Street amp CITY San 20Jose amp STATE CA amp COUNTRY United 20States amp ZIP 95110 amp COUNTRYCODE US amp IPTONAME Louise220P 220Flowerchild amp IPTOSTREET 1234 220Easy 20Street amp IPTOSTREET2 Apt22022 20bis amp HI PTOCITY NewS200rleans amp I I I I PTOSTATE LA amp PTOCOUNTRY US amp PTOZIP 70114 amp MENTACTION Authorization amp ZBIN foo amp RSION 2 4 amp ER usemame amp PWD passwords SIGNATURE Aq9tJJ3ndj 7r32JgX qgAzqOoClJJAM7erWun CUZYFDtxffpKWUAEROG 9 I 2 lt request invokes the following response TIMESTAMP 2007 2d04 2d04T03 3a35 33al0Z amp CORRELATIONID a7cbf2d4d83dc amp ACK Failure amp L_ERRORCODE0 10555 amp SHORIMESSAGEO Filter 20Decline amp LONGMESSAGEO This 20transaction 20cannot 20be 20processed 2e amp L SEVERITYCODEO Error amp L ERRORCODE1 10755 amp L_SHORTMESSAGE1 Unsupported 20Currency 2e amp LONGMESSAGEl This 20transaction 20cannot 20be 20processed 20due 20to 20an 20unsupported 20currency 2e amp SEVERITYCODEl Error amp VERSION 2 2e400000 amp
41. m the use of this document or the information contained in this document or resulting from the application or use of the product or service described herein PayPal Inc reserves the right to make changes to any information herein without further notice Preface Chapter Chapter Chapter Chapter Sandbox User Guide 5 This DOCU etc 2 eke ie eR oe Se Gow ee a Wee Bao 5 Intended 5 Organization of This Document 5 Notational Conventions 6 Revision History o pa nono Rock eae BOX Xx Ro EGO A Roh m wd be cx ws 7 1 Overview to the PayPal Sandbox 9 Get Started Quickly Integration 9 At a Glance Differences between the Sandbox and Live 9 2 Accessing the PayPal 13 Signing Up for Sandbox 13 Welcome to the PayPal Sandbox 15 Test Email sus s 4 ka x mU URS ha setae tek 4 16 3 Setting Up Test 17 Planning the Types of Test Accounts You 17 Managing Test 18 Creating Preconfigured 18 Verified Account Status 22 Resetting a Pre
42. n on contacting Technical Support October 2009 Notational Conventions Notational Conventions This document uses typefaces to identify the characteristics of text These typefaces and the characteristics they imply are described below Typeface serif italics monospaced Serif bold San serif oblique How Used A document title A term being discussed or defined For example A file is a readable or writable stream of characters Boolean values not keywords For example The function returns true if it encounters an error Pathnames or file names that appear in body text frames Code related names that appear in body text frames Such names are used for functions callbacks arguments data structures and fields For example AbstractResponseType is the SOAP response type definition on which all PayPal API response methods are based Components of Internet protocol requests and responses such as HTTPS and FORM variables For example The PayPal system uses a method POST request to return IPN status variables related to subscriptions such as txn type User interface names such as window names or menu selections For example On the Profile page click Email to confirm your email address Placeholders used in the context of a format or programming standard or formal descriptions of PayPal system syntax Placeholders indicate values or names that the reader should provide Example For example am
43. ndbox Intended Audience This document is written for merchants and developers who want to test their PayPal based applications before using them in production Organization of This Document Sandbox User Guide Chapter 1 Overview to the PayPal Sandbox describes the Sandbox in general and lists the differences between the Sandbox and the production PayPal services Chapter 2 Accessing the PayPal Sandbox describes how to gain access to the Sandbox Chapter 3 Setting Up Test Accounts describes the different kinds of business roles and corresponding test accounts you need to set up on the Sandbox for effective testing of your PayPal based applications Chapter 4 Testing PayPal Website Features describes how you can use the Sandbox https www sandbox paypal com to test features that correspond to the features on the main PayPal interactive site https www paypal com Chapter 5 Testing PayPal APIs describes how to test the Express Checkout NVP API in the Sandbox Chapter 6 Sandbox Test Tools describes how to use Sandbox test tools such as the Instant Payment Notification simulator Chapter 7 Testing Error Conditions describes how to use the negative testing feature to simulate error conditions Chapter 8 Testing Payment Review provides information about a feature for testing recurring payments Chapter 9 Technical Support provides informatio
44. nsupported risk control is set G AVS G Service globally unavailable results in an error if the Service Unavailable Unsupported risk control is set R AVS R Retry results in an error if the Service Unavailable Unsupported risk control is set S AVS S Service not supported results in an error if the Service Unavailable Unsupported risk control is set U AVS U Service unavailable results in an error if the Service Unavailable Unsupported risk control is set The specified AVS code is set regardless of whether a PP error code is set If no AVS code is specified or the AVS risk control is not specified AVS code X is returned Testing an AVS Code Using Virtual Terminal Consider an example of testing for AVS code A using Virtual Terminal You enter 5 in the Address Line 1 field Sandbox User Guide October 2009 53 54 Testing Error Conditions Testing Using AVS Codes FIGURE 7 1 Entering an AVS code in the Address Line 1 field em 2 virtual Terminal Order Entry For 3 send rioncy Request Money Overview Add Funds History Profile Virtual Terminal Order Entry Form Secure Transaction indicates required fieldsHide optional fields Order Details Currency US Dolas A Net Order Amount 5 Shipping 0 Apply tax to shipping L Tax Rate 000 Tax Amount 000 Total 5 00 Transaction Type Auth v EJ
45. nternational address matches but no zip code is specified results in an error if the Partial Address Match risk control is set D AVS D Exact match no error The international address and postal code matches October 2009 Sandbox User Guide Testing Error Conditions Testing Using AVS Codes TABLE 7 2 AVS Error Conditions and Triggers Continued AVS Code Trigger Description of Error F AVS Exact match no error The UK address and postal code matches 5 postal code matches but no address is specified results in an error if the Partial Address Match risk control is set W AVS W The 9 digit zip code matches but no address is specified results in an error if the Partial Address Match risk control is set X AVS X Exact match no error The complete address and 9 digit zip code matches Y AVS Y Exact match no error The complete address and 5 digit zip code matches Z AVS Z The 5 digit zip code matches but no address is specified results in an error if the Partial Address Match risk control is set N AVS N No address information results in an error if the No Address Match risk control is set C AVS C No address information for an international address results in an error if the Address Match risk control is set E AVS E Not allowed for MOTO internet phone transactions I AVS I Service unavailable internationally results in an error if the Service Unavailable U
46. or transaction can verify that the event took place and that the monetary amounts associated with the event are correct PayPal test email however is a self contained email system in the Sandbox itself You see email messages addressed only to the Sandbox test accounts you set up Up to 30 of the latest email messages are listed on the Test Email tab The subject line of email messages you have not read are in bold Click a subject line to read the message 16 October 2009 Sandbox User Guide Setting Up Test Accounts Depending on the business application you are developing and testing you need different types of test accounts There are two types of test accounts Personal or Premier and Business Planning the Types of Test Accounts You Need Determine the types of test accounts you need to test the applications you are developing In addition determine the number of different accounts you need Typically you create at least one seller Business account and one buyer Personal or Premier account You might need several different Personal or Business PayPal test accounts to test your application When you create a test account the following information is generated for you e Mailing address e Email address and password for the test PayPal account You can specify the same password not email address for all your test accounts so that you can more easily remember it e Security questions and answers You can use the same se
47. ount is the variable for a single item shopping cart but amount X is the name of the variable for a multi item shopping cart amount 5 is the item amount for the third item in a multiple item shopping cart To convey additional information this document may also apply color and underlining to words or phrases that use the typefaces described above Such use is described below Text attribute XXXXXX How Used Hypertext link to a page in the current document or to another document in the set XXXXXX Hypertext link to a URL or that initiates a web action such as sending mail October 2009 Sandbox User Guide Revision History Revision History Sandbox User Guide Revision history for PayPal Sandbox User Guide TABLE P 1 Revision History Date October 2009 September 2008 April 2008 December 2007 September 2007 August 2007 May 2007 April 2007 July 2006 June 2006 December 2005 Description Added information about creating preconfigured accounts which now works for more countries Removed chapter about Testing Recurring Payments because it is no longer relevant Added information about testing payment review and updated screens related to payment review Added information about the Instant Payment Notification simulator described changes to the Sandbox user interface and corrected all known problems Added information about the account reset feature changed screens
48. r efund 200n 20this 20transaction amp L SEVERI TYCODE1 Error amp L ERRORCODE2 10009 amp SHORTMESSAGE2 Transaction 20refused amp LONGMESSAGE2 Account 20is 20restricted amp L SEVERI TYCODE2 Error amp L ERRORCODE13 10009 amp SHORIMESSAGE13 Transaction 20refused amp L LONGMESSAGE13 The 20partial 20refund 20amount 20must 20be 201ess 20than 2 O0or 20equal 20to 20the 20remaining 20amount amp L_SEVERITYCODE13 Error amp VERS ION 2 32e400000 amp BUILD 1 2e0006 Testing Using AVS Codes You can simulate address verification by triggering an AVS error code when you call DoDirectPayment or use Virtual Terminal To specify a code place AVS_code in the NVP STREET field or the Street 1 SOAP element when you call DoDirectPayment where code is an AVS code or enter AVS_code in Address Line 1 when using Virtual Terminal For example if you set 123 AVS A Street inthe STREET field AVS code A is set 5 code is case sensitive all characters must be uppercase For example AVS Ais valid trigger avs_a is not The following table identifies valid AVS codes corresponding triggers and a description of each error condition TABLE 7 2 AVS Error Conditions and Triggers AVS Code Trigger Description of Error A AVS A The address matches but no zip code is specified results in an error if the Partial Address Match risk control is set B AVS B The i
49. rectPayment which indicates a mismatch in the card validation code Sandbox User Guide October 2009 57 Testing Error Conditions Testing Using CVV Codes METHOD DoDirect Payment amp CREDITCARDTY PE VISA amp 46830754105166846 EXPDATE 112007 amp CVV2 116 amp AMT 1 55 amp FIRSTNAME Designer amp LASTNAME FOtos amp IPADDRESS 255 55 167 002 amp STREET 1234 20Easy 20Street amp CITY San 20Jose amp STATE CA amp COUNTRY United 20States amp ZIP 95110 amp COUNTRYCOD IPTONAME Louise220P 20Flowerchild amp IPTOSTREET 1234 220Easy 20Street amp HIPTOSTREET2 Apt 2022220bis amp I I I I I US amp PTOCITY New 200rleans amp PTOSTATE LA amp PTOCOUNTRY US amp PTOZIP 70114 amp MENTACTION Authorization amp ZBIN foo amp RSION 2 4 amp ER username amp PWD passwords SIGNATURE signature 9 I 2 lt request invokes the following response TIMESTAMP 2007 2d04 2d04T03 3a35 3al2Z amp CORRELATIONID 2499856319532 amp ACK Failure amp L_ERRORCODE0 15004 amp SHORIMESSAGEO Gateway 20Decline amp L LONGMESSAGEO This 20transaction 20cannot 20be 20processed 2e 20Please 20e nter 20a 20valid 20Credit 20Card 20Verification 20Number 2e amp L SEVERITYCODEO Error amp VERSION 222e400000 amp BUILD 1 2e0006 58 Octob
50. s with Buy Now Button Sandbox User Guide You can use the Sandbox to familiarize yourself with the PayPal Buy Now button with which you can associate PayPal with a specific item you sell on your website To create a test Buy Now button 1 2 3 From the Test Accounts tab select a business account and click Enter Sandbox Test Site Go to the Merchant Services tab Select the Buy Now Buttons link under the Key Features heading to get to the Button Factory You can also search the Help for Button Factory Follow the online instructions to create a Buy Now button For more information see the Website Payments Standard Integration Guide Copy and paste the code into your web page file wherever you would like the button image to appear Typically the button should be located next to the description of the item or service Your web page does not have to be published to your web server for you to check the button placement it can be on you own local hard drive IMPORTANT You must change the form action to redirect to the Sandbox using the following URL October 2009 31 32 Testing PayPal Website Features Website Payments with Buy Now Button https www sandbox paypal com cgi bin webscr method post Use the PayPal Help link to answer related questions such as How do I make a Buy Now Button compatible with the Shopping Cart feature For general information see https www paypal com pdn item
51. simulator Fees Privacy Security Center Contact Us Legal Agreements User Agreement Copyright 1999 2009 PayPal All rights reserved On this page you can perform the following actions e Create test accounts You can create and manage test accounts from the Test Accounts tab From this tab you can also enter the Sandbox Test Site which simulates the live paypal com site For more information see Setting Up Test Accounts on page 17 e Access email sent to test accounts from the Test Email tab For more information see Test Email on page 16 e View API credentials for business test accounts from the API Credentials tab An API signature which is the preferred kind of credential is automatically created when you create a Business test account You need the information on this tab when you test APIs e Obtain technical information about PayPal products and APIs using the Help link e Simulate Instant Payment Notifications using a test tool For more information see Sandbox Test Tools on page 43 e Change the log in password using the Profile link Note You cannot change the Log In Email address Sandbox User Guide October 2009 15 mS Accessing the PayPal Sandbox Test Email Test Email When certain kinds of transactions occur in the live PayPal system PayPal sends email messages to the real email addresses of the participants From these email messages the recipient or initiator of an event
52. st Money Merchant Services Overview Add Funds History Profile Virtual Terminal Order Entry Form Secure Transaction f indicates required fieldsSho Order Details Currency U S Dollars Net Order Amount 5 Shipping 0 Apply tax to shipping Tax Rate Tax Amount 000 Total 5 00 Transaction Type Auth 2 Billing Information Please enter the following information exactly as it appears on the customer s credit card statement Card Card Number Expiration Date 01 2008 Card Security Code 116 On the back of your card locate the final 3 digit number What s this Using Amex When you attempt to process the transaction the following message appears FIGURE 7 4 CVV error message from Virtual Terminal PayPal Log Out Security Center My Account SendMoney RequestMoney Merchant Services Overview Add Funds History Profile Virtual Terminal Order Entry Form Secure Transaction E 15004 This transaction cannot be processed Please enter a valid Credit Card Verification Number Gateway Decline Processor Response Code 0000 AVS X Address and Whole Zip Match CW Does not match Reference 9582BFSCB9BOBV Other errors also reported in addition to CVV code N Testing a CVV Code Using DoDirectPayment Consider an example that sets up testing for CCV code N in DoDi
53. sting Error Conditions Testing METHOD DoVoid amp AUTHORIZATIONID 10603 amp VERSION 2 4 amp ER username amp PWD passwords SIGNATURE signature The request invokes the following response TIMESTAMP 2007 2d04 2d04T03 3a10 3a22Z amp CORRELATIONID 51b0c5054dee6 amp ACK Failure amp ERRORCODEO 10603 amp L SHORIMESSAGEO The 20buyer 20is 20restricted 2e amp LONGMESSAGEO The 20buyer 20account 20is 20restricted 2e amp L SEVERITYCODEO Error amp VERSION 2 2e400000 amp BUILD 1 2e0006 Negative Testing With Multiple Messages Consider an example that sets up testing for error 10009 for RefundTransaction which returns 14 possible error message sets METHOD RefundTransaction amp TRANSACTIONID asdf amp REFUNDTYPE Partial amp AMT 100 09 amp VERSION 2 4 amp USER usemame amp PWD password s SIGNATURE signature The request invokes the following response Sandbox User Guide October 2009 51 52 Testing Error Conditions Testing Using AVS Codes TIMESTAMP 2007 2d04 2d04T03 3a10 3a23Z amp CORRELATIONID 81ccc18eaec49 amp ACK Failure amp ERRORCODEO 10009 amp SHORTMESSAGEO Transaction 20refused amp LONGMESSAGE0 You 20can 20not 20refund 20this 20type 200f 20transaction amp L SEVERI TYCODEO Error amp L ERRORCODE1 10009 amp SHORTMESSAGEl Transaction 20refused amp LONGMESSAGEl You 20are 200ver 20the 20time 201imit 20to 20perform 20a 20
54. t card numbers Social Security Number for Billing Agreements PayPal transactions Fraud detection Digital certificates PayPal Sandbox https api sandbox paypal com nvp https api sandbox paypal com 2 0 You fill all roles you need to test merchant buyer and seller Completely fictitious Before you begin working with the Sandbox create the details for all the business roles you must fulfill The Sandbox simulates verification of postal addresses and names The Sandbox has a special purpose email inbox for your testing contained in the Sandbox itself The Sandbox creates bank accounts credit card numbers and CVV2 numbers you need in order to develop and test all of which are fictitious and only used within the Sandbox The Sandbox simulates the verification of these numbers Transactions do not affect real accounts and actual money is never exchanged 111 nn nnnn The Sandbox creates all fictitious bank accounts credit card numbers and CVV2 numbers you need for development and testing The Sandbox simulates the verification of these numbers Fraud detection is not enabled for the Sandbox After you request digital certificates for use with the PayPal Web Services API the Sandbox automatically generates them They are available for immediate downloading Live PayPal Website and API Service For API Certificate security ttps api paypal com nvp or API Signature security ttps api 3t p
55. t card validation errors that occur when using Virtual Terminal or calling DoDirectPayment IMPORTANT Negative testing is only available for Version 2 4 and later of PayPal APIs You raise an error condition by setting a value in a field passed to an API or setting a value in a field submitted to Virtual Terminal The value triggers a specific error condition Negative testing is available only in the Sandbox you cannot force or simulate an error on the live site You must create a Business test account and enable negative testing otherwise setting a value in the API or transaction will not raise an error unless the error would be raised in the default positive test environment To enable negative testing set Test Mode to Enabled The following screen shows two Business accounts The first test account enables negative testing the second account disables negative testing 222 Home y 4 Sandbox Jest Certificates Email Forums Help Center Sandbox The Sandbox is a safe testing environment where you can test PayPal payments and API calls The Sandbox is a mirror of the real PayPal site except that real financial transactions are not made Learn More Test User Type CountryCode Country Balance Confirmed Verified Made Business us 0 5 US Yes Unverified Enabled Business us u s 0 00 Yes Unverified Disabled To test Virtual Terminal you must set risk controls for address verification and credit card security respec
56. t info 28 Website Payments 31 Website Payments Pro 17 27 Website Payments Pro test accounts 27 64 October 2009 Sandbox User Guide
57. test Can We Help General information Visit the PayPal Developer Community to get answers to integration questions or Default values provided in the fields below are valid You may change any of these values but your changed values will not be validated Payment information payment type echeck instant payment date 23 55 12 May 16 2008 PDT payment_status Refunded M Buyer information payer status unverified verified first name last name payer email payer id TESTBUYERIDO1 October 2009 Sandbox User Guide Sandbox Test Tools Instant Payment Notification Simulator Basic information business seller paypalsandbox com receiver email receiver id TESTSELLERID1 residence country US quantity 1 shipping 3 04 tax 2 02 mc currency USD US Dollars v mc fee 0 44 mc gross 12 34 Transaction fields txn type web accept txn id 12518655 parent txn id EARLIERTRANSIDO01 notify version 2 1 Refunds reversals reason code refund Advanced and custom information custom ixyz123 Show all fields Cancel You can modify the fields that you want to include in the IPN however the simulator does not check the validity of any field that you change Note By default only populated fields are displayed You can check the Show all fields box to view all fi
58. testing 48 B bank account adding 28 for Canadian test accounts 28 for German test accounts 28 for UK test accounts 28 Bank Account Number 28 billing a customer 36 BSB Number 28 Buy Now 31 Canadian bank account info 28 credit card validation testing 56 D delete test account 18 eCheck 35 email Sandbox 16 errors testing 47 F fraud detection in Sandbox 10 Sandbox User Guide G German bank account info 28 instant payment notification simulator 43 Institution Number 28 Integration Center 9 manually created test accounts 18 26 N name value pair NVP APIs 39 negative testing 47 P paying 36 payment review testing 59 PayPal Developer Network 9 PDN 9 pending transactions 33 positive test 47 preconfigured test accounts 18 R Request Money testing 36 reset test account 18 reset test accounts 22 5 Sandbox API server for 10 email 16 SDKs 9 October 2009 63 36 simulator instant payment notification 43 Social Security Number for Website Payments Pro 27 sort code for Canada Germany and UK 28 I test accounts 17 test email 16 test tools 43 testing address verification 52 APIs 39 48 billing a customer 36 Buy Now 32 credit card validation 56 eCheck 35 negative 47 NVP 39 paying 36 Send Money 36 verifying a payment 32 verifying a refund 34 Website Payments 31 testing payment review features 59 Transit Number 28 U UK bank accoun
59. the PayPal Sandbox Test Environment to try out Website Payments Instant Payment Notification PayPal APIs and other features Sd a nns Do not use your PayPal account login email Password At least 8 characters long case sensitive Confirm Password Security Question select question v Security Answer Communications Please keep me informed on PayPal s Web Services the PayPal Sandbox and Developer Central Terms of Use The User Agreement and Privacy Policy are designed to protect and inform you of your rights within the PayPal Developer Central service User Agreement Printer Friendly Version THE FOLLOWING DESCRIBES THE TERMS ON WHICH PAYPAL OFFERS YOU ACCESS TO OUR PAYPAL DEVELOPER CENTRAL SERVICES This User Agreement Agreement is a contract between you and PayPal Inc and applies to your use of the PayPal Developer Privacy Policy Printer Friendly Version The Privacy Policy below governs your PayPal Developer Central account and any information you provide on the PayPal Developer Central site v Overview Do you agree to the User Agreement and Privacy Policy and terms incorporated therein O ves 9 No IMPORTANT Do not use the same log in email address or password that you use for logging into the live paypal com site because later you may allow someone to work in the Sandbox on your behalf but not want
60. tively to Decline or Accept and Report depending on the kind of negative testing you want to perform If you do not set the appropriate risk controls default processing occurs which is to accept the transaction Severe error conditions such as bad arguments or invalid login preempt negative testing because the error cannot be handled by either negative testing or positive testing In these October 2009 47 Testing Error Conditions API Testing cases the error condition for positive testing is raised regardless of whether the account was enabled for negative testing API Testing For APIs you trigger an error condition by setting a field to the value of the error you want to trigger The value you specify depends on the kind of field e for amount related fields specify a value as a number with two digits to the right of the decimal point for example 107 55 triggers PP API error 10755 e for other kinds of fields specify the actual PP API error for example 10755 triggers PP API error 10755 The following table identifies the API the NVP name or SOAP element of the field that triggers the error and a description of how to set the value in the field TABLE 7 1 API Fields That Trigger Error Conditions API Name NVP Field Name SOAP Element Description RefundTransaction AMT Amount Specify the error code to trigger as all digits in a number with two digits to the right of the decimal point for example 107 55 tr
61. to https www sandbox paypal com in which case you do not have to launch the Sandbox to access it IMPORTANT The Delete button does not delete the test account It removes the test account from your list of accounts but the email address for the test account is still on file for the Sandbox You cannot reuse an email address that is still on file for the Sandbox If you want to rerun a test do not delete the account you can use the Reset option instead The following sections describe how to create a preconfigured test account which allows merchants to create an account using a typical configuration that is useful for most testing You can also create a test account manually which might be required if the preconfigured test account is not adequate for your needs Note The first test account that you create is always a preconfigured test account After you create the first account you click Preconfigured to create a preconfigured test account or Create Manually to create the test account manually The following sections assume that a test account has not yet been created Creating a Preconfigured Account To create a preconfigured account 1 After logging in select Test Accounts and click the Create Test Account link 18 October 2009 Sandbox User Guide Setting Up Test Accounts Managing Test Accounts 2 Choose the country for which you want the account to be registered Sandbox Home est Accounts Test Email Creat
62. to reflect changes in the user interface and corrected all known problems Changed screens to reflect new user interface added information about testing recurring payments and corrected all known problems Changed PayPal logo and corrected all known problems Revised manual to reflect new autocreated accounts feature Added chapters on negative testing and testing APIs using the Express Checkout NVP API Added new section on handling pending transactions and made miscellaneous changes Correction of variable name ipn_test which should be ipn Correction of Sort Code necessary to test UK accounts in Sandbox Proper Sort Code is 609204 Miscellaneous corrections October 2009 Revision History 8 October 2009 Sandbox User Guide Overview to the PayPal Sandbox The PayPal Sandbox is a self contained environment within which you can prototype and test PayPal features and APIs The PayPal Sandbox is an almost identical copy of the live PayPal website Its purpose is to give developers a shielded environment for testing and integration purposes and to help avoid problems that might occur while testing PayPal integration solutions on the live site Before moving any PayPal based application into production you should test the application in the Sandbox to ensure that it functions as you intend and within the guidelines and standards set forth by the PayPal Developer Network PDN Get Started Qui
63. ttps www paypal com Click Help in the upper right corner of the page Click Contact Us in the lower left of the page Chose either Help by Email or Help by Phone N Follow the remaining instructions Contacting Developer Technical Support for API Help For information about PayPal Web Services API Developer Central and using the Sandbox refer to the following resources Help Center In Developer Central click Help Center to access developer manuals and links e Forums In Developer Central click Forums to share information with the PayPal developer community e Online Developer Support Portal at https paypal com mts Use the Forums first to find answers about any questions or problems you might have Another developer might have already posted information about your question or problem To contact Developer Technical Support about the PayPal Web Services API 1 Log in to your account at https developer paypal com by entering your email address and password in the Member Log In box 2 Click Help Center at the bottom of the box on the right side of the page 3 Click Email PayPal Support Sandbox User Guide October 2009 61 Technical Support Contacting Developer Technical Support for API Help 4 Complete the form 62 October 2009 Sandbox User Guide Index A account status 22 adding a bank account 28 address verification testing 52 API server for Sandbox 10 API
64. w there are two links to simulate actual bank clearing These links appear only in the Sandbox Clear Transaction Click to complete the transaction Fail Transaction Click to cancel the transaction 3 Click Return to Log to see the transfer completed and the money in the Sandbox account The My Account gt Overview page opens 4 Click the View Limits links on the My Account gt Overview page to see the spending limits for the current test account For an alternative example see Completing or Canceling a Pending Transaction on page 33 October 2009 35 36 Testing PayPal Website Features Sending Funds to a Seller Sending Funds to a Seller To purchase goods or services a PayPal user must send funds to a seller In the PayPal Sandbox you can simulate the actions of a buyer by manually initiating the payment of funds You must use a Personal test account to represent the buyer To send funds from one test account to another 1 Log in to https developer paypal com click the Test Accounts tab select a test account and click Enter Sandbox Test Site 2 Navigate to the Send Money tab 3 On the Send Money page enter the email address PayPal account name for the test account in Recipient s Email box 4 Enter the amount to send to the seller s test account in the Amount box 5 Select the currency for the funds in the Currency drop down list Note Auction is not an option in the drop down
Download Pdf Manuals
Related Search
Related Contents
Philips DVP3236 User's Manual Whirlpool ET8FTEXVB00 User's Manual 取扱説明書 - simco Samsung HS3000 藍牙耳機 Samsung 6300 User's Manual SensAlarm Plus Remote Kit manual A Web-Based Editor for Cloud-Based Programming NDM - KYPipe ES-VG-10 MEDIDOR AISLAMIENTO Copyright © All rights reserved.
Failed to retrieve file