Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @param $amount
- * @return string
- */
- public function getGiftCardPayload($amount, $requestId, $creationId = null)
- {
- $amount = trim($amount);
- $payload = [
- "creationRequestId" => $this->_config->getPartner() . "_" . time(),
- 'partnerId' => $this->_config->getPartner(),
- 'value' =>
- [
- 'currencyCode' => $this->_config->getCurrency(),
- 'amount' => (float)$amount
- ]
- ];
- return json_encode($payload);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement