Mobile Service > IAP > Android SDK [ ] IAP SDK TOAST SDK. IAP SDK. Android Studio IDE Android SDK Version (API Level 10). Name Reference V

Similar documents
Analytics > Log & Crash Search > Unity ios SDK [Deprecated] Log & Crash Unity ios SDK. TOAST SDK. Log & Crash Unity SDK Log & Crash Search. Log & Cras

( )부록

thesis

50_1953.pdf

Spring Boot

DocsPin_Korean.pages

신림프로그래머_클린코드.key

09-interface.key

PowerPoint 프레젠테이션

12-file.key

비긴쿡-자바 00앞부속

02 C h a p t e r Java

10주차.key

Secure Programming Lecture1 : Introduction

Multi Channel Analysis. Multi Channel Analytics :!! - (Ad network ) Report! -! -!. Valuepotion Multi Channel Analytics! (1) Install! (2) 3 (4 ~ 6 Page

ICT03_UX Guide DIP 1605

PowerPoint 프레젠테이션

rmi_박준용_final.PDF

DIY 챗봇 - LangCon

Interstage5 SOAP서비스 설정 가이드

Facebook API


03장

Spring Boot/JDBC JdbcTemplate/CRUD 예제

1

Portal_9iAS.ppt [읽기 전용]

TTA Journal No.157_서체변경.indd

I T C o t e n s P r o v i d e r h t t p : / / w w w. h a n b i t b o o k. c o. k r

API STORE 키발급및 API 사용가이드 Document Information 문서명 : API STORE 언어별 Client 사용가이드작성자 : 작성일 : 업무영역 : 버전 : 1 st Draft. 서브시스템 : 문서번호 : 단계 : Docum

2 Application Name: Day10_yhg <LinearLayout android:layout_weight="3" > /> an

AGENDA 모바일 산업의 환경변화 모바일 클라우드 서비스의 등장 모바일 클라우드 서비스 융합사례

JMF2_심빈구.PDF

[ 스프링부트, 그래들, HelloWorld]STS,Gradle 설치및 WEB MVC 심플예제 간단히 STS 및 Gradle Support Plugin 을설치하여간단히 Spring Boot, Gradle Web 응용프로그램을작성해보자. 0. STS 및 Gradle Su

11 템플릿적용 - Java Program Performance Tuning (김명호기술이사)

오핀 (OFIN) SDK Guide Fintech Mobile SDK Guide - Android V 1.0 OPPFLIB 1

13ÀåÃß°¡ºÐ

Google Maps Android API v2

PowerPoint 프레젠테이션

텀블러514

No Slide Title

1. SNS Topic 생성여기를클릭하여펼치기... Create Topic 실행 Topic Name, Display name 입력후 Create topic * Topic name : 특수문자는 hyphens( - ), underscores( _ ) 만허용한다. Topi

07 자바의 다양한 클래스.key

Connection 8 22 UniSQLConnection / / 9 3 UniSQL OID SET

학습목표 메뉴를추가하는방법을이해하고실습할수있다. 프로그램의기본설정 (settings) 을정의하는방법을알고실습할수있다. 대화상자를여는방법을알고실습할수있다. 로그메시지로디버깅하는방법을이해한다. 디버거로디버깅하는방법을이해한다.

02_3 지리산권 스마트폰 기반 3D 지도서비스_과업지시서.hwp

OpenCV와 함께하는 컴퓨터 비전 프로그래밍 캠프

Sena Technologies, Inc. HelloDevice Super 1.1.0

Egretia_White_Paper_KR_V1.1.pages

4. #include <stdio.h> #include <stdlib.h> int main() { functiona(); } void functiona() { printf("hihi\n"); } warning: conflicting types for functiona

T100MD+

untitled

C++-¿Ïº®Çؼ³10Àå

SKT UCC DRM

JMF3_심빈구.PDF

05-class.key

1부

Spring Data JPA Many To Many 양방향 관계 예제

Contents 1 소개 설치 및 사용방법 21 다운로드 22 라이브러리 등록 23 Android Menifest 정의 간단한 31 플레이어 생성 32 이벤트 리스너 정의 33 Surface 할당 3

무제-1


슬라이드 1

NATE CP 컨텐츠 개발규격서_V4.4_1.doc

어댑터뷰

nTOP CP 컨텐츠 개발규격서_V4.1_.doc

PowerPoint 프레젠테이션

SchoolNet튜토리얼.PDF

Apache Ivy

[ 그림 8-1] XML 을이용한옵션메뉴설정방법 <menu> <item 항목ID" android:title=" 항목제목 "/> </menu> public boolean oncreateoptionsmenu(menu menu) { getme

SKT SmartZoneCast Agent 개발자 적용가이드_180116

문서의 제목 나눔고딕B, 54pt


THE TITLE

JUNIT 실습및발표

JavaGeneralProgramming.PDF

C# Programming Guide - Types

<4D F736F F D205B4354BDC9C3FEB8AEC6F7C6AE5D3131C8A35FC5ACB6F3BFECB5E520C4C4C7BBC6C320B1E2BCFA20B5BFC7E2>

13주-14주proc.PDF

슬라이드 1

fundamentalOfCommandPattern_calmglow_pattern_jstorm_1.0_f…

시작하며 스마트기기의 급속한 보급 확대와 더불어 세계 모바일게임 시장의 비약적 성장이 진행됨에 따라, 아시아 지역은 물론 콘솔게임의 주요시장인 미국까지 모바일게임 중심으로 시장이 빠르게 재편되고 있다. 시장조사업체 뉴주(Newzoo, )는 2015년 세계

untitled

서현수

OMA Bcast Service Guide ATSC 3.0 (S33-2) T-UHDTV 송수신정합 Part.1 Mobile Broadcast (Open Mobile Alliance) 기반 Data Model ATSC 3.0 을위한확장 - icon, Channel No.

ilist.add(new Integer(1))과 같이 사용하지 않고 ilist.add(1)과 같이 사용한 것은 자바 5.0에 추가된 기본 자료형과 해당 객체 자료 형과의 오토박싱/언박싱 기능을 사용한 것으로 오토박싱이란 자바 컴파일러가 객체를 요구하는 곳에 기본 자료형

HTML5* Web Development to the next level HTML5 ~= HTML + CSS + JS API

Todo list Universal app

untitled

PowerPoint 프레젠테이션

슬라이드 1

Week13

ch09

REMON Android SDK GUIDE (SDK Version 1.4.1) 1 / 25

INAPP결제 API 가이드

IP IP ICT

Chap12

example code are examined in this stage The low pressure pressurizer reactor trip module of the Plant Protection System was programmed as subject for

final_thesis

FileMaker ODBC and JDBC Guide

PowerPoint Presentation

Transcription:

Mobile Service > IAP > Android SDK IAP SDK TOAST SDK. IAP SDK. Android Studio IDE 2.3.3 Android SDK Version 2.3.3 (API Level 10). Name Reference Version License okhttp http://square.github.io/okhttp/ 1.5.4 Apache License 2.0 gson https://code.google.com/p/google-gson/ 2.2.4 Apache License 2.0 Android Studio & Gradle Toast IAP SDK Gradle Android Studio IDE. jcenter Maven Repository Remote. build.gradle repository dependency. 1. Gradle Repository buildscript repositories jcenter() Toast IAP SDK. Permission android.permission.internet com.android.vending.billing Description.. 2.

Google Play Store dependencies implementation 'com.toast.iap:iap:1.5.0' SDK v17 (API v5) - dependencies implementation 'com.toast.iap:iap-onestore:1.5.0'. Permission android.permission.access_network_state Description. SDK v16 (API v4) dependencies implementation 'com.toast.iap:iap-tstore:1.5.0' Release History SDK Version RELEASE-NOTES.md. One Store 2018 6 12 ( ) SDK v16 (API v4). SDK v17 (API v5). SDK v15.xx.xx IAP SDK 1. SDK v17 (API v5) One Store SDK INAPP_ONESTORE_NEED_UPDATE(201).

Intent intent = new Intent("android.intent.action.VIEW"); intent.setdata(uri.parse("http://m.onestore.co.kr/mobilepoc/etc/downloadguide. omp")); startactivity(intent); One Store Toast IAP SDK. OneStore ( / ). OneStore INAPP_ONESTORE_NEED_LOGIN(202). One Store AndroidMenifest.xml. <application> <meta-data android:name="iap:view_option" android:value="popup full" /> </application> OneStore - > 7. Android Manifest 2. SDK v16 (API v4) AndroidMenifest.xml. <application> <meta-data android:name="iap:plugin_mode" android:value="development" /> </application> IAP Android SDK Google Play Store, One Store. IAP Android SDK.. 1. Import Project

SDK /sample Android Studio Import Project. 2. AndroidManifest.xml IAP Web Console Store APP ID applicationid. android defaultconfig applicationid "your app id" applicationid (Google Play Store, One Store). API Reference 1.. public void setdebugmode(boolean isdebuggable); Boolean isdebuggable InAppPurchases.InAppPurchase.setDebugMode(true); 2. ( ) SDK ( ). [ ]

MarketId GG TS Store Google Play Store One Store SDK V16 (API V4) - TStore ONESTORE One Store SDK V17 (API V5) public boolean registermarketid(string marketid); String marketid AndroidMenifest.xml : <meta-data android:name="com.toast.iap.config.market" android:value="gg" /> Java : InAppPurchases.InAppPurchase.registerMarketId(marketId); // marketid : String value 3. App ID IAP Android SDK ID. App ID TOAST Console > Mobile Service > IAP. public boolean registerappid(long appid); Long appid TOAST IAP Service App ID

AndroidMenifest.xml : <meta-data android:name="com.toast.iap.config.appid" android:value="1234567" /> Java : InAppPurchases.InAppPurchase.registerAppId(1234567);// appid : long integer 4. ID.,. public boolean registeruserid(string userid); String userid InAppPurchases.InAppPurchase.registerUserId(userId); // userid : String value 5.. PurchaseCallback. 9.. 2. IAP public void requestpurchase(activity activity, long itemid, PurchaseCallback callback);

Activity activty Long itemid Web Console PurchaseCallback callback API InAppPurchases.InAppPurchase.requestPurchase(this, 1000001, new PurchaseCallback() ); @Override public void oncallback(jsonobject result, InAppPurchaseException exception) if (!result.issuccess()) // An error occurred, we need to handle the error return; // Success! Include your code to handle the results here [Response Example] "paymentseq": "2014082210002092", "purchasetoken": "5PYSHgisiCU8BditHnDbPhmlS/0DSt4JDs2UMyg1/EY8oC6Q8qkuw5VBo7GNrBYLNUy656GCAh7h9e1 BtXeoBA==", "itemseq": 1000001, "currency": "KRW", "price": 1000.0 6. (Consume). public void querypurchases(activity activity, PurchaseListCallback callback);

Activity activty PurchaseCallback callback API InAppPurchases.InAppPurchase.queryPurchases(this, new PurchaseListCallback() ); @Override public void oncallback(jsonarray result, InAppPurchaseException exception) if (!result.issuccess()) // An error occurred, we need to handle the error return; // Success! Include your code to handle the results here [Response Example] [ "paymentseq": "2014082210002092", "purchasetoken": "5PYSHgisiCU8BditHnDbPhmlS/0DSt4JDs2UMyg1/EY8oC6Q8qkuw5VBo7GNrBYLNUy656GCAh7h9e1 BtXeoBA==", "itemseq": 1000208, "currency": "KRW", "price": 1000.0, "paymentseq": "2014082210002093", "purchasetoken": "Q+os4dDsYaGiEEqkLeXQfhmlS/0DSt4JDs2UMyg1/EY8oC6Q8qkuw5VBo7GNrBYLNUy656GCAh7h9e1 BtXeoBA==", "itemseq": 1000208, "currency": "KRW", "price": 1000.0, "paymentseq": "2014082210002094", "purchasetoken": "GMBcODtMnX306wVlFGIcDRmlS/0DSt4JDs2UMyg1/EY8oC6Q8qkuw5VBo7GNrBYLNUy656GCAh7h9e1 BtXeoBA==", "itemseq": 1000208, "currency": "KRW", "price": 1000.0 ]

7.. public void queryitems(activity activity, PurchaseListCallback callback); Activity activty PurchaseCallback callback API InAppPurchases.InAppPurchase.queryItems(activity, new InAppPurchase.ItemListCallback() @Override public void oncallback(jsonarray result, InAppPurchaseException exception) if (exception!= null) // An error occurred, we need to handle the error return; // Success! Include your code to handle the results here ); [Response Example] [, "itemseq" : 1000208, "itemname" : "Test item 01", "marketitemid": "item01", "price": 1000, "currency": "KRW", "localizedprice":" 1,000" "itemseq" : 1000209, "itemname" : "Test item 02", "marketitemid": "item02", "price": 7.99, "currency": "USD", "localizedprice":"$7.99"

] 8. (IAP ). public void processesincompletepurchases(activity activity, IncompletePurchasesCallback callback); Activity activty IncompletePurchasesCallback callback API InAppPurchases.InAppPurchase.processesIncompletePurchases(activity, new InAppPurchase.IncompletePurchasesCallback() ); @Override public void oncallback(jsonobject result, InAppPurchaseException exception) if (exception!= null) // An error occurred, we need to handle the error return; // Success! Include your code to handle the results here [Response Example] "successlist": [ "paymentseq" : "2014082510002163", "purchasetoken" : "8nkx3SzHKlI74vmgQLzHExmlS/0DSt4JDs2UMyg1/EY8oC6Q8qkuw5VBo7GNrBYLNUy656GCAh7h9 e1btxeob-ab", "itemseq" : 1000208, "marketitemid" : "item01", "currency" : "KRW",

"price" : 1000.0, "paymentseq" : "2014082510002164", "purchasetoken" : "8nkx3SzATKlI74vmgQLzHExmlS/0DSt4JDs2UMyg1/EY8oC6Q8qkuw5VBo7GNrBYLNUy656GCAh7h 9e1BtXeoBaAC", "itemseq" : 1000209, "marketitemid" : "item02", "currency" : "KRW", "price" : 1000.0 ], "faillist": [ "paymentseq" : "2014082510002165", "purchasetoken" : null, "itemseq" : 1000210, "marketitemid" : "item03", "currency" : "KRW", "price" : 1000.0 ] 9. IAP. API. Payment Consume API 1. InAppPurchaseException API. InAppPurchaseException null. Method Name Return type Description geterrorcode Integer. getmessage String.

InAppPurchases.InAppPurchase.queryItems(activity, new InAppPurchase.ItemListCallback() @Override public void oncallback(jsonarray result, InAppPurchaseException exception) if (exception!= null) int errorcode = exception.geterrorcode(); String errormessage = exception.getmessage(); // TODO :.... return; // Success! Include your code to handle the results here );