Skip to content

ERROR: [Skyflow] Interface: init - Invalid token is generated from getBearerToken callback #43

@toshunigam

Description

@toshunigam

Hi,
I am using this skyflow react package in my application and i am getting error of invalid token generated from getBearerToken when i click on collect submit button.

It was working earlier but from last 2 days it is started giving this error

image

const handleCollect = () => {
setIsWaiting(true)
const response = container.collect();
response.then((res) => {
let amount = JSON.parse(localStorage.getItem('amount'))
let cvv = JSON.parse(localStorage.getItem('cvv'))
let param = {
card_number:res.records[0].fields.card_number,
card_exp_month:res.records[0].fields.expiry_month,
card_exp_year:res.records[0].fields.expiry_year,
amount:amount.value,
card_cvc:cvv.value,
skyflowid:res.records[0].fields.skyflow_id,
card_holder:res.records[0].fields.cardholder_name
}
// console.log(param)
submitPaymentDetail(param) // This is my function which i am calling to store the tokenize value into my DB getting from skyflow
}).catch((e) => {
setIsWaiting(false)
console.log(e)
})
}

NOTE: I am using skyflow Quick Guide for this.

Please help me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions