{"id":2839,"date":"2022-07-14T09:23:52","date_gmt":"2022-07-14T09:23:52","guid":{"rendered":"https:\/\/www.reloadly.com\/blog\/?p=2839"},"modified":"2022-07-14T09:23:53","modified_gmt":"2022-07-14T09:23:53","slug":"giftcards-php-quickstart","status":"publish","type":"post","link":"https:\/\/reloadly.com\/blog\/giftcards-php-quickstart\/","title":{"rendered":"GiftCards PHP Quickstart"},"content":{"rendered":"\n<p>Use this quick start if you want to purchase or send a gift card code with Reloadly\u2019s Gift card API using a PHP application. Prerequisites needed for this guide are:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The reader should have a decent understanding of PHP.<\/li><li>A Reloadly account. If you don\u2019t already have one, <a href=\"https:\/\/www.reloadly.com\/registration\">follow the registration procedure<\/a>.<\/li><li>Next, you need to have funds in your test wallet. When you sign up, a certain amount of funds are automatically added to your test wallet. You can fund your live wallet by following the steps in the <a href=\"https:\/\/developers.reloadly.com\/wallet\">Wallet<\/a> section.<\/li><\/ul>\n\n\n\n<p>Sign in to retrieve your <strong>client_id<\/strong> and <strong>client_secret<\/strong> keys for test mode. You can get both keys by toggling from live to test mode on the sidebar and navigating to <strong>Developers &gt; API<\/strong> settings<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Get an access token<\/h4>\n\n\n\n<p>Reloadly issues access tokens (also called bearer tokens) that are used to authorize API requests. Using the right parameters, make a request to Reloadly\u2019s authorization URL to obtain the appropriate access token.<\/p>\n\n\n\n<p>You can get a test access token by making a request in your PHP application similar to the example below<\/p>\n\n\n\n<div style=\"height:38px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>\/**\r\n * Requires libcurl\r\n *\/\r\n\r\n$curl = curl_init();\r\n\r\n$payload = array(\r\n  \"client_id\" =&gt; \"qwcLzXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n  \"client_secret\" =&gt; \"7kscVxQZ32-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n  \"grant_type\" =&gt; \"client_credentials\",\r\n  \"audience\" =&gt; \"https:\/\/giftcards-sandbox.reloadly.com\"\r\n);\r\n\r\ncurl_setopt_array($curl, &#091;\r\n  CURLOPT_HTTPHEADER =&gt; &#091;\r\n    \"Content-Type: application\/json\"\r\n  ],\r\n  CURLOPT_POSTFIELDS =&gt; json_encode($payload),\r\n  CURLOPT_URL =&gt; \"https:\/\/auth.reloadly.com\/oauth\/token\",\r\n  CURLOPT_RETURNTRANSFER =&gt; true,\r\n  CURLOPT_CUSTOMREQUEST =&gt; \"POST\",\r\n]);\r\n\r\n$response = curl_exec($curl);\r\n$error = curl_error($curl);\r\n\r\ncurl_close($curl);\r\n\r\nif ($error) {\r\n  echo \"cURL Error #:\" . $error;\r\n} else {\r\n  echo $response;\r\n}\r<\/code><\/pre>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Production access tokens are valid for 60 days, test access tokens are only valid for 24 hours.<\/p>\n\n\n\n<p>If your request is successful, you should get the following response.<\/p>\n\n\n\n<div style=\"height:38px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>{\r\n    \"access_token\": \"eyJraWQiOiI1N2JjZjNhNy01YmYwLTQ1M2QtODQ0Mi03ODhlMTA4OWI3MDIiLCJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI2NzkzIiwiaXNzIjoiaHR0cHM6Ly9yZWxvYWRseS1zYW5kYm94LmF1dGgwLmNvbS8iLCJodHRwczovL3JlbG9hZGx5LmNvbS9zYW5kYm94Ijp0cnVlLCJodHRwczovL3JlbG9hZGx5LmNvbS9wcmVwYWlkVXNlcklkIjoiNjc5MyIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyIsImF1ZCI6Imh0dHBzOi8vdG9wdXBzLWhzMjU2LXNhbmRib3gucmVsb2FkbHkuY29tIiwibmJmIjoxNjU0MDgzNjY3LCJhenAiOiI2NzkzIiwic2NvcGUiOiJzZW5kLXRvcHVwcyByZWFkLW9wZXJhdG9ycyByZWFkLXByb21vdGlvbnMgcmVhZC10b3B1cHMtaGlzdG9yeSByZWFkLXByZXBhaWQtYmFsYW5jZSByZWFkLXByZXBhaWQtY29tbWlzc2lvbnMiLCJleHAiOjE2NTQxNzAwNjcsImh0dHBzOi8vcmVsb2FkbHkuY29tL2p0aSI6IjYwMTY4ODNiLWYxYTgtNGJhMy1hNmM3LWIwNjBkNDRmN2EyMCIsImlhdCI6MTY1NDA4MzY2NywianRpIjoiZGUwNzRlM2QtM2JkYi00N2ExLTkzNDktZTk1YmZiNjZlNGVmIn0.ZXUzCYbCCTzpDMr5hP7YvgWYqniy9kBY0Y5vWS8wRrA\",\r\n    \"scope\": \"developer\",\r\n    \"expires_in\": 86400,\r\n    \"token_type\": \"Bearer\"\r\n}\r<\/code><\/pre>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Make a gift card purchase<\/h4>\n\n\n\n<p>Now that you have an access token, you can purchase a gift card with the Gift Card API. You can find details for the gift card product of your choice on your Reloadly dashboard by navigating on the sidebar to the <strong>Pricing &gt; Gift Card <\/strong>section.<\/p>\n\n\n\n<p>In the examples below, we will show how purchasing a gift card works by ordering an Amazon gift card that is only eligible for use in the United States.<\/p>\n\n\n\n<div style=\"height:37px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>\/**\r\n * Requires libcurl\r\n *\/\r\n \r\n$curl = curl_init();\r\n \r\n$payload = array(\r\n  \"productId\" =&gt; 5,\r\n  \"countryCode\" =&gt; \"US\",\r\n  \"quantity\" =&gt; 1,\r\n  \"unitPrice\" =&gt; 5,\r\n  \"customIdentifier\" =&gt; \"gift-card-amazon-order\",\r\n  \"senderName\" =&gt; \"John Doe\",\r\n  \"recipientEmail\" =&gt; \"anyone@email.com\",\r\n  \"recipientPhoneDetails\" =&gt; array(\r\n    \"countryCode\" =&gt; \"US\",\r\n    \"phoneNumber\" =&gt; \"8579184613\"\r\n  )\r\n);\r\n \r\ncurl_setopt_array($curl, &#091;\r\n  CURLOPT_HTTPHEADER =&gt; &#091;\r\n    \"Authorization: Bearer &lt;YOUR_TOKEN_HERE&gt;\",\r\n    \"Content-Type: application\/json\"\r\n  ],\r\n  CURLOPT_POSTFIELDS =&gt; json_encode($payload),\r\n  CURLOPT_URL =&gt; \"https:\/\/giftcards-sandbox.reloadly.com\/orders\",\r\n  CURLOPT_RETURNTRANSFER =&gt; true,\r\n  CURLOPT_CUSTOMREQUEST =&gt; \"POST\",\r\n]);\r\n \r\n$response = curl_exec($curl);\r\n$error = curl_error($curl);\r\n \r\ncurl_close($curl);\r\n \r\nif ($error) {\r\n  echo \"cURL Error #:\" . $error;\r\n} else {\r\n  echo $response;\r\n}\r<\/code><\/pre>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>If your request is successful, you should receive a response from Reloadly<\/p>\n\n\n\n<div style=\"height:39px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>{\r\n    \"transactionId\": 3116,\r\n    \"amount\": 3139.45,\r\n    \"discount\": 25.65,\r\n    \"currencyCode\": \"NGN\",\r\n    \"fee\": 285.00,\r\n    \"smsFee\": 4.45,\r\n    \"recipientEmail\": \"anyone@email.com\",\r\n    \"recipientPhone\": \"18579184613\",\r\n    \"customIdentifier\": \"gift-card-amazon-order\",\r\n    \"status\": \"SUCCESSFUL\",\r\n    \"transactionCreatedTime\": \"2022-06-10 08:06:04\",\r\n    \"product\": {\r\n        \"productId\": 5,\r\n        \"productName\": \"Amazon US\",\r\n        \"countryCode\": \"US\",\r\n        \"quantity\": 1,\r\n        \"unitPrice\": 5,\r\n        \"totalPrice\": 5,\r\n        \"currencyCode\": \"USD\",\r\n        \"brand\": {\r\n            \"brandId\": 2,\r\n            \"brandName\": \"Amazon\"\r\n        }\r\n    }\r\n}\r<\/code><\/pre>\n\n\n\n<div style=\"height:41px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>If you made it to this point, you have successfully purchased your first gift card in a PHP application<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use this quick start if you want to purchase or send a gift card code with Reloadly\u2019s Gift card API using a PHP application. Prerequisites needed for this guide are: The reader should have a decent understanding of PHP. A Reloadly account. If you don\u2019t already have one, follow the registration procedure. Next, you need<\/p>\n","protected":false},"author":17,"featured_media":2689,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[274],"tags":[277,282,285,275,65],"ppma_author":[359],"class_list":["post-2839","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-developer-blog","tag-api","tag-developer","tag-gift-cards","tag-reloadly","tag-remittance"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>GiftCards PHP Quickstart - Reloadly Blog<\/title>\n<meta name=\"description\" content=\"Reloadly Resources. Insights, Info and Analysis For The Mobile Airtime API Community\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.reloadly.com\/blog\/giftcards-php-quickstart\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GiftCards PHP Quickstart - Reloadly Blog\" \/>\n<meta property=\"og:description\" content=\"Reloadly Resources. Insights, Info and Analysis For The Mobile Airtime API Community\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.reloadly.com\/blog\/giftcards-php-quickstart\/\" \/>\n<meta property=\"og:site_name\" content=\"Reloadly Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-14T09:23:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-14T09:23:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/54.167.47.128\/wp-content\/uploads\/2022\/05\/api-benefits-for-business.png\" \/>\n\t<meta property=\"og:image:width\" content=\"641\" \/>\n\t<meta property=\"og:image:height\" content=\"334\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Raphael Ugwu\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Raphael Ugwu\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/giftcards-php-quickstart\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/giftcards-php-quickstart\\\/\"},\"author\":{\"name\":\"Raphael Ugwu\",\"@id\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/#\\\/schema\\\/person\\\/18eaaac484ba8d8f4d59940e923f4954\"},\"headline\":\"GiftCards PHP Quickstart\",\"datePublished\":\"2022-07-14T09:23:52+00:00\",\"dateModified\":\"2022-07-14T09:23:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/giftcards-php-quickstart\\\/\"},\"wordCount\":327,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/giftcards-php-quickstart\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/api-benefits-for-business.png\",\"keywords\":[\"api\",\"developer\",\"gift cards\",\"reloadly\",\"remittance\"],\"articleSection\":[\"Developer Blog\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/giftcards-php-quickstart\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/giftcards-php-quickstart\\\/\",\"url\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/giftcards-php-quickstart\\\/\",\"name\":\"GiftCards PHP Quickstart - Reloadly Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/giftcards-php-quickstart\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/giftcards-php-quickstart\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/api-benefits-for-business.png\",\"datePublished\":\"2022-07-14T09:23:52+00:00\",\"dateModified\":\"2022-07-14T09:23:53+00:00\",\"description\":\"Reloadly Resources. Insights, Info and Analysis For The Mobile Airtime API Community\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/giftcards-php-quickstart\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/giftcards-php-quickstart\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/giftcards-php-quickstart\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/api-benefits-for-business.png\",\"contentUrl\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/api-benefits-for-business.png\",\"width\":641,\"height\":334},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/giftcards-php-quickstart\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GiftCards PHP Quickstart\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/\",\"name\":\"Reloadly Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/#organization\",\"name\":\"Reloadly\",\"url\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/logo-1.svg\",\"contentUrl\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/logo-1.svg\",\"width\":100,\"height\":100,\"caption\":\"Reloadly\"},\"image\":{\"@id\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.reloadly.com\\\/blog\\\/#\\\/schema\\\/person\\\/18eaaac484ba8d8f4d59940e923f4954\",\"name\":\"Raphael Ugwu\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c590dfe6cf705fd18b8c2f919ecfbb1ace8dcd6bb7f5712363f76bb4c55b6000?s=96&d=mm&r=g64f921045402e9b44a3fe0f4c884aa1f\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c590dfe6cf705fd18b8c2f919ecfbb1ace8dcd6bb7f5712363f76bb4c55b6000?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c590dfe6cf705fd18b8c2f919ecfbb1ace8dcd6bb7f5712363f76bb4c55b6000?s=96&d=mm&r=g\",\"caption\":\"Raphael Ugwu\"},\"url\":\"https:\\\/\\\/reloadly.com\\\/blog\\\/author\\\/fullstackmafia\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GiftCards PHP Quickstart - Reloadly Blog","description":"Reloadly Resources. Insights, Info and Analysis For The Mobile Airtime API Community","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.reloadly.com\/blog\/giftcards-php-quickstart\/","og_locale":"en_US","og_type":"article","og_title":"GiftCards PHP Quickstart - Reloadly Blog","og_description":"Reloadly Resources. Insights, Info and Analysis For The Mobile Airtime API Community","og_url":"https:\/\/www.reloadly.com\/blog\/giftcards-php-quickstart\/","og_site_name":"Reloadly Blog","article_published_time":"2022-07-14T09:23:52+00:00","article_modified_time":"2022-07-14T09:23:53+00:00","og_image":[{"width":641,"height":334,"url":"https:\/\/54.167.47.128\/wp-content\/uploads\/2022\/05\/api-benefits-for-business.png","type":"image\/png"}],"author":"Raphael Ugwu","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Raphael Ugwu","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.reloadly.com\/blog\/giftcards-php-quickstart\/#article","isPartOf":{"@id":"https:\/\/www.reloadly.com\/blog\/giftcards-php-quickstart\/"},"author":{"name":"Raphael Ugwu","@id":"https:\/\/www.reloadly.com\/blog\/#\/schema\/person\/18eaaac484ba8d8f4d59940e923f4954"},"headline":"GiftCards PHP Quickstart","datePublished":"2022-07-14T09:23:52+00:00","dateModified":"2022-07-14T09:23:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.reloadly.com\/blog\/giftcards-php-quickstart\/"},"wordCount":327,"commentCount":0,"publisher":{"@id":"https:\/\/www.reloadly.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.reloadly.com\/blog\/giftcards-php-quickstart\/#primaryimage"},"thumbnailUrl":"https:\/\/www.reloadly.com\/blog\/wp-content\/uploads\/2022\/05\/api-benefits-for-business.png","keywords":["api","developer","gift cards","reloadly","remittance"],"articleSection":["Developer Blog"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.reloadly.com\/blog\/giftcards-php-quickstart\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.reloadly.com\/blog\/giftcards-php-quickstart\/","url":"https:\/\/www.reloadly.com\/blog\/giftcards-php-quickstart\/","name":"GiftCards PHP Quickstart - Reloadly Blog","isPartOf":{"@id":"https:\/\/www.reloadly.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.reloadly.com\/blog\/giftcards-php-quickstart\/#primaryimage"},"image":{"@id":"https:\/\/www.reloadly.com\/blog\/giftcards-php-quickstart\/#primaryimage"},"thumbnailUrl":"https:\/\/www.reloadly.com\/blog\/wp-content\/uploads\/2022\/05\/api-benefits-for-business.png","datePublished":"2022-07-14T09:23:52+00:00","dateModified":"2022-07-14T09:23:53+00:00","description":"Reloadly Resources. Insights, Info and Analysis For The Mobile Airtime API Community","breadcrumb":{"@id":"https:\/\/www.reloadly.com\/blog\/giftcards-php-quickstart\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.reloadly.com\/blog\/giftcards-php-quickstart\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.reloadly.com\/blog\/giftcards-php-quickstart\/#primaryimage","url":"https:\/\/www.reloadly.com\/blog\/wp-content\/uploads\/2022\/05\/api-benefits-for-business.png","contentUrl":"https:\/\/www.reloadly.com\/blog\/wp-content\/uploads\/2022\/05\/api-benefits-for-business.png","width":641,"height":334},{"@type":"BreadcrumbList","@id":"https:\/\/www.reloadly.com\/blog\/giftcards-php-quickstart\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.reloadly.com\/blog\/"},{"@type":"ListItem","position":2,"name":"GiftCards PHP Quickstart"}]},{"@type":"WebSite","@id":"https:\/\/www.reloadly.com\/blog\/#website","url":"https:\/\/www.reloadly.com\/blog\/","name":"Reloadly Blog","description":"","publisher":{"@id":"https:\/\/www.reloadly.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.reloadly.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.reloadly.com\/blog\/#organization","name":"Reloadly","url":"https:\/\/www.reloadly.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.reloadly.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.reloadly.com\/blog\/wp-content\/uploads\/2020\/11\/logo-1.svg","contentUrl":"https:\/\/www.reloadly.com\/blog\/wp-content\/uploads\/2020\/11\/logo-1.svg","width":100,"height":100,"caption":"Reloadly"},"image":{"@id":"https:\/\/www.reloadly.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.reloadly.com\/blog\/#\/schema\/person\/18eaaac484ba8d8f4d59940e923f4954","name":"Raphael Ugwu","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c590dfe6cf705fd18b8c2f919ecfbb1ace8dcd6bb7f5712363f76bb4c55b6000?s=96&d=mm&r=g64f921045402e9b44a3fe0f4c884aa1f","url":"https:\/\/secure.gravatar.com\/avatar\/c590dfe6cf705fd18b8c2f919ecfbb1ace8dcd6bb7f5712363f76bb4c55b6000?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c590dfe6cf705fd18b8c2f919ecfbb1ace8dcd6bb7f5712363f76bb4c55b6000?s=96&d=mm&r=g","caption":"Raphael Ugwu"},"url":"https:\/\/reloadly.com\/blog\/author\/fullstackmafia\/"}]}},"jetpack_featured_media_url":"https:\/\/www.reloadly.com\/blog\/wp-content\/uploads\/2022\/05\/api-benefits-for-business.png","authors":[{"term_id":359,"user_id":17,"is_guest":0,"slug":"fullstackmafia","display_name":"Raphael Ugwu","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/c590dfe6cf705fd18b8c2f919ecfbb1ace8dcd6bb7f5712363f76bb4c55b6000?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/reloadly.com\/blog\/wp-json\/wp\/v2\/posts\/2839","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/reloadly.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/reloadly.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/reloadly.com\/blog\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/reloadly.com\/blog\/wp-json\/wp\/v2\/comments?post=2839"}],"version-history":[{"count":1,"href":"https:\/\/reloadly.com\/blog\/wp-json\/wp\/v2\/posts\/2839\/revisions"}],"predecessor-version":[{"id":2840,"href":"https:\/\/reloadly.com\/blog\/wp-json\/wp\/v2\/posts\/2839\/revisions\/2840"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/reloadly.com\/blog\/wp-json\/wp\/v2\/media\/2689"}],"wp:attachment":[{"href":"https:\/\/reloadly.com\/blog\/wp-json\/wp\/v2\/media?parent=2839"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reloadly.com\/blog\/wp-json\/wp\/v2\/categories?post=2839"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reloadly.com\/blog\/wp-json\/wp\/v2\/tags?post=2839"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/reloadly.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=2839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}