React Native ( Android ) fix call-back after complete and pay subscribe. 'react-native-billing'

Lukket Opslået 5 år siden Betalt ved levering
Lukket Betalt ved levering

Hello!

I have card in app with Subscribe ( Trial ) [login to view URL]

Purchases and logic are working. Its fine.

But i have mistake with 'iap-receipt-validator';

[login to view URL]

I need disable show card Subscribe after user activate trial or subscribe

Not working validate, but i have a logic

validateSubscribe = async (userData) => {

if ([login to view URL] === 'ios') {

const validateReceipt = iapReceiptValidator([login to view URL], !__DEV__);

try {

const validationData = await validateReceipt([login to view URL]);

[login to view URL]({validationData});

if (

validationData &&

validationData.latest_receipt_info &&

validationData.latest_receipt_info.expires_date &&

validationData.latest_receipt_info.is_trial_period

) {

const expires_date = new Date(parseInt(validationData.latest_receipt_info.expires_date));

const is_trial_period = validationData.latest_receipt_info.is_trial_period === 'true';

const today = new Date();

if (expires_date > today) {

if (!is_trial_period) {

[login to view URL]()

}

} else {

[login to view URL]()

}

}

} catch(err) {

[login to view URL]([login to view URL], [login to view URL], [login to view URL])

}

}

Only Russian developers please with React Native, billing validation exp.

Thanks!

Android JavaScript Mobile App Development

Projekt ID: #18173138

Om projektet

6 bud Remote projekt Aktiv 5 år siden

6 freelancere byder i gennemsnit $196 timen for dette job

helloStack

Hi There, Hit me a message and I’ll walk hand in hand with you until your reach the peak. Are you trying to level up and need that one push? Well, I am at your service, if you’re a company that: - Has a clear Flere

$155 USD in 3 dage
(10 bedømmelser)
3.7
TechGropse

Dear employer Thank you for posting this job. I am a certified React Native developer have experience of more than 8 years in software development. I have gone through your post carefully. I always introduce some Flere

$155 USD in 3 dage
(2 bedømmelser)
2.6
metalogic98

Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have Flere

$208 USD in 7 dage
(0 bedømmelser)
0.0
priezz

(I am Russian) I have 2+ years of React Native experience. The callback fix should be trivial, I've seen similar issues in Android with other modules

$250 USD på 1 dag
(0 bedømmelser)
0.0