New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{"code": "E_DEVELOPER_ERROR", "debugMessage": "Server error, please try again.", "message": "Google is indicating that we have some issue connecting to payment.", "responseCode": 5} #2492
Comments
Same here. Did you figure out something? |
@rafaelbpa No, You have any idea about that? |
@MuneebQureshi1 No. The weird part is the subscription apparently is working. But the error still happens. Kinda annoying and scare to test in production. |
@rafaelbpa but i am still getting this error. |
@rafaelbpa @MuneebQureshi1 I also faced the same issue, I figured out that I was sending the offerToken manually which was the correct token but still showed this error so what I did was pass the Token that I received from the getSubscriptions function getSubscriptions({ skus: ["testpro123"] }) please make sure you are calling the "initConnection" method before calling all these methods |
@suyogyadavindexnine Thank you for your help! Your support has been truly valuable. |
Hello, can you help me with my codes? I am keep getting import React, { useEffect, useState } from "react";
import {
acknowledgePurchaseAndroid,
isIosStorekit2,
PurchaseError,
requestSubscription,
useIAP,
} from "react-native-iap";
import { Button, Text, TouchableHighlight, View } from "react-native";
export const Subscription = () => {
const { purchase, loading, error } = useIAP();
const [products, setProducts] = useState([]);
const {
connected,
subscriptions,
getSubscriptions,
currentPurchase,
finishTransaction,
} = useIAP();
getSubscriptions({ skus: ["7days", "30days"] });
const subscribe = async (subscription) => {
const productId = subscription.productId;
const offerToken = subscription.subscriptionOfferDetails[0].offerToken;
try {
const result = await requestSubscription(
{
sku: productId,
...(offerToken && {
subscriptionOffers: [{sku: productId, offerToken}],
}),
}
);
if (result instanceof PurchaseError) {
console.log("Error", result);
}else{
const finishResult = await finishTransaction({
purchase: result[0], isConsumable: true, developerPayloadAndroid: result[0].developerPayloadAndroid
});
console.log(finishResult);
}
}catch (error) {
console.log(error);
}
};
return (
<View style={{ flex: 1, alignItems: "center", justifyContent: "center" }}>
{subscriptions && subscriptions.map((subscription) => (
<View>
<TouchableHighlight onPress={() => {
subscribe(subscription);
}}>
<Text style={{ color: "black", margin: 10 }}>{subscription.name}</Text>
</TouchableHighlight>
</View>
))}
</View>
);
}; |
In the case of subscription, the Here is the relevant snippet of the
|
i am getting this error while calling resquestSubscription function in android in IOS its working fine.
please help me if any one sorted this issue.
Thank you
The text was updated successfully, but these errors were encountered: