Steam을 통한 페이먼트 솔루션
알림
Steam과 직접 계약을 맺은 경우 이 방법을 따릅니다. 엑솔라 결제 UI(결제 스테이션) 내 다른 결제 방법은 Steam을 통해 사용자 인증을 구현하였더라도 추가 구성 없이 작동합니다.
플레이어가 Steam을 통한 인게임 구매를 위해 지불하는 경우 엑솔라는 결제 게이트웨이의 역할을 할 수 있습니다. 이러한 경우에, Steam SDK를 통합할 필요가 없으며 인게임 스토어 설정 시 Steam을 통한 결제의 미묘한 차이를 고려할 필요도 없습니다.
Steam을 통한 결제 설정 방법:
- 엑솔라와 추가 계약을 체결합니다.
참고
엑솔라는 Steam을 통해 결제할 때 감소된 수익 분배를 받습니다. 고객 성공 매니저에게 세부정보를 확인하세요.
- 관리자 페이지에서 Steam 게이트웨이를 설정합니다.
- Steam을 통해 기본 인증을 설정합니다.
- SDK 메서드를 사용하여 아이템 구매 논리를 구현합니다.
- 애플리케이션에서 구매 로직을 구현할 경우
SteamUtils.GetAdditionalCustomHeaders메서드를 호출하여 추가 요청 헤더를 구해야 합니다. SDK 메서드를 호출하여 구매(예:Purchase)하거나 주문 생성(예:PurchaseItem)하는 경우 수신한 헤더를customHeaders매개 변수에 전달해야 합니다. - Steam 오버레이에서 결제 UI를 열려면(선택 사항),
Purchase메서드 호출 시UseSteamOverlayForDesktop = true매개 변수를 포함한PlatformSpecificAppearance개체를 전달하십시오.
Steam을 통한 아이템 구매용 스크립트의 예시:
Copy
- C#
1using UnityEngine;
2using Xsolla.Catalog;
3using Xsolla.Core;
4
5namespace Xsolla.Samples.Steam
6{
7 public class SellViaSteamGateway : MonoBehaviour
8 {
9 // Function for starting the purchase process via Steam Gateway
10 public void PurchaseItem(string itemSku)
11 {
12 // Get additional headers for the request from `SteamUtils` class
13 var additionalHeaders = SteamUtils.GetAdditionalCustomHeaders();
14 // Create `PlatformSpecificAppearance` object and set up `UseSteamOverlayForDesktop`
15 var appearance = new PlatformSpecificAppearance {
16 UseSteamOverlayForDesktop = true
17 };
18 // Starting the purchase process
19 // Pass the `itemSku` parameter and callback functions for success and error cases
20 // Pass `additionalHeaders` variable as the optional `customHeaders` parameter
21 // Pass `appearance` variable as the optional `platformSpecificAppearance` parameter
22 XsollaCatalog.Purchase(itemSku, OnPurchaseSuccess, OnError, customHeaders: additionalHeaders, platformSpecificAppearance: appearance);
23 }
24 private void OnPurchaseSuccess(OrderStatus status)
25 {
26 Debug.Log("Purchase successful");
27 // Add actions taken in case of success
28 }
29 private void OnError(Error error)
30 {
31 Debug.LogError($"Error: {error.errorMessage}");
32 // Add actions taken in case of error
33 }
34 }
35}
이 기사가 도움이 되었나요?
의견을 보내 주셔서 감사드립니다!
메시지를 검토한 후 사용자 경험 향상에 사용하겠습니다.유용한 링크
마지막 업데이트: 2026년 5월 19일오자 또는 기타 텍스트 오류를 찾으셨나요? 텍스트를 선택하고 컨트롤+엔터를 누르세요.