A Framework for calling TheTellerCheckout built on swift for IOS.
-
Add the the blug in to your project Right-click on the root of your project node in the project navigator. Click Add Files to “YOURPROJECTNAME”. In the file chooser, navigate to and select TheTellerCheckout.xcodeproj. Click Add to add TheTellerCheckout.xcodeproj as a sub-project.
- Click on the root of your project node in the project navigator
- Click the KnobShowcase target, and then go to the General tab.
- Scroll down to the Frameworks, Libraries, and Embedded Content section. Drag TheTellerCheckout.framework from the Products folder of TheTellerCheckout.xcodeproj onto this section.
Usage:
- import TheTellerCheckout
import TheTellerCheckout
- initiate checkout
let checkout = TheTellerCheckout( /* */ config: [ "merchantID":"YOUR MERCHANT ID", "API_Key_Prod" : "YOUR API PRODUCTION KEY", "API_Key_Test" : "YOUR API TEST KEY", "apiuser" : "YOUR API USER", "redirect_url" : "YOUR REDIRECT URL", "isProduction" :true /* if true "API_Key_Prod" will be used to initiate checkout, set it to false during test */ ]) checkout.initCheckout(transId:121212213257, amount: "000000000010", desc: "Test transaction",customerEmail: "someone@gmail.com",paymentMethod: "momo", paymentCurrency: "GHS", callback: callback)