Skip to content

PG payment

PG (Payment Gateway) payment is a feature that integrates with the systems of external payment service providers (PG providers) to offer various payment methods, such as credit cards, bank transfers, and virtual accounts. It reduces store fees and provides users with payment methods tailored to specific countries or platform environments.

The PG providers that Hive Axyl supports include PortOne, Xsolla, and MyCard. 'PG payment' supports single-item purchases and multi-item purchases of consumable products. It does not support subscription payments.

WebGL support

Store payment Add-ons are unavailable on WebGL, which supports only PG payment. Connect payment products to an App ID whose Environment is Web and whose Store is Direct distribution. For how to create an App ID and configure its environment and store, see Create an App ID.

Set the payment order request OS to OrderRequestOs.Webgl. Payment requests use a login session. Starting with Hive Axyl SDK 1.0.1, when a WebGL payment request receives a 401 response, the SDK automatically refreshes the token and retries the original request with the refreshed token. WebGL apps that use AuthTokenRefresh.Enable() must update to SDK 1.0.1 or later. For setup instructions, see Automatic access token refresh.

Check the payment flow

First, install and initialize the payment module, and then create a login session so that users can make payments. After that, the PG payment flow is as follows.

Order Step Actor Description
1 Set up the integration App client Configure the PG providers in the Hive Console, and check the payment module.
2 Get the product list App client Retrieve the PG product information registered in the Hive Axyl server and display it to users.
3 Purchase a product App client Create the payment page URL and proceed with the payment in an external browser.
4 Verify receipts App client, app server The app client retrieves undelivered orders and passes the receipts to the app server, and the app server verifies the receipts with the Hive Axyl Server API.
5 Deliver products App server, app client When receipt verification is complete, the app server delivers the product, and the app client finalizes the purchase and then records the delivery result.

Next steps

Set up the PG payment integration.