Skip to content

Commit

Permalink
Merge pull request #13 from Yamaha32088/master
Browse files Browse the repository at this point in the history
Update class references
  • Loading branch information
tarishah authored Mar 9, 2017
2 parents 746b982 + 33156bc commit 2ad64af
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Amazon Pay API Integration
```java
import com.amazon.pay.Client;
import com.amazon.pay.Config;
import com.amazon.pay.impl.PaymentsClient;
import com.amazon.pay.impl.PaymentsConfig;
import com.amazon.pay.impl.PayClient;
import com.amazon.pay.impl.PayConfig;
```

Your Amazon Pay keys are
Expand All @@ -25,7 +25,7 @@ String merchantId = "YOUR_MERCHANT_ID";
String accessKey = "YOUR_ACCESS_KEY";
String secretKey = "YOUR_SECRET_Key";

Config config = new PaymentsConfig()
Config config = new PayConfig()
.withSellerId(merchantId)
.withAccessKey(accessKey)
.withSecretKey(secretKey)
Expand All @@ -42,7 +42,7 @@ Config config = new PaymentsConfig()
//Default environment is what is set in config file. For testing in Sandbox mode, use
//config.withSandboxMode(true);

Client client = new PaymentsClient(config);
Client client = new PayClient(config);

```

Expand Down Expand Up @@ -166,7 +166,7 @@ String merchantId = "YOUR_MERCHANT_ID";
String accessKey = "YOUR_ACCESS_KEY";
String secretKey = "YOUR_SECRET_KEY";

Config config = new PaymentsConfig()
Config config = new PayConfig()
.withSellerId(merchantId)
.withAccessKey(accessKey)
.withSecretKey(secretKey);
Expand All @@ -175,7 +175,7 @@ Default currencyCode is what is set in config file. To override this, use config
Default region is what is set in config file. For override this, use config.withRegion(Region.YOUR_REGION);
Default environment is what is set in config file. For testing in Sandbox mode, use config.withSandboxMode(true);

Client client = new PaymentsClient(config);
Client client = new PayClient(config);

// These values are grabbed from the Amazon Pay
// Address and Wallet widgets
Expand Down Expand Up @@ -401,4 +401,4 @@ if (paymentDescriptor != null) {
log.info("Instrument Name = " + paymentDescriptor.getName());
log.info("Instrument Tail = " + paymentDescriptor.getAccountNumberTail());
log.info("Use Amazon Balance First = " + paymentDescriptor.isUseAmazonBalanceFirst());
}
}

0 comments on commit 2ad64af

Please sign in to comment.