Skip to content

Commit

Permalink
Example
Browse files Browse the repository at this point in the history
  • Loading branch information
OsamaRabie committed Jan 4, 2024
1 parent a7c23d0 commit ce8cfa6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ internal class ExampleViewController: BaseViewController {
session.dataSource = self
session.delegate = self
payButton?.dataSource = self
let topup:Topup = try! .init(walletID: "wallet_xx", reference: .init(transactionNumber: "trx_xx", orderNumber: "ord_xx"), application: .init(amount: 1, currency: .init(isoCode: "KWD")), metdata: ["key":"value"], post: .init(url: URL(string: "https://www.post.com")!))
let encoder = JSONEncoder()
encoder.outputFormatting = .prettyPrinted
let data = try! encoder.encode(topup)
let output:String = String(data: data, encoding: .utf8)!
print(output)
//session.appearance = self

}
Expand Down

0 comments on commit ce8cfa6

Please sign in to comment.