Comment on page
Payment Response Handling
Set and Implement our payment listener to receive payment results. Use the code below to obtain the payment result.
1
//Implementing
2
public class ActDemoPay extends AppCompatActivity implements FPayListener {
3
4
@Override
5
public void onTransactionSuccess(String transactionId, String responseCode) {
6
// Success Callback
7
}
8
9
@Override
10
public void onTransactionFailure(String error, String transactionId, String responseCode) {
11
// Failure Callback.
12
}
13
14
@Override
15
public void onTransactionCancelled(String responseCode) {
16
// Transaction Cancelled by User
17
}
18
19
}
You can enable / disable the SDK logs by using the line of code below. It will be disabled by default.
FoloosiLog.setLogVisible(true or false);
Name | Type | Required | Description |
---|---|---|---|
merchantKey | string | true | your foloosi merchant key |
secretKey | string | true | your foloosi secret key |
referenceToken | string | true | the reference token - generates automatically if null |
setOrderAmount | double | true | transaction amount |
setCurrencyCode | string | true | transaction currency |
setName | string | false | customer name - auto render in payment popup if passed |
setEmail | string | false | customer email - auto render in payment popup if passed |
setMobile | string | false | customer mobile - auto render in payment popup if passed |
setCustomerUniqueReference | string | false | It must be unique for the customer,Like customer unique id or email id., |
Foloosi Technologies Pvt Ltd.
Copyrights (c) 2022 Foloosi
Last modified 1yr ago