Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. /**
  2. * @param $amount
  3. * @return string
  4. */
  5. public function getGiftCardPayload($amount, $requestId, $creationId = null)
  6. {
  7. $amount = trim($amount);
  8.  
  9. $payload = [
  10. "creationRequestId" => $this->_config->getPartner() . "_" . time(),
  11. 'partnerId' => $this->_config->getPartner(),
  12. 'value' =>
  13. [
  14. 'currencyCode' => $this->_config->getCurrency(),
  15. 'amount' => (float)$amount
  16. ]
  17. ];
  18. return json_encode($payload);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement