#Hariharasuthan

1 messages · Page 1 of 1 (latest)

potent auroraBOT
real elk
#

Without the request ID, we are unable to identify which API are you using and the reason why it is not supported in India

celest mason
#

req_2Lt4moy9Gbm486

real elk
#

In addition, Charges API is legacy and it shouldn't be used

celest mason
#

Working perfect. Thanks a lot

#

But one more thing I need to add CVC in card payment. How can I add it ?

real elk
#

If you use above integration with Payment Element, CVC should have been collected. Doesn't CVC collection appear in your Payment Element?

celest mason
#

Yes it doesn't appeared in my payment element
This is my code, please check
Charge::create([
'amount' => 200,
'currency' => 'myr',
'source' => $token,
'description' => 'Payment Description',
'metadata' => [
'card_number' => $cardNumber
],
]);

real elk
potent auroraBOT
celest mason
#

Show this error "Payment failed: A token may not be passed in as a Source. You can convert your token into a Source using /v1/sources with card[token]=tok_1NOcGVAG4ZS35xcykBL47P27."

ripe moon
celest mason
#

req_WbcKjxc2XVAgT5

ripe moon
#

Yeah so you're using pretty outdated APIs (Tokens/Sources) in a payments flow. You should be using Payment Methods via the guide my colleague shared

#

As an Indian merchant that's really your only option

celest mason
#

I am Malaysian merchant please share the docs

ripe moon
celest mason
#

I need to add card CVC also, But in that documentation I can't find it. Please help me