Repository navigation
1.1.0
1.1.0
### Use payment channels for invoice and bill payments:
1- Two parameters added to PishkhanSDK.onInquiryButtonClicked() function to show payment channels for invoice payment.
showPaymentChannelsFragment: Boolean,
extraInfoComponentDataModel: PishkhansdkExtraInfoComponentDataModel
Example:
PishkhanSDK.onInquiryButtonClicked(
inputModel = your_input,
product = your_product,
failureCallBack = {
},
handleResultCallback = {
// Cast the result here
},
showPaymentChannelsFragment = true, // set true to go to payment channels flow. if not set or false(default), payments are only with OnlinePayment channel
extraInfoComponentDataModel = PishkhansdkExtraInfoComponentDataModel( // set this parameter with your data to show in CNPGFragment, if set to null no extra info shows in CNPGFragment. If size of list is larger that 2 then, component would be expandable
extraInfoItems = listOf(
ExtraInfo(Key = "خدمت",Value = "پرداخت قبض خلافی"),
ExtraInfo(Key = "مبلغ", Value = "100,000 ریال")
)
)
)
2- BillsPaymentChannelsFragment added for bills payment.
Example:
start(
BillsPaymentChannelsFragment(
bills = bills, // list of bills for payment
service = product, // service name
callbackUrl = "", // set this for IPG
onBillsPaid = {
// handle after bills paid.
},
extraInfoComponentDataModel = PishkhansdkExtraInfoComponentDataModel( // set this parameter with your data to show in CNPGFragment, if set to null no extra info shows in CNPGFragment. If size of list is larger that 2 then, component would be expandable
extraInfoItems = listOf(
ExtraInfo(Key = "خدمت",Value = "پرداخت قبض خلافی"),
ExtraInfo(Key = "مبلغ", Value = amount.formatAmount()),
ExtraInfo(Key = "تعداد قبض", Value = bills.size.toString())
)
)
)
)