Inherits from NSObject
Declared in PMPaymentParams.h
PMPaymentParams.m

Overview

Object representing the parameters needed to create new Transactions and Preauthorizations. Never extend this interface yourself, instead use the static methods in PMFactory.

Tasks

Other Methods

Other Methods

  •   currency

    Three character ISO 4217 formatted currency code.

    property
  •   amount

    amount (in cents) which will be charged

    property
  •   description

    a short description for the transaction (e.g. shopping cart ID) or empty string or null.

    property

Properties

amount

amount (in cents) which will be charged

@property (nonatomic) int amount

Discussion

amount (in cents) which will be charged

Declared In

PMPaymentParams.h

currency

Three character ISO 4217 formatted currency code.

@property (nonatomic, strong) NSString *currency

Discussion

Three character ISO 4217 formatted currency code.

Declared In

PMPaymentParams.h

description

a short description for the transaction (e.g. shopping cart ID) or empty string or null.

@property (nonatomic, strong) NSString *description

Discussion

a short description for the transaction (e.g. shopping cart ID) or empty string or null.

Declared In

PMPaymentParams.h

Class Methods

paymentParamsWithCurrency:amount:description:error:

Use this method to generate the PaymentParams object, needed for creating transactions, preauthorizations and tokens.

+ (PMPaymentParams *)paymentParamsWithCurrency:(NSString *)currency amount:(int)amount description:(NSString *)description error:(NSError **)error

Parameters

currency

Three character ISO 4217 formatted currency code.

amount

amount (in cents) which will be charged

description

a short description for the transaction (e.g. shopping cart ID) or empty string or null.
Note: You don’t need to supply a description parameter when generating a token

error

PMError object

Return Value

PMPaymentParams successfully created object

Discussion

Use this method to generate the PaymentParams object, needed for creating transactions, preauthorizations and tokens.

Declared In

PMPaymentParams.h