{"id":1290,"date":"2016-07-24T09:42:00","date_gmt":"2016-07-24T09:42:00","guid":{"rendered":"https:\/\/www.codebee.co.th\/labs\/?p=1290"},"modified":"2016-10-23T11:51:56","modified_gmt":"2016-10-23T11:51:56","slug":"%e0%b9%80%e0%b8%82%e0%b8%b5%e0%b8%a2%e0%b8%99%e0%b9%82%e0%b8%9b%e0%b8%a3%e0%b9%81%e0%b8%81%e0%b8%a3%e0%b8%a1%e0%b8%8a%e0%b8%b3%e0%b8%a3%e0%b8%b0%e0%b9%80%e0%b8%87%e0%b8%b4%e0%b8%99%e0%b8%ad%e0%b8%ad","status":"publish","type":"post","link":"https:\/\/www.codebee.co.th\/labs\/%e0%b9%80%e0%b8%82%e0%b8%b5%e0%b8%a2%e0%b8%99%e0%b9%82%e0%b8%9b%e0%b8%a3%e0%b9%81%e0%b8%81%e0%b8%a3%e0%b8%a1%e0%b8%8a%e0%b8%b3%e0%b8%a3%e0%b8%b0%e0%b9%80%e0%b8%87%e0%b8%b4%e0%b8%99%e0%b8%ad%e0%b8%ad\/","title":{"rendered":"\u0e17\u0e33\u0e40\u0e27\u0e47\u0e1a E-Commerce \u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\u0e2d\u0e2d\u0e19\u0e44\u0e25\u0e19\u0e4c\u0e43\u0e0a\u0e49 Paypal API"},"content":{"rendered":"<h3>\u0e17\u0e33\u0e40\u0e27\u0e47\u0e1a E-Commerce \u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\u0e2d\u0e2d\u0e19\u0e44\u0e25\u0e19\u0e4c\u0e43\u0e0a\u0e49\u0e23\u0e30\u0e1a\u0e1a Paypal API<\/h3>\n<p><\/br><\/p>\n<p>Paypal \u0e04\u0e37\u0e2d\u0e23\u0e30\u0e1a\u0e1a\u0e01\u0e32\u0e23\u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\u0e41\u0e25\u0e30\u0e0b\u0e37\u0e49\u0e2d\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e41\u0e1a\u0e1a\u0e2d\u0e2d\u0e19\u0e44\u0e25\u0e19\u0e4c \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e1a\u0e31\u0e15\u0e23\u0e40\u0e04\u0e23\u0e14\u0e34\u0e15 \u0e1a\u0e31\u0e15\u0e23\u0e40\u0e14\u0e1a\u0e34\u0e15\u0e42\u0e14\u0e22\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e2a\u0e21\u0e31\u0e04\u0e23\u0e43\u0e0a\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23<br \/>\n\u0e17\u0e31\u0e49\u0e07\u0e41\u0e1a\u0e1a\u0e1a\u0e38\u0e04\u0e04\u0e25\u0e18\u0e23\u0e23\u0e21\u0e14\u0e32\u0e41\u0e25\u0e30\u0e19\u0e34\u0e15\u0e34\u0e1a\u0e38\u0e04\u0e04\u0e25 \u0e40\u0e1e\u0e22\u0e4c\u0e1e\u0e32\u0e25\u0e40\u0e1b\u0e23\u0e35\u0e22\u0e1a\u0e44\u0e14\u0e49\u0e01\u0e31\u0e1a\u0e18\u0e19\u0e32\u0e04\u0e32\u0e23\u0e41\u0e1a\u0e1a\u0e2d\u0e2d\u0e19\u0e44\u0e25\u0e19\u0e4c\u0e0b\u0e36\u0e48\u0e07\u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a\u0e04\u0e27\u0e32\u0e21\u0e19\u0e34\u0e22\u0e21\u0e44\u0e1b\u0e17\u0e31\u0e48\u0e27\u0e42\u0e25\u0e01 \u0e42\u0e14\u0e22\u0e21\u0e35\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e01\u0e31\u0e19\u0e2d\u0e22\u0e48\u0e32\u0e07<br \/>\n\u0e41\u0e1e\u0e23\u0e48\u0e2b\u0e25\u0e32\u0e22\u0e43\u0e19\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30\u0e01\u0e32\u0e23\u0e0b\u0e37\u0e49\u0e2d\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e40\u0e27\u0e47\u0e1a\u0e02\u0e32\u0e22\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e2d\u0e2d\u0e19\u0e44\u0e25\u0e19\u0e4c (e-commerce)<br \/>\n<!--more--><\/p>\n<p><\/br><br \/>\n\u0e43\u0e19\u0e14\u0e49\u0e32\u0e19\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e40\u0e1e\u0e22\u0e4c\u0e1e\u0e32\u0e25\u0e21\u0e35\u0e23\u0e30\u0e1a\u0e1a Rest API ( Application Programing Interface ) \u0e23\u0e27\u0e21\u0e44\u0e1b\u0e16\u0e36\u0e07<br \/>\nSDK \u0e2b\u0e23\u0e37\u0e2d\u0e0a\u0e38\u0e14\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e43\u0e19\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e41\u0e25\u0e30\u0e15\u0e34\u0e14\u0e15\u0e48\u0e2d\u0e01\u0e31\u0e1a Paypal API \u0e0b\u0e36\u0e48\u0e07\u0e21\u0e35\u0e43\u0e2b\u0e49\u0e19\u0e31\u0e01\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e43\u0e0a\u0e49\u0e44\u0e14\u0e49\u0e2b\u0e25\u0e32\u0e22\u0e20\u0e32\u0e29\u0e32 \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e2b\u0e25\u0e48\u0e32\u0e19\u0e35\u0e49<br \/>\n\u0e40\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e14\u0e39\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e19\u0e31\u0e01\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e17\u0e35\u0e48 <a href=\"https:\/\/developer.paypal.com\/docs\/api\/rest-sdks\/\" target=\"_blank\">https:\/\/developer.paypal.com\/docs\/api\/rest-sdks\/<\/a><\/p>\n<p><\/br><br \/>\n\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49\u0e08\u0e30\u0e43\u0e0a\u0e49 PHP codeigniter \u0e40\u0e1b\u0e47\u0e19 framework \u0e43\u0e19\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e48\u0e2d\u0e01\u0e31\u0e1a paypal API \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e09\u0e30\u0e19\u0e31\u0e49\u0e19<br \/>\n\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e23\u0e34\u0e48\u0e21\u0e02\u0e36\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e15\u0e48\u0e2d\u0e44\u0e1b\u0e43\u0e2b\u0e49\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 CI \u0e01\u0e48\u0e2d\u0e19 \u0e17\u0e48\u0e32\u0e19\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e14\u0e39\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48\u0e01\u0e23\u0e30\u0e17\u0e39\u0e49\u0e19\u0e35\u0e49 <a href=\"https:\/\/www.codebee.co.th\/labs\/php-codeigniter-\u0e40\u0e19\u0e49\u0e19\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19-\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\/\" target=\"_blank\">\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 codeigniter<\/a><br \/>\n<\/br><\/p>\n<h4>\u0e40\u0e23\u0e34\u0e48\u0e21\u0e40\u0e02\u0e35\u0e22\u0e19\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e15\u0e34\u0e14\u0e15\u0e48\u0e2d\u0e01\u0e31\u0e1a Paypal API<\/h4>\n<p>1. \u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14 <a href=\"http:\/\/www.codebee.co.th\/labs\/examples\/paypal.zip\" target=\"_blank\">paypal.php<\/a><\/p>\n<p>2. \u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14\u0e41\u0e25\u0e49\u0e27\u0e43\u0e2b\u0e49\u0e27\u0e32\u0e07\u0e44\u0e1f\u0e25\u0e4c paypal.php \u0e44\u0e27\u0e49\u0e43\u0e19 <strong>application\/libraries\/paypal.php<\/strong><\/p>\n<p>3. \u0e17\u0e33\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Model \u0e0a\u0e37\u0e48\u0e2d\u0e27\u0e48\u0e32 Payment.php \u0e44\u0e27\u0e49\u0e43\u0e19 <strong>application\/controllers\/Payment.php<\/strong><\/p>\n<p>4. \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32\u0e44\u0e1b\u0e22\u0e31\u0e07 Paypal API \u0e08\u0e30\u0e41\u0e1a\u0e48\u0e07\u0e40\u0e1b\u0e47\u0e19 3 \u0e2a\u0e48\u0e27\u0e19\u0e2b\u0e25\u0e31\u0e01 \u0e46 \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n<ul>\n<li><strong>\u0e2a\u0e48\u0e27\u0e19\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e1a\u0e31\u0e0d\u0e0a\u0e35\u0e1c\u0e39\u0e49\u0e23\u0e31\u0e1a\u0e40\u0e07\u0e34\u0e19<\/strong> \u0e04\u0e37\u0e2d\u0e2a\u0e48\u0e27\u0e19\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e23\u0e30\u0e1a\u0e38\u0e1a\u0e31\u0e0d\u0e0a\u0e35\u0e17\u0e35\u0e48\u0e08\u0e30\u0e42\u0e2d\u0e19\u0e40\u0e07\u0e34\u0e19\u0e40\u0e02\u0e49\u0e32 \u0e04\u0e48\u0e32\u0e40\u0e07\u0e34\u0e19 \u0e40\u0e25\u0e02\u0e17\u0e35\u0e48 Invoice \u0e41\u0e25\u0e30 url \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a return \u0e04\u0e48\u0e32\u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49\n<pre class=\"lang:default decode:true \" >\r\n$config['business'] \t\t\t= 'codebee2014@gmail.com'; \/\/ \u0e2d\u0e35\u0e40\u0e21\u0e25\u0e1a\u0e31\u0e0d\u0e0a\u0e35\u0e1a\u0e34\u0e2a\u0e34\u0e40\u0e19\u0e2a\u0e1c\u0e39\u0e49\u0e23\u0e31\u0e1a\u0e40\u0e07\u0e34\u0e19\r\n$config['cpp_header_image'] \t= base_url(\"assets\/img\/logo.png\"); \/\/ \u0e23\u0e39\u0e1b\u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e2a\u0e14\u0e07\u0e43\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e17\u0e33\u0e18\u0e38\u0e23\u0e01\u0e23\u0e23\u0e21\r\n$config['return'] \t\t\t\t= site_url(\"payment\/summary\"); \/\/ \u0e2b\u0e19\u0e49\u0e32\u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e2a\u0e14\u0e07\u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e17\u0e33\u0e18\u0e38\u0e23\u0e01\u0e23\u0e23\u0e21\u0e40\u0e2a\u0e23\u0e47\u0e08\r\n$config['cancel_return'] \t\t= site_url(\"payment\"); \/\/ \u0e2b\u0e19\u0e49\u0e32\u0e17\u0e35\u0e48\u0e08\u0e30\u0e41\u0e2a\u0e14\u0e07\u0e01\u0e23\u0e13\u0e35\u0e01\u0e14\u0e1b\u0e38\u0e48\u0e21\u0e22\u0e01\u0e40\u0e25\u0e34\u0e01\r\n$config['notify_url'] \t\t\t= site_url(\"payment\/ordercomplete\"); \/\/ \u0e2b\u0e19\u0e49\u0e32\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e08\u0e30\u0e43\u0e0a\u0e49\u0e23\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19\u0e01\u0e23\u0e13\u0e35\u0e01\u0e32\u0e23\u0e2a\u0e31\u0e48\u0e07\u0e0b\u0e37\u0e49\u0e2d\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e2a\u0e34\u0e49\u0e19\u0e14\u0e49\u0e27\u0e22\u0e14\u0e35\r\n$config['production'] \t\t\t= FALSE; \/\/ \u0e23\u0e30\u0e1a\u0e38\u0e01\u0e32\u0e23\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e27\u0e48\u0e32\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e2b\u0e23\u0e37\u0e2d\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e08\u0e23\u0e34\u0e07\r\n$config[\"invoice\"]\t\t\t\t= \"IV0001\"; \/\/ \u0e23\u0e30\u0e1a\u0e38\u0e40\u0e25\u0e02\u0e17\u0e35\u0e48\u0e43\u0e1a\u0e41\u0e08\u0e49\u0e07\u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\r\n$config[\"currency_code\"]\t\t= \"THB\"; \/\/ \u0e23\u0e30\u0e1a\u0e38\u0e04\u0e48\u0e32\u0e40\u0e07\u0e34\u0e19\u0e43\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33\u0e18\u0e38\u0e23\u0e01\u0e23\u0e23\u0e21\r\n<\/pre>\n<\/li>\n<li><strong>\u0e2a\u0e48\u0e27\u0e19\u0e01\u0e32\u0e23\u0e23\u0e30\u0e1a\u0e38\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e1c\u0e39\u0e49\u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\u0e2b\u0e23\u0e37\u0e2d\u0e2a\u0e31\u0e48\u0e07\u0e0b\u0e37\u0e49\u0e2d<\/strong> \u0e04\u0e37\u0e2d\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e02\u0e2d\u0e07\u0e1c\u0e39\u0e49\u0e17\u0e33\u0e18\u0e38\u0e23\u0e01\u0e23\u0e23\u0e21\u0e40\u0e0a\u0e48\u0e19 \u0e17\u0e35\u0e48\u0e2d\u0e22\u0e39\u0e48 \u0e40\u0e1a\u0e2d\u0e23\u0e4c\u0e42\u0e17\u0e23\u0e28\u0e31\u0e1e\u0e17\u0e4c \u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e19\n<pre class=\"lang:default decode:true \" >\r\n$config[\"first_name\"] \t\t= $row->fname; \/\/ \u0e0a\u0e37\u0e48\u0e2d\u0e08\u0e23\u0e34\u0e07\u0e1c\u0e39\u0e49\u0e2a\u0e31\u0e48\u0e07\u0e0b\u0e37\u0e49\u0e2d\r\n$config[\"last_name\"] \t\t= $row->lname; \/\/ \u0e19\u0e32\u0e21\u0e2a\u0e01\u0e38\u0e25\u0e1c\u0e39\u0e49\u0e2a\u0e31\u0e48\u0e07\u0e0b\u0e37\u0e49\u0e2d\r\n$config[\"address1\"] \t\t= $row->address; \/\/ \u0e17\u0e35\u0e48\u0e2d\u0e22\u0e39\u0e48\u0e0a\u0e48\u0e2d\u0e07\u0e41\u0e23\u0e01\r\n$config[\"address2\"] \t\t= $row->company; \/\/ \u0e17\u0e35\u0e48\u0e2d\u0e22\u0e39\u0e48\u0e0a\u0e48\u0e2d\u0e07\u0e2a\u0e2d\u0e07 \u0e16\u0e49\u0e32\u0e21\u0e35\r\n$config[\"city\"] \t\t\t= $row->city; \/\/ \u0e40\u0e21\u0e37\u0e2d\u0e07\r\n$config[\"state\"] \t\t\t= $row->state; \/\/ \u0e23\u0e31\u0e10\r\n$config[\"zip\"] \t\t\t\t= $row->postcode; \/\/ \u0e23\u0e2b\u0e31\u0e2a\u0e44\u0e1b\u0e23\u0e29\u0e13\u0e35\u0e22\u0e4c\r\n$config[\"email\"] \t\t\t= $row->email; \/\/ \u0e2d\u0e35\u0e40\u0e21\u0e25\u0e1c\u0e39\u0e49\u0e2a\u0e31\u0e48\u0e07\u0e0b\u0e37\u0e49\u0e2d\r\n$config[\"night_phone_a\"] \t= $row->phone; \/\/ \u0e40\u0e1a\u0e2d\u0e23\u0e4c\u0e42\u0e17\u0e23 1\r\n$config[\"night_phone_b\"] \t= $row->mobile; \/\/ \u0e40\u0e1a\u0e2d\u0e23\u0e4c\u0e42\u0e17\u0e23 2\r\n<\/pre>\n<\/li>\n<li><strong>\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e40\u0e23\u0e34\u0e48\u0e21\u0e2a\u0e31\u0e48\u0e07\u0e0b\u0e37\u0e49\u0e2d<\/strong> \u0e04\u0e37\u0e2d\u0e2a\u0e48\u0e27\u0e19\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e08\u0e30\u0e2a\u0e31\u0e48\u0e07\u0e43\u0e2b\u0e49\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e44\u0e1b\u0e22\u0e31\u0e07 paypal API \u0e40\u0e1b\u0e47\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32<br \/>\n\u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e23\u0e30\u0e1a\u0e38\u0e22\u0e2d\u0e14\u0e23\u0e27\u0e21\u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e04\u0e37\u0e2d \u0e22\u0e2d\u0e14\u0e40\u0e07\u0e34\u0e19\u0e0a\u0e33\u0e23\u0e30 \u0e41\u0e25\u0e30 \u0e08\u0e33\u0e19\u0e27\u0e19\u0e44\u0e2d\u0e40\u0e17\u0e21\u0e15\u0e48\u0e2d\u0e2b\u0e19\u0e48\u0e27\u0e22\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e0a\u0e33\u0e23\u0e30<\/p>\n<pre class=\"lang:default decode:true \" >\r\n$this->load->library('paypal',$config); \/\/ \u0e42\u0e2b\u0e25\u0e14 paypal library \u0e21\u0e32\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e41\u0e25\u0e30\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e43\u0e2b\u0e21\u0e48\r\n$this->paypal->add(\"\u0e0a\u0e37\u0e48\u0e2d\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\",\"\u0e23\u0e32\u0e04\u0e32\u0e15\u0e48\u0e2d\u0e2b\u0e19\u0e27\u0e22\",\"\u0e08\u0e33\u0e19\u0e27\u0e19\u0e23\u0e27\u0e21\"); \/\/ \u0e23\u0e30\u0e1a\u0e38\u0e0a\u0e37\u0e48\u0e2d\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32 \u0e08\u0e33\u0e19\u0e27\u0e19 \u0e41\u0e25\u0e30\u0e23\u0e32\u0e04\u0e32\r\n$this->paypal->pay(); \/\/ \u0e40\u0e23\u0e34\u0e48\u0e21\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e44\u0e1b\u0e43\u0e2b\u0e49 paypal \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e23\u0e34\u0e48\u0e21\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e01\u0e32\u0e23\u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\r\n<\/pre>\n<\/li>\n<\/ul\n\n<\/br><br \/>\n\u0e2b\u0e32\u0e01\u0e43\u0e19\u0e2b\u0e19\u0e36\u0e48\u0e07 order \u0e21\u0e35\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e0a\u0e34\u0e49\u0e19 \u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e43\u0e19\u0e15\u0e30\u0e01\u0e23\u0e49\u0e32\u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e40\u0e14\u0e34\u0e21 \u0e40\u0e1e\u0e35\u0e22\u0e07\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e0a\u0e37\u0e48\u0e2d\u0e02\u0e2d\u0e07\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32<br \/>\n\u0e08\u0e33\u0e19\u0e27\u0e19\u0e41\u0e25\u0e30\u0e23\u0e32\u0e04\u0e32\u0e02\u0e2d\u0e07\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e43\u0e2b\u0e49\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07 \u0e40\u0e0a\u0e48\u0e19<\/p>\n<pre class=\"lang:default decode:true \" >\r\n$this-&gt;paypal-&gt;add(\"\u0e2a\u0e1a\u0e39\u0e48\",50,4);\r\n$this-&gt;paypal-&gt;add(\"\u0e22\u0e32\u0e2a\u0e35\u0e1f\u0e31\u0e19\",100,2);\r\n$this-&gt;paypal-&gt;add(\"\u0e1c\u0e07\u0e0b\u0e31\u0e01\u0e1c\u0e49\u0e32\",80,6);\r\n<\/pre>\n<p>\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e15\u0e48\u0e2d\u0e44\u0e1b\u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 <strong>$this->paypal->pay();<\/strong> \u0e23\u0e30\u0e1a\u0e1a\u0e08\u0e30\u0e19\u0e33\u0e40\u0e23\u0e32\u0e44\u0e1b\u0e22\u0e31\u0e07\u0e2b\u0e19\u0e49\u0e32\u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\u0e02\u0e2d\u0e07 paypal<br \/>\n\u0e43\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e19\u0e35\u0e49\u0e08\u0e30\u0e21\u0e35\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e42\u0e25\u0e42\u0e01\u0e49\u0e02\u0e2d\u0e07\u0e1a\u0e31\u0e0d\u0e0a\u0e35\u0e1a\u0e34\u0e2a\u0e34\u0e40\u0e19\u0e2a \u0e41\u0e25\u0e30\u0e2a\u0e23\u0e38\u0e1b\u0e22\u0e2d\u0e14\u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e02\u0e2d\u0e07\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e15\u0e32\u0e21\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e2a\u0e48\u0e07\u0e44\u0e1b <\/p>\n<p>\u0e0b\u0e36\u0e48\u0e07\u0e16\u0e49\u0e32\u0e2b\u0e32\u0e01\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e22\u0e31\u0e07\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e23\u0e30\u0e1a\u0e1a \u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e17\u0e33\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e23\u0e30\u0e1a\u0e1a\u0e2b\u0e23\u0e37\u0e2d\u0e2a\u0e21\u0e31\u0e04\u0e23\u0e2a\u0e21\u0e32\u0e0a\u0e34\u0e01\u0e40\u0e2a\u0e35\u0e22\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e01\u0e47\u0e08\u0e30\u0e21\u0e35<br \/>\n\u0e15\u0e31\u0e27\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e0a\u0e48\u0e2d\u0e07\u0e17\u0e32\u0e07\u0e01\u0e32\u0e23\u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19 \u0e40\u0e0a\u0e48\u0e19 \u0e40\u0e25\u0e37\u0e2d\u0e01\u0e0a\u0e33\u0e23\u0e30\u0e1c\u0e48\u0e32\u0e19\u0e1a\u0e31\u0e15\u0e23\u0e40\u0e04\u0e23\u0e14\u0e34\u0e15 \u0e2b\u0e23\u0e37\u0e2d\u0e0a\u0e33\u0e23\u0e30\u0e1c\u0e48\u0e32\u0e19\u0e1a\u0e31\u0e15\u0e23\u0e40\u0e14\u0e1a\u0e34\u0e15 \u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e19<\/p>\n<p>\u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14 <a href=\"http:\/\/www.codebee.co.th\/labs\/examples\/Payment.zip\" target=\"_blank\">Payment Controller<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e17\u0e33\u0e40\u0e27\u0e47\u0e1a E-Commerce \u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\u0e2d\u0e2d\u0e19\u0e44\u0e25\u0e19\u0e4c\u0e43\u0e0a\u0e49\u0e23\u0e30\u0e1a\u0e1a Paypal API Paypal \u0e04\u0e37\u0e2d\u0e23\u0e30\u0e1a\u0e1a\u0e01\u0e32\u0e23\u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\u0e41\u0e25\u0e30\u0e0b\u0e37\u0e49\u0e2d\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e41\u0e1a\u0e1a\u0e2d\u0e2d\u0e19\u0e44\u0e25\u0e19\u0e4c \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e1a\u0e31\u0e15\u0e23\u0e40\u0e04\u0e23\u0e14\u0e34\u0e15 \u0e1a\u0e31\u0e15\u0e23\u0e40\u0e14\u0e1a\u0e34\u0e15\u0e42\u0e14\u0e22\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e2a\u0e21\u0e31\u0e04\u0e23\u0e43\u0e0a\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23 \u0e17\u0e31\u0e49\u0e07\u0e41\u0e1a\u0e1a\u0e1a\u0e38\u0e04\u0e04\u0e25\u0e18\u0e23\u0e23\u0e21\u0e14\u0e32\u0e41\u0e25\u0e30\u0e19\u0e34\u0e15\u0e34\u0e1a\u0e38\u0e04\u0e04\u0e25 \u0e40\u0e1e\u0e22\u0e4c\u0e1e\u0e32\u0e25\u0e40\u0e1b\u0e23\u0e35\u0e22\u0e1a\u0e44\u0e14\u0e49\u0e01\u0e31\u0e1a\u0e18\u0e19\u0e32\u0e04\u0e32\u0e23\u0e41\u0e1a\u0e1a\u0e2d\u0e2d\u0e19\u0e44\u0e25\u0e19\u0e4c\u0e0b\u0e36\u0e48\u0e07\u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a\u0e04\u0e27\u0e32\u0e21\u0e19\u0e34\u0e22\u0e21\u0e44\u0e1b\u0e17\u0e31\u0e48\u0e27\u0e42\u0e25\u0e01 \u0e42\u0e14\u0e22\u0e21\u0e35\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e01\u0e31\u0e19\u0e2d\u0e22\u0e48\u0e32\u0e07 \u0e41\u0e1e\u0e23\u0e48\u0e2b\u0e25\u0e32\u0e22\u0e43\u0e19\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30\u0e01\u0e32\u0e23\u0e0b\u0e37\u0e49\u0e2d\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e40\u0e27\u0e47\u0e1a\u0e02\u0e32\u0e22\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e2d\u0e2d\u0e19\u0e44\u0e25\u0e19\u0e4c (e-commerce)<\/p>\n","protected":false},"author":1,"featured_media":1305,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"video","meta":{"footnotes":""},"categories":[168],"tags":[323,317,316,318,319,322,933,371,614,320,549,501,324,321,935],"class_list":{"0":"post-1290","1":"post","2":"type-post","3":"status-publish","4":"format-video","5":"has-post-thumbnail","6":"hentry","7":"category--php-codeigniter-framework","8":"tag-codeigniter-paypal","9":"tag-paypal-api","10":"tag-paypal-","11":"tag-318","12":"tag--paypal","13":"tag--paypal-api","14":"tag-933","15":"tag-371","16":"tag-614","18":"tag-549","19":"tag-501","20":"tag--php-paypal","22":"tag-935","23":"post_format-post-format-video"},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/1290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/comments?post=1290"}],"version-history":[{"count":22,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/1290\/revisions"}],"predecessor-version":[{"id":1341,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/1290\/revisions\/1341"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/media\/1305"}],"wp:attachment":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/media?parent=1290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/categories?post=1290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/tags?post=1290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}