Skip to content

Commit

Permalink
Updated documentation because MollieApi was renamed to MollieClient
Browse files Browse the repository at this point in the history
  • Loading branch information
Viincenttt committed Feb 18, 2016
1 parent f4a00b3 commit 53039b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ The easiest way to install the Mollie Api library is to use the [Nuget Package](
Install-Package Mollie.Api
```

### Creating a MollieApi object
The MollieApi object allows you to send and receive requests to the Mollie REST webservice.
### Creating a MollieClient object
The MollieClient object allows you to send and receive requests to the Mollie REST webservice.
```c#
MollieApi mollieApi = new MollieApi("{your_api_key}");
MollieClient mollieClient = new MollieClient("{your_api_key}");
```
### Payments
#### Creating a payment
Expand All @@ -26,7 +26,7 @@ PaymentRequest paymentRequest = new PaymentRequest() {
RedirectUrl = "http://google.com"
};

PaymentResponse paymentResponse = mollieApi.CreatePayment(paymentRequest).Result;
PaymentResponse paymentResponse = mollieClient.CreatePayment(paymentRequest).Result;
```

If you want to create a payment with a specific paymentmethod, there are seperate classes that allow you to set paymentmethod specific parameters. For example, a bank transfer payment allows you to set the billing e-mail and due date. Have a look at the [Mollie create payment documentation](https://www.mollie.com/nl/docs/reference/payments/create) for more information.
Expand Down

0 comments on commit 53039b5

Please sign in to comment.