Skip to content

Commit d08adf7

Browse files
committed
Merge branch 'master' of https://github.com/namanbansal/sdk-ruby
2 parents bb8b941 + c445a7b commit d08adf7

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)