C SDK
Loading...
Searching...
No Matches
Data Structures | Typedefs
PaymentKit

Data Structures

struct  PleyPMKPrice
 
struct  PleyPMKProduct
 
struct  PleyPMKEntitlement
 
struct  PleyPaymentsKit
 

Typedefs

typedef struct PleyPMKPrice PleyPMKPrice
 
typedef struct PleyPMKProduct PleyPMKProduct
 
typedef struct PleyPMKEntitlement PleyPMKEntitlement
 
typedef void(* PleyPMKRequestPaymentCB) (PleyResult error, const char *entitlement_id, void *data)
 
typedef void(* PleyPMKGetProductsCB) (PleyResult result, const PleyPMKProduct *products, int32_t products_len, const PleyResult *results, int32_t results_len, void *data)
 
typedef void(* PleyPMKGetEntitlementsCB) (PleyResult result, const PleyPMKEntitlement *entitlements, int32_t entitlements_len, void *data)
 
typedef struct PleyPaymentsKit PleyPaymentsKit
 

Detailed Description


Data Structure Documentation

◆ PleyPMKPrice

struct PleyPMKPrice
Data Fields
int32_t amount_dividend
int32_t amount_divisor
char currency_iso_4217[3]

◆ PleyPMKProduct

struct PleyPMKProduct
Data Fields
const char * id
const char * name
PleyPMKPrice price

◆ PleyPMKEntitlement

struct PleyPMKEntitlement
Data Fields
const char * entitlement_id
const char * product_id

◆ PleyPaymentsKit

struct PleyPaymentsKit

Data Fields

void(* get_products )(const char **product_ids, int32_t product_ids_len, PleyPMKGetProductsCB callback, void *callback_data)
 
void(* request_payment )(const char *product_id, PleyPMKRequestPaymentCB callback, void *callback_data)
 
void(* get_entitlements )(PleyPMKGetEntitlementsCB callback, void *callback_data)
 

Field Documentation

◆ get_entitlements

void(* PleyPaymentsKit::get_entitlements) (PleyPMKGetEntitlementsCB callback, void *callback_data)

PleyPMKGetEntitlementsCB will return with entitlements set to NULL if no entitlements

◆ get_products

void(* PleyPaymentsKit::get_products) (const char **product_ids, int32_t product_ids_len, PleyPMKGetProductsCB callback, void *callback_data)
Parameters
resultNo specific error PleyPMKGetProductsCB results can contain the following errors: PLEY_RESULT_PMK_PRODUCT_NOT_FOUND

◆ request_payment

void(* PleyPaymentsKit::request_payment) (const char *product_id, PleyPMKRequestPaymentCB callback, void *callback_data)

Typedef Documentation

◆ PleyPaymentsKit

◆ PleyPMKEntitlement

◆ PleyPMKGetEntitlementsCB

typedef void(* PleyPMKGetEntitlementsCB) (PleyResult result, const PleyPMKEntitlement *entitlements, int32_t entitlements_len, void *data)

◆ PleyPMKGetProductsCB

typedef void(* PleyPMKGetProductsCB) (PleyResult result, const PleyPMKProduct *products, int32_t products_len, const PleyResult *results, int32_t results_len, void *data)

◆ PleyPMKPrice

typedef struct PleyPMKPrice PleyPMKPrice

◆ PleyPMKProduct

◆ PleyPMKRequestPaymentCB

typedef void(* PleyPMKRequestPaymentCB) (PleyResult error, const char *entitlement_id, void *data)