Skip to content

Commit baf70b1

Browse files
committed
Save Cards
1 parent 906c66e commit baf70b1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Example/FlutterwaveSDK/ViewController.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,32 +30,32 @@ class ViewController: UIViewController, FlutterwavePayProtocol {
3030
let launchButton = UIButton(type: .system)
3131

3232

33-
3433
@objc func showExample(){
34+
3535
let config = FlutterwaveConfig.sharedConfig()
36-
36+
3737
config.paymentOptionsToExclude = []
38-
config.currencyCode = "XAF" // This is the specified currency to charge in.
39-
config.email = "texy77@gmail.com" // This is the email address of the customer
40-
config.isStaging = false// Toggle this for staging and live environment
41-
config.phoneNumber = "07065362811" //Phone number
42-
config.transcationRef = "IOS-TESTT" // 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.
38+
config.currencyCode = "NGN" // This is the specified currency to charge in.
39+
config.email = "user@flw.com" // This is the email address of the customer
40+
config.isStaging = false // Toggle this for staging and live environment
41+
config.phoneNumber = "07067783334" //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.
4343
config.firstName = "Yemi" // This is the customers first name.
4444
config.lastName = "Desola" //This is the customers last name.
4545
config.meta = [["metaname":"sdk", "metavalue":"ios"]] //This is used to include additional payment information
4646
config.narration = "simplifying payments for endless possibilities"
47-
config.publicKey = "FLWPUBK-aa4cd0b443404147d2d8229a37694b00-X" //Public key
48-
config.encryptionKey = "c9a8f6a1a8bd45f850351621" //Encryption key
47+
config.publicKey = "[PUB_KEY]" //Public key
48+
config.encryptionKey = "[ENCRYPTION_KEY]" //Encryption key
4949
config.isPreAuth = false // This should be set to true for preauthoize card transactions
5050
let controller = FlutterwavePayViewController()
5151
let nav = UINavigationController(rootViewController: controller)
52-
controller.amount = "10" // This is the amount to be charged.
52+
controller.amount = "[Amount]" // This is the amount to be charged.
5353
controller.delegate = self
5454
self.present(nav, animated: true)
55+
5556
}
5657

5758

58-
5959
override func viewDidLoad() {
6060
super.viewDidLoad()
6161
setUpConstraintsAndProperties()

0 commit comments

Comments
 (0)