캐쉬 구매 서버 인증용 키를 생성

Namespace: Matrix.Component
Assembly: MatrixGames (in MatrixGames.dll)

void GetBuyingKey( 
string gemType
Callback<GetBuyingKeyResponse> cb 
)
This language is not supported or no code example is available.

Parameters

gemType

Type: string

충전할 gem의 앱스토어상의 product ID

cb

Type: Callback<GetBuyingKeyResponse>

Callback function

Return Value

  • On Successful -

    cb.result: 0.

    cb.cause: "OK"

    cb.response: Response Data GetBuyingKeyResponse

  • On Error -

    cb.result: 0가 아닌 integer 값

    cb.cause: 상세 에러 메세지

google play 캐쉬 구매시 서버 인증용 키를 생성

google play의 경우, 캐쉬 구매전에 인증을 위해서unique한 인증용 key를 받아온다.

	
  using UnityEngine;
  using System;
  using System.Collections;
  using System.Collections.Generic;
  using Matrix;
 
  static void onPaymentGetBuyingKeyTest(Matrix.CallbackInfo<Matrix.Domain.Payment.GetBuyingKeyResponse> info)
  {
      Debug.Log("onPaymentGetBuyingKeyTest Called");
      Debug.Log("result: " + info.result);
 
      if (info.result == 0)
      {
          Debug.Log("gemType : " + info.response.gemType);
          Debug.Log("gemKey : " + info.response.gemKey);
      }
  }
 
  static void PaymentGetBuyingKeyTest()
  {
      IMatrix API = MatrixManager.Instance;
      Debug.Log("[PaymentGetBuyingKeyTest]");
 
      API.Payment.GetBuyingKey("com.mbridge.matrix.korea.cash4", onPaymentGetBuyingKeyTest);
  }
 					

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0

XNA Framework

Supported in: 3.0, 2.0, 1.0