mohammeddawida / moyasar_payment

Flutter library for Moyasar. Supports Apple Pay, STC Pay and Credit Card.
https://pub.dev/packages/moyasar_payment
MIT License
13 stars 7 forks source link

flutter : invalid_request_error #10

Open utrodus opened 1 year ago

utrodus commented 1 year ago

What did these messages mean? flutter: invalid_request_error

mohammeddawida commented 1 year ago

@utrodus Show the message that appears with the type of error example: { "type" : "invalid_request_error", "message" : "Validation Failed", "errors" : { "amount" : ["must be an integer"] } }

AhmedLSayed9 commented 1 year ago

@utrodus If you got empty 'error', it's most likely you provided wrong card info. i.e: cardNumber length is not correct or expYear is less than 23

noufolaiyan9 commented 1 year ago

i have an error in the creditCard method in : ( cvv: 'cvv', expiryManth: 'expiryDate_manth', expiryYear: 'expiryDate_yar', )

thats a string cannot be assigned to int how can i fix it ?

mohammeddawida commented 1 year ago

@noufolaiyan9 I will fix it and upload it

noufolaiyan9 commented 1 year ago

@noufolaiyan9 I will fix it and upload it

thank you.

mohammeddawida commented 1 year ago

@noufolaiyan9 Are you passing the values as string or a int ? For confirmation purposes only

noufolaiyan9 commented 1 year ago

i don't know i just copy the code and found the error

@noufolaiyan9 Are you passing the values as string or a int ? For confirmation purposes only