Skip to content

Commit 32594b4

Browse files
committed
Ghana Money
1 parent 4a1f63a commit 32594b4

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

Example/FlutterwaveSDK/ViewController.swift

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

3333

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

5960

6061
override func viewDidLoad() {

0 commit comments

Comments
 (0)