Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 104 lines (79 sloc) 3.859 kB
9d2f14d @gtaylor Renaming Response to PayPalResponse to be less ambiguous. Interface c…
gtaylor authored
1 REQUIREMENTS
2 ------------
3 * Python 2.6 or 2.7
4
0b7980d @patcoll initial commit
authored
5 QUICKSTART
6 ----------
7
8 To run test suite:
1d70c25 @gtaylor Removing the last vestiges of the old project layout. Updating docs s…
gtaylor authored
9
10 python tests/runner.py
0b7980d @patcoll initial commit
authored
11
1d70c25 @gtaylor Removing the last vestiges of the old project layout. Updating docs s…
gtaylor authored
12 The meat is in `paypal.interface`. The docs are in the docstrings and tests.
083a3f0 initial commit
Jonathan Vanasco authored
13
1d70c25 @gtaylor Removing the last vestiges of the old project layout. Updating docs s…
gtaylor authored
14 - Create a paypal.interface.PayPalInterface object
15 - Pass it configuration kwargs
16 - That interface is how you access PayPal.
083a3f0 initial commit
Jonathan Vanasco authored
17
1d70c25 @gtaylor Removing the last vestiges of the old project layout. Updating docs s…
gtaylor authored
18 Create a PayPalInterface() instace with the account details passed as kwargs.
19 This creates an internal PayPalConfig object.
0b7980d @patcoll initial commit
authored
20
21 WHY?
22 ----
23
91b948d @gtaylor Terminate README lines at 80 chars so this is readable in a typical s…
gtaylor authored
24 The real value for me is having a working test suite with easy-to-understand
25 and use methods on the APIs.
0b7980d @patcoll initial commit
authored
26
27 TODO
28 ----
29
30 See TODO
31
91b948d @gtaylor Terminate README lines at 80 chars so this is readable in a typical s…
gtaylor authored
32 Also, the following methods don't do much yet, because Express Checkout hasn't
33 been implemented at all:
0b7980d @patcoll initial commit
authored
34
35 address_verify
36 do_authorization
37 get_express_checkout_details
38
91b948d @gtaylor Terminate README lines at 80 chars so this is readable in a typical s…
gtaylor authored
39 `set_express_checkout` technically works, but it needs
40 `get_express_checkout_details` to do all of the work, and that method requires
41 a PAYERID that you can only get if the user logs into PayPal.
0b7980d @patcoll initial commit
authored
42
43 ADDENDUM A
44 ----------
45
91b948d @gtaylor Terminate README lines at 80 chars so this is readable in a typical s…
gtaylor authored
46 Instructions for setting up a Sandbox Website Payments Pro account. More
47 detailed instructions can be found at [x.com](http://x.com) but this is what
48 worked for me.
0b7980d @patcoll initial commit
authored
49
50 1. Create Sandbox account. Don't use your live PayPal account email address.
51 2. Login to Sandbox
52 3. Test Accounts -> "Preconfigured" -- the manual process sucks.
53 4. Make a "Seller" account
54 5. Don't change "login email" at all -- it seems to truncate to 6 characters.
91b948d @gtaylor Terminate README lines at 80 chars so this is readable in a typical s…
gtaylor authored
55 6. I took the numeric password they gave as default and copy/pasted it into a
56 plain text document so I could use it later to make all my test account
57 passwords the same.
0b7980d @patcoll initial commit
authored
58 7. I chose Visa as the credit card.
91b948d @gtaylor Terminate README lines at 80 chars so this is readable in a typical s…
gtaylor authored
59 8. Bank Account = "Yes" -- This is needed for a Verified account, which is
60 needed for Website Payments Pro.
61 9. Put $1,000 of fake $$ into the account. At one point I tried $5,000 but
62 the test account I created wasn't Verified automatically? Not sure if the
63 two are related.
0b7980d @patcoll initial commit
authored
64 10. No notes.
65 11. "Create Account"
91b948d @gtaylor Terminate README lines at 80 chars so this is readable in a typical s…
gtaylor authored
66 12. When it takes you back to the "Test Accounts" screen, it should say
67 "Business" and "Verified"
68 13. When you click on "API Credentials" you should see API credentials for the
69 corresponding test account you just created. I copy/pasted them into the
70 same text file used above.
71
72 The next step was the tricky part, at least for me. I was getting `10501`
73 errors which means the billing agreement wasn't agreed to. Apparently you need
74 to accept the fake billing agreement that comes along with the fake account you
75 just created, which semi-conveniently has come packaged with an automatically
76 created and verified fake bank account and business account "verified" status.
77 Why couldn't the billing agreement be automatically "agreed to" as well?
78
79 Back on the "Test Accounts" page, choose the account you just created and click
80 "Enter Sandbox Test Site." It should populate the fake email address, which
81 should be `userna_XXXXXXXXXX_biz@domain.com`. Use the copy/pasted password from
82 step #6 and paste it into the password field and login.
83
84 Now go under Merchant Services -> Website Payments Pro. In the right column
85 there should be a link to "agree" to the billing agreement. Click this link and
86 agree to the agreement. Now your API calls will work as expected.
0b7980d @patcoll initial commit
authored
87
88 LICENSE
89 -------
90
91 Copyright 2009 Pat Collins <pat@burned.com>
92
93 Licensed under the Apache License, Version 2.0 (the "License");
94 you may not use this file except in compliance with the License.
95 You may obtain a copy of the License at
96
97 http://www.apache.org/licenses/LICENSE-2.0
98
99 Unless required by applicable law or agreed to in writing, software
100 distributed under the License is distributed on an "AS IS" BASIS,
101 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
102 See the License for the specific language governing permissions and
103 limitations under the License.
Something went wrong with that request. Please try again.