MSU Unipay HPP Integration
MSU Unipay HPP Integration
Section titled “MSU Unipay HPP Integration”AnyBiz SDK checkout uses the Hosted Payment Page (HPP) model.
Environment URLs (v1)
Section titled “Environment URLs (v1)”- API:
https://entegrasyon.asseco-see.com.tr/msu/api/v2 - HPP base:
https://entegrasyon.asseco-see.com.tr/chipcard/pay3d/
Core flow
Section titled “Core flow”- Create
SESSIONTOKENvia server-to-server POST. - Redirect browser to
HPP_BASE/{sessionToken}. - Receive browser return payload on RETURNURL.
- Receive merchant notification payload (MSU portal setting).
- Verify status with
QUERYTRANSACTION(authoritative). - Finalize seat hold to sold ticket only after verification.
- Redirect user to a friendly website result page.
Return URL strategy
Section titled “Return URL strategy”Use a fixed callback URL for MSU RETURNURL:
https://api.anybiz.rs/api/events/sdk/msu/return(production)
Then configure website redirect per organization via SDK settings:
SDK returnUrl(friendly page, for examplehttps://merchant-a.com/payment-result)
In short:
MSU Return URL-> backend callback endpoint (fixed API URL)SDK Return URL-> final user-facing destination after backend callback processing
Required request fields (SESSIONTOKEN)
Section titled “Required request fields (SESSIONTOKEN)”ACTION=SESSIONTOKENMERCHANTUSER,MERCHANTPASSWORD,MERCHANTCUSTOMER,SESSIONTYPE=PAYMENTSESSIONMERCHANTPAYMENTID(unique)AMOUNT,CURRENCY=RSDCUSTOMEREMAIL,CUSTOMERNAME,CUSTOMERPHONERETURNURLORDERITEMS(URL-encoded JSON)
Verification and integrity
Section titled “Verification and integrity”- Browser return is not authoritative by itself.
- Always call
QUERYTRANSACTIONusingPGTRANIDorMERCHANTPAYMENTID. - Validate
SD_SHA512where available:SHA512(merchantPaymentId|customerId|sessionToken|responseCode|randomKey|secretKey)
- AnyBiz callback handlers accept both camelCase and MSU uppercase payload keys
(for example
merchantPaymentId/MERCHANTPAYMENTID,pgTranId/PGTRANID). - Return callback is supported via
POSTandGETon/api/events/sdk/msu/returnfor provider compatibility. - Backend callback endpoint redirects user to configured SDK Return URL,
while preserving callback metadata (
msuAccepted,responseCode,responseMsg,merchantPaymentId).
Error handling
Section titled “Error handling”responseCode=00means action approved.responseCode=99means declined.- Use
errorCode(ERR1xxxx/ERR2xxxx) andresponseMsgfor diagnostics. - Keep checkout finalize idempotent for retrying callbacks.
Configuration
Section titled “Configuration”Configure merchant credentials and endpoint URLs in AnyBiz Settings -> MSU.
Keep MSU Return URL as fixed callback endpoint (.../api/events/sdk/msu/return) unless explicitly instructed otherwise by AnyBiz support.