You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Example/FlutterwaveSDK/ViewController.swift
+24-23Lines changed: 24 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -32,29 +32,30 @@ class ViewController: UIViewController, FlutterwavePayProtocol {
32
32
33
33
34
34
@objcfunc showExample(){
35
-
36
-
letconfig=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"
controller.amount ="[Amount]" // This is the amount to be charged.
54
-
controller.delegate =self
55
-
self.present(nav, animated:true)
56
-
57
-
}
35
+
letconfig=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"
0 commit comments