Skip to content
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

Finish Transaction iOS #2

Merged
merged 3 commits into from
Oct 26, 2023
Merged

Conversation

brettbatie
Copy link
Contributor

Adds the ability to call finishTransaction for an iOS transaction, addressing issue #1.

An example of using finish transaction is the following:

const chargeResult :any = await BillingPlugin.launchBillingFlow({product: 'basic_monthly_10', type: 'subscription'});

// Call the backend to verify the order

await BillingPlugin.finishTransaction({transactionId: chargeResult.storeKitTransactionID});

@carsten-klaffke
Copy link
Owner

Hey, thanks a lot for adding this. I tested your code and it looks all good! I wasn't aware of that "finish"-method. Looks cleaner now. 👍

@carsten-klaffke carsten-klaffke merged commit f6b5a90 into carsten-klaffke:master Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants