Novadge / paypal-payments

Accept and process payments with Paypal SDK
Apache License 2.0
3 stars 3 forks source link

PaypalService doesn't compile static due to mismatching Parameters in createCreditCard #4

Open HeikoKanzler opened 6 years ago

HeikoKanzler commented 6 years ago

Static compilation fails due to a type mismatch in createCreditCard.

/grails-app/services/com/novadge/paypal/PaypalService.groovy: 280: [Static type checking] - Cannot assign value of type java.lang.Object to variable of type java.lang.Integer @ line 280, column 23. new CreditCard( cvv2: props.ccv2, ^

Field ccv2 is declared as Integer in the SDK.

Omasiri commented 6 years ago

Thanks. I'll take a look. Also feel free to send a Pull request. @HeikoKanzler : I looked at the paypal GitHub repo and the data type for ccv2 is String. However, the data type of the ccv2 field in version 1.14.0 from maven is Integer.

Did you add another version of the sdk to your project?