Class Tokens
Tokens resource.
The Customer Token API is used to charge customers with a tokenized Klarna payment method and can be used for recurring purchases, subscriptions and for storing a customer's payment method. Tokens are created using the generate a customer token call in the payments API.
- ArrayObject implements IteratorAggregate, Traversable, ArrayAccess, Serializable, Countable
-
Klarna\Rest\Resource
-
Klarna\Rest\CustomerToken\Tokens
Example: docs/examples/CustomerTokenAPI/Tokens/create_order.php Create a new order using customer token
Example: docs/examples/CustomerTokenAPI/Tokens/read_token_details.php Read customer token details
Located at Klarna/Rest/CustomerToken/Tokens.php
Methods summary
public
|
#
__construct(
Constructs a Tokens instance. |
public
array
|
#
createOrder( array $data, string $klarnaIdempotencyKey = null )
Creates order using Customer Token. |
public
|
Methods inherited from Klarna\Rest\Resource
delete()
,
exchangeArray()
,
fetch()
,
get()
,
getId()
,
getLocation()
,
patch()
,
post()
,
put()
,
request()
,
setId()
,
setLocation()
Methods inherited from ArrayObject
append()
,
asort()
,
count()
,
getArrayCopy()
,
getFlags()
,
getIterator()
,
getIteratorClass()
,
ksort()
,
natcasesort()
,
natsort()
,
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
,
serialize()
,
setFlags()
,
setIteratorClass()
,
uasort()
,
uksort()
,
unserialize()
Magic methods summary
Constants summary
Constants inherited from Klarna\Rest\Resource
Constants inherited from ArrayObject
ARRAY_AS_PROPS
,
STD_PROP_LIST
Properties summary
public static
string
|
$path
Path to the resource endpoint. |
#
'/customer-token/v1/tokens'
|