Tap-Payments / goSellSDK-iOS

goSell iOS SDK
MIT License
20 stars 22 forks source link

Getting Error in CreateChargeRequest #5

Closed AbiramiBala closed 5 years ago

AbiramiBala commented 5 years ago

Im getting error in creating a charge request

let request = CreateChargeRequest(amount: 1000.0, currency: "kwd", customer: self.customer, redirect: redirect)

Cannot invoke initializer for type 'CreateChargeRequest' with an argument list of type '(amount: Double, currency: String, customer: Customer, redirect: CreateChargeRedirect)'

i also tried

CreateChargeRequest(amount: 1000.0, currency: "kwd", redirect: redirect, source: source) (amount: 100.0, currency: "kwd", customer: self.customer, redirect: redirect, source: source)

nothing works. All these methods gives the same error.

Please help me to resolve this issue....! Thanks in advance !

tapmobiledeveloper commented 5 years ago

@AbiramiBala please upgrade to the SDK version 2. It has all payment process covered for UI with the flexible UI. Version 1 is no longer supported.