Releases: MrVeit/Veittech-UnigramPayment
Releases · MrVeit/Veittech-UnigramPayment
UNIGRAM PAYMENT 1.0.8
UNIGRAM PAYMENT 1.0.7
NEW FEATURES:
- Added function
PayInvoice(SaleableItem item)to create invoice link and instantly open payment window, - Added function
FetchTimeTick()to get current server time tick (in UTC time zone), - Added
ErrorTypesenumeration, through which you can get the specific error that caused the failure of creation of invoice/payment/refund, - Added
OnPurchaseHistoryLoadFailedandOnRefundHistoryLoadFailedevents to get the result of a failed attempt to load transaction history, - Added additional events for the
create/pay/refundinvoice functionality with a specific reason for failed execution.
REFACTORING
- Set an
automatic delayof 15 seconds, if it was not specified in SDK settings, to avoid spam requests to Telegram Bot API, - Improved detection of the current Telegram platform, based on the presence of initData about the account.
BUG FIXES:
- Fixed a bug related to incorrectly calculating the current number of failed requests for a successful payment check.
UNIGRAM PAYMENT 1.0.5
NEW FEATURES:
- Added additional error handling to prevent shopping logic from executing
when authorization failson the backend
BUG FIXES:
- Fixed a bug related to the inability to
get the current payment/cancellationstatus of an invoice on Unity 2023 and above.
UNIGRAM PAYMENT 1.0.4
NEW FEATURES:
- Added support for version
Unity 2023 and higherwhen processing data via native API.
BUG FIXES:
- Fixed a bug that could unsuccessfully download telegram user data
from init date, when there was no data in some profile fields.
UNIGRAM PAYMENT 1.0.3
NEW FEATURES:
- Added editor option
Receive Payment Check Delayto add a delay when a payment check request is sent, - Added editor option
Resend Attempts Amountto send repeat requests when last attempt failed (used only for receiving payment checks, number of methods from SDK will be increased in the future).
BUG FIXES:
- Fixed a rare bug related to the Target transaction not found error on the backend, where when buying items in bulk the user had stars deducted from their balance, but the payment check could not be successfully processed on the game client because the backend sometimes could not receive it in time.
UNIGRAM PAYMENT 1.0.2
NEW FEATURES:
- Added the ability to query the history of successful purchases via
GetPurchaseHistory(int amount, int totalPass)and purchase refundsGetRefundHistory(int amount, int totalPass)with the number of records and skips in between, - Added
IsInitializedflag for easy tracking of initialization status if automatic SDK initialization in Awake is active. - [Backend] Added temporary storage of transactions to load them correctly from the game client after the user has successfully paid for the item.
REFACTORING:
- Added additional parameter
itemIdwhen calling methodvoid OpenInvoice(string invoiceUrl, string itemId)to correctly receive a payment check from the server.
BUG FIXES:
- Fixed a critical bug that prevented multiple item sets from being purchased in bulk, as it would overwrite the actual payment receipt on the server,
- Fixed a critical bug that prevented the game client from receiving a successful purchase status from the server when buying sets from multiple players at the same time.
IMPORTANT:
To use this version, you need to update the backend service on your server as well, so that requests from the client will work correctly.
UNIGRAM PAYMENT 1.0.1
NEW FEATURES:
- Added extra argument
string itemPayloadIdwhen OnInvoiceLinkCreated event is triggered. - Added extra argument
string itemPayloadIdwhen OnInvoiceLinkCreateFailed event is triggered. - Added extra argument
SaleableItem failedPurchaseItemwhen OnItemPurchaseFailed event is triggered. - Added extra argument
string transactionIdwhen OnRefundTransactionFinished event is triggered.
BUG FIXES:
- Fixed a bug that caused duplicate invocation of the
OnRefundTransactionFinishedevent when a customer purchased more than once in a short period of time.
UNIGRAM PAYMENT 1.0.0
NEW FEATURES:
- Added
CreateInvoice(SaleableItem item)function for paying for items via Telegram Stars, - Added
Refund(PaymentReceiptData receipt)function, to revoke a previously processed transaction, - Added
RefreshToken()function that updates the API Server access token for continuous interaction with the payment module, - Added the option to receive payment receipts with buyer ID and transaction ID for refunds if needed.
BUG FIXES:
- Fixed a bug that prevented the connection configuration to the API server from being created correctly.