Skip to content

Commit

Permalink
Merge pull request #1859 from numbersprotocol/hotfix-undo-truncate-ap…
Browse files Browse the repository at this point in the history
…p-purchase-receipt-try-2

Hotfix undo truncate app purchase receipt try 2
  • Loading branch information
bafu authored Jul 27, 2022
2 parents 031b130 + 7407a5d commit b7cb9b1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.60.3 - 2022-07-27

### Fixed

- Undo app store, play store receipt truncate

## 0.60.2 - 2022-07-07

### Changed
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "io.numbersprotocol.capturelite"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 422
versionName "0.60.2"
versionCode 423
versionName "0.60.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildFeatures {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "capture-lite",
"version": "0.60.2",
"version": "0.60.3",
"author": "numbersprotocol",
"homepage": "https://numbersprotocol.io/",
"scripts": {
Expand Down
3 changes: 1 addition & 2 deletions src/app/shared/dia-backend/num/dia-backend-num.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { defer } from 'rxjs';
import { concatMap } from 'rxjs/operators';
import { truncateReceipt } from '../../../utils/in-app-purchase';
import { DiaBackendAuthService } from '../auth/dia-backend-auth.service';
import { BASE_URL, BUBBLE_API_URL } from '../secret';

Expand All @@ -20,7 +19,7 @@ export class DiaBackendNumService {
concatMap(headers => {
const formData = new FormData();
formData.set('points', pointsToAdd.toString());
formData.set('receipt_id', truncateReceipt(receiptId));
formData.set('receipt_id', receiptId);
return this.httpClient.post<DiaBackendNumPointPurchaseResult>(
`${BASE_URL}/api/v3/num/points/purchase/`,
formData,
Expand Down

0 comments on commit b7cb9b1

Please sign in to comment.