flutterwave-flutter
flutterwave-flutter copied to clipboard
Transaction ID is nil iOS
After a successful transaction, in delegate method tranasctionSuccessful(flwRef: String?, responseData: FlutterwaveSDK.FlutterwaveDataResponse?)
responseData.id is nil
▿ FlutterwaveDataResponse ▿ txRef : Optional<String> - some : "2024-01-03T10:58:58ZRef" ▿ flwRef : Optional<String> - some : "FLW-MOCK-bef41a183c12d869f2a0fd9d900dec1e"
- deviceFingerprint : nil
▿ amount : Optional<Double>
- some : 233.0 ▿ chargedAmount : Optional<Double>
- some : 233.0 ▿ appFee : Optional<Double>
- some : 8.86 ▿ merchantFee : Optional<Double>
- some : 0.0 ▿ processorResponse : Optional<String>
- some : "Approved. Successful"
- authModel : nil
▿ currency : Optional<String>
- some : "NGN" ▿ ip : Optional<String>
- some : "xx.xxx.xxx.143" ▿ narration : Optional<String>
- some : "simplifying payments for endless possibilities" ▿ status : Optional<String>
- some : "successful"
- authURL : nil
- paymentType : nil
- fraudStatus : nil
- chargeType : nil
- createdAt : nil
- plan : nil
- id : nil
- accountID : nil ▿ customer : Optional<Customer> ▿ some : Customer ▿ id : Optional<Int> - some : 2320464 ▿ phoneNumber : Optional<String> - some : "N/A" ▿ name : Optional<String> - some : "some" ▿ email : Optional<String> - some : "[email protected]" ▿ createdAt : Optional<String> - some : "2024-01-03T10:59:19.000Z"
- card : nil
here is config
let config = FlutterwaveConfig.sharedConfig()
config.paymentOptionsToExclude = []
config.currencyCode = "NGN" // This is the specified currency to charge in.
config.country = "NG"
config.email = email // This is the email address of the customer
config.phoneNumber = phone //Phone number
config.firstName = firstName // This is the customers first name.
config.lastName = lastName //This is the customers last name.
config.transcationRef = "\(date)Ref" // This is a unique reference, unique to the particular transaction being carried out. It is generated when it is not provided by the merchant for every transaction.
config.meta = [["metaname":"sdk", "metavalue":"ios"]] //This is used to include additional payment information
config.narration = "simplifying payments for endless possibilities"
config.publicKey = "xxxx"
config.encryptionKey = "xxxx"
config.isPreAuth = false // This should be set to true for preauthoize card transactions
config.isStaging = true // Toggle this for staging and live environment
Used cards