Skip to content

Commit da9d56d

Browse files
committed
Bug fixes and performance improvements
1 parent 32594b4 commit da9d56d

30 files changed

+2411
-2416
lines changed

Example/FlutterwaveSDK/ViewController.swift

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,27 @@ class ViewController: UIViewController, FlutterwavePayProtocol {
3232

3333

3434
@objc func showExample(){
35-
let config = FlutterwaveConfig.sharedConfig()
36-
37-
config.paymentOptionsToExclude = []
38-
config.currencyCode = "GHS" // This is the specified currency to charge in.
39-
config.email = "[email protected]" // This is the email address of the customer
40-
config.isStaging = true// Toggle this for staging and live environment
41-
config.phoneNumber = "07065362811" //Phone number
42-
config.transcationRef = "IOS-TEST" // 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.
43-
config.firstName = "Yemi" // This is the customers first name.
44-
config.lastName = "Desola" //This is the customers last name.
45-
config.meta = [["metaname":"sdk", "metavalue":"ios"]] //This is used to include additional payment information
46-
config.narration = "simplifying payments for endless possibilities"
47-
config.publicKey = "FLWPUBK_TEST-e200501701baf219714fbaf0a009e9cd-X" //Public key
48-
config.encryptionKey = "FLWSECK_TEST56c678ea63fa" //Encryption key
49-
// config.publicKey = "FLWPUBK-aa4cd0b443404147d2d8229a37694b00-X" //Public key
50-
// config.encryptionKey = "c9a8f6a1a8bd45f850351621" //Encryption key
51-
config.isPreAuth = true // This should be set to true for preauthoize card transactions
52-
let controller = FlutterwavePayViewController()
53-
let nav = UINavigationController(rootViewController: controller)
54-
controller.amount = "100" // This is the amount to be charged.
55-
controller.delegate = self
56-
self.present(nav, animated: true)
57-
}
35+
let config = FlutterwaveConfig.sharedConfig()
36+
config.paymentOptionsToExclude = []
37+
config.currencyCode = "NGN" // This is the specified currency to charge in.
38+
config.email = "[USER'S EMAIL]" // This is the email address of the customer
39+
config.isStaging = true // Toggle this for staging and live environment
40+
config.phoneNumber = "[USER'S PHONE_NUMBER]" //Phone number
41+
config.transcationRef = "[TRANSACTION 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.
42+
config.firstName = "[USER'S FIRST NAME]" // This is the customers first name.
43+
config.lastName = "[USER'S SECOND NAME]" //This is the customers last name.
44+
config.meta = [["metaname":"sdk", "metavalue":"ios"]] //This is used to include additional payment information
45+
config.narration = "simplifying payments for endless possibilities"
46+
config.publicKey = "[PUB_KEY]" //Public key
47+
config.encryptionKey = "[ENCRYPTION_KEY]" //Encryption key
48+
config.isPreAuth = false // This should be set to true for preauthoize card transactions
49+
let controller = FlutterwavePayViewController()
50+
let nav = UINavigationController(rootViewController: controller)
51+
controller.amount = "[AMOUNT]" // This is the amount to be charged.
52+
controller.delegate = self
53+
self.present(nav, animated: true)
54+
55+
}
5856

5957

6058

Example/Podfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ target 'FlutterwaveSDK_Example' do
55

66
target 'FlutterwaveSDK_Tests' do
77
inherit! :search_paths
8-
9-
8+
109
end
1110
end

Example/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@ SPEC CHECKSUMS:
8989
Swinject: ddf78b8486dd9b71a667b852cad919ab4484478e
9090
SwinjectAutoregistration: 330f5012642a8b5c89a8a4adb0c5e52df07382c0
9191

92-
PODFILE CHECKSUM: d8e7ca9e6e56d8a6d3866726fb702f20997be609
92+
PODFILE CHECKSUM: e7a32a1f0b144636285016aee49258a32ce7b387
9393

94-
COCOAPODS: 1.9.3
94+
COCOAPODS: 1.10.1

Example/Pods/Manifest.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Pods.xcodeproj/project.pbxproj

Lines changed: 2301 additions & 2329 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/FlutterwaveSDK/FlutterwaveSDK.debug.xcconfig

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/FlutterwaveSDK/FlutterwaveSDK.release.xcconfig

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/IQKeyboardManagerSwift/IQKeyboardManagerSwift.debug.xcconfig

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/IQKeyboardManagerSwift/IQKeyboardManagerSwift.release.xcconfig

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/MDFInternationalization/MDFInternationalization.debug.xcconfig

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/MDFInternationalization/MDFInternationalization.release.xcconfig

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/MaterialComponents/MaterialComponents.debug.xcconfig

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/MaterialComponents/MaterialComponents.release.xcconfig

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/Pods-FlutterwaveSDK_Example/Pods-FlutterwaveSDK_Example-frameworks.sh

Lines changed: 36 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/Pods-FlutterwaveSDK_Example/Pods-FlutterwaveSDK_Example.debug.xcconfig

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)