Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

Commit

Permalink
Merge pull request #219 from dkao1978/master
Browse files Browse the repository at this point in the history
Add authorization example to README.
  • Loading branch information
bluk committed Oct 3, 2017
2 parents 749e850 + 49e35f6 commit 4d2a9ec
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Expand Up @@ -106,6 +106,17 @@ else:
print(payment.error)
```

### Authorize Payment

```python
for link in payment.links:
if link.rel == "approval_url":
# Convert to str to avoid Google App Engine Unicode issue
# https://github.com/paypal/rest-api-sdk-python/pull/58
approval_url = str(link.href)
print("Redirect for approval: %s" % (approval_url))
```

### Execute Payment

```python
Expand Down

0 comments on commit 4d2a9ec

Please sign in to comment.