PaddleClient class
$paddleClient->createTransaction( string $email, array $address, array $cartData, array $customData )
Name | Type | Info |
---|---|---|
email |
String | Paddle address object |
address |
Array | |
cartData |
Array | cart object frin Cart class |
customerData |
Array | Custom key-value object |
return string
Returns transaction url. Creates new customer if email doesn’t exist.
- getTransaction ( string $transactionId )
- return
object
- parameter
$transactionId
- Get transaction object from Paddle. Returns JSON from Paddle API.
- getCustomerData ( string $id )
- parameter
$id
– Unique Paddle ID for this customer entity, prefixed with ctm_ - return
array|string
- Get customer data (email, name) from customer id.