Skip to content

Commit c445a7b

Browse files
authored
Update README.md to have OAuth token usage
1 parent ad5b7ca commit c445a7b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ Replace the environment constant in the transaction instantiation. For example,
8585
transaction = Transaction.new('API_LOGIN', 'API_KEY', :gateway => :production)
8686
```
8787

88+
### Setting OAuth credentials
89+
Access Tokens can be setup using the transaction instantiation without the constructor. For example, in the method above:
90+
```ruby
91+
transaction = Transaction.new
92+
transaction.access_token = 'testTokenValue'
93+
transaction.options_OAuth = {:gateway => :sandbox, :verify_ssl => true}
94+
```
95+
8896
### Direct Post Method (DPM)
8997

9098
A generator is provided to aid in setting up a Direct Post Method application. In the example below +payments+ is the name of the controller to generate.

0 commit comments

Comments
 (0)