Skip to content

React-native error shows up "Current user not allowed to use Simpl" #1

Description

@yasicmd

Current user not allowed to use Simpl

Showing this error when a user is not registered or verified in simpl.
Expected an error call back.

image 2018-07-16 19 35 00

//TO check either user is approved or not
              SimplSdk.isApproved(response.sdk_config.client_id, response.sdk_config.phone, response.sdk_config.email, false,/*To test in sandbox mode*/
                                        (result) => console.log("User approved: "+result),
                                        (approvalError) => console.log("User approval error: "+approvalError));
              
              //Authorise the transaction
              SimplSdk.authorizeTransaction(10000/*amount_in_paise*/,"abcd1234"/*order_id*/, (transactionToken) => console.log("Transaction Token: "+transactionToken),
                                            (authError) => console.log("Authentication error: "+authError));
              }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions