Skip to content

Commit 1d42e93

Browse files
committed
Fixed test url for validate ios receipt.
1 parent 71f36ec commit 1d42e93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export const consumePurchase = (token) => Platform.select({
145145
*/
146146
export const validateReceiptIos = async (receiptBody, isTest, RNVersion) => {
147147
if (Platform.OS === 'ios') {
148-
const URL = !isTest ? 'https://sandbox.itunes.apple.com/verifyReceipt' : 'https://buy.itunes.apple.com/verifyReceipt';
148+
const URL = isTest ? 'https://sandbox.itunes.apple.com/verifyReceipt' : 'https://buy.itunes.apple.com/verifyReceipt';
149149
try {
150150
let res = await fetch(URL, {
151151
method: 'POST',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-iap",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"description": "React Native In App Purchase Module.",
55
"main": "index.js",
66
"types": "index.d.ts",

0 commit comments

Comments
 (0)