stil4m / mollie-api

Mollie API for Java
14 stars 14 forks source link

Payments: method is an optional field #12

Closed skamoen closed 8 years ago

skamoen commented 8 years ago

In the Mollie API, the "method" field is optional (https://www.mollie.com/nl/docs/reference/payments/create), as the user is presented with a method selection screen when this value isn't present.

Currently, method is a non-optional field in the api client, which makes method selection on Mollies side a bit hard. Setting this value to null gives the desired effect on Mollies side, but gives nullpointers in the api client.

stil4m commented 8 years ago

Can you provide a stacktrace?

skamoen commented 8 years ago

My apologies, it seems the nullpointer had another cause, and incidently occured right after I tried null for the method String. Everything is working just fine.