Anton-1408 / react-native-cloudpayments

MIT License
40 stars 11 forks source link

Card cryptogram Packet isn't returning on IOS #14

Open lykovrs opened 1 year ago

lykovrs commented 1 year ago

I have a permanent card (04/22). It is woking card without end date. When I try to make cryptogram on Android, I have a correct behavior, but for IOS it is incorrect.

import { Card } from 'react-native-cloudpayments-sdk'
...
 const cardCryptogramPacket = await Card.makeCardCryptogramPacket({
      cardNumber: String(data.cardNumber),
      expDate: data.expiryDate,
      cvv: data.cvv,
      merchantId: CLOUD_PAYMENTS_PUBLIC_ID,
 })

This promise is resolving correct for Android, but incorrect for IOS with the same card data For Android I have response with cryptogram For IOS I have undefined

Anton-1408 commented 1 year ago

@lykovrs Are you sure that all the data you send is valid? I tested this code and got results

Снимок экрана 2023-02-10 в 20 04 31
lykovrs commented 1 year ago

@Anton-1408 sorry for long time answer. Yes, I'm sure about data card and problem is reproducing with only prolonged cards. I mean cards with end of date 04/22. I suppose the cards prolongation chained with a war. Russian cards had been declare as eternal and kept works after end period on side of card. I have a problem with only this cards with IOS. This card works normal on Android. Cryptorgram has been generated. But for IOS I have undefined. One card data, one realisation - different result on Android and IOS. Other card (with correct data on the side of card) works fine. I tested 4 cards (2 prolonged cards and 2 usual card) and my tester reproduced similar situation.

Anton-1408 commented 1 year ago

I'll try to update the library, the problem is on the side of the native SDK

lykovrs commented 1 year ago

@Anton-1408 thank you! I will wait this update.