Starting Nuclei SDK
Starting Nuclei SDK
If partner not using nuclei grid:
If the partner is using the Nuclei grid then the sdk can be accessed using the following code.
import CoreAdapter
do {
try CoreAdapterSetup.openExplore()
} catch let error {
print(error)
}
If partner using nuclei grid :
If partner is not using nuclei's grid and wanted to open the categories anywhere from the partner app, they can use the below functions for that particular category
Please import CoreAdapter before using these functions
import CoreAdapter
Recharge
do {
try CoreAdapterSetup.openRecharge()
} catch let error {
print(error)
}
DTH
do {
try CoreAdapterSetup.openDTH()
} catch let error {
print(error)
}
Datacard
do {
try CoreAdapterSetup.openDatacard()
} catch let error {
print(error)
}
Bill Payment
do {
try CoreAdapterSetup.openBillPayments()
} catch let error {
print(error)
}
Cab
do {
try CoreAdapterSetup.openCabs()
} catch let error {
print(error)
}
Flight
do {
try CoreAdapterSetup.openFlight()
} catch let error {
print(error)
}
Credit Score
do {
try CoreAdapterSetup.openCreditScore()
} catch let error {
print(error)
}
Gift Card
do {
try CoreAdapterSetup.openGiftCard()
} catch let error {
print(error)
}
Hotel
do {
try CoreAdapterSetup.openHotel()
} catch let error {
print(error)
}
Bus
do {
try CoreAdapterSetup.openBus()
} catch let error {
print(error)
}
Events
do {
try CoreAdapterSetup.openEvents()
} catch let error {
print(error)
}
Gold Subscription
do {
try CoreAdapterSetup.openGoldSubscription()
} catch let error {
print(error)
}
Donation
do {
try CoreAdapterSetup.openDonations()
} catch let error {
print(error)
}
Customer Support
do {
try CoreAdapterSetup.openCustomerSupport()
} catch let error {
print(error)
}
Synapse
do {
try CoreAdapterSetup.openSynapse(synapseActiveMerchantPayload: DeeplinkType.SynapseMerchantDeeplink.rawValue)
} catch let error {
print(error)
}
My Transaction
do {
try CoreAdapterSetup.openMyTransaction()
} catch let error {
print(error)
}
Explore
do {
try CoreAdapterSetup.openExplore()
} catch let error {
print(error)
}
Car Rental
do {
try CoreAdapterSetup.openCarRental()
} catch let error {
print(error)
}
Gaming Vouchers
do {
try CoreAdapterSetup.openGamingVouchers()
} catch let error {
print(error)
}