{"id":199370,"date":"2013-10-28T17:37:02","date_gmt":"2013-10-28T13:37:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=199370"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=199370","title":{"rendered":"<span class=\"post_title\">\u041a\u0430\u043a \u043c\u044b \u043f\u043e\u0434\u0440\u0443\u0436\u0438\u043b\u0438\u0441\u044c \u0441 PayPal<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" align=\"left\" src=\"http:\/\/habr.habrastorage.org\/post_images\/dfa\/7bb\/72c\/dfa7bb72c920453fcb9e1ee0c3186868.jpg\"\/><br \/>  \u0414\u043e\u0440\u043e\u0433\u043e\u0439 \u0438\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0439 \u0433\u043e\u0441\u0442\u044c \u0441 \u0444\u0430\u043c\u0438\u043b\u0438\u0435\u0439 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0439, \u0447\u0442\u043e\u0431\u044b \u0435\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u0433\u0440\u0430\u0436\u0434\u0430\u043d\u0438\u043d PayPal \u0442\u043e\u043b\u044c\u043a\u043e-\u0442\u043e\u043b\u044c\u043a\u043e \u00ab\u0441\u043e\u0448\u0435\u043b \u0441 \u043a\u043e\u0440\u0430\u0431\u043b\u044f\u00bb \u043d\u0430 \u043e\u0442\u0435\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u00ab\u043f\u0440\u0438\u0447\u0430\u043b\u00bb, \u043d\u043e \u0443\u0436\u0435 \u0443\u0441\u043f\u0435\u043b \u0441\u0442\u0430\u0442\u044c \u0441\u0432\u043e\u0438\u043c \u043d\u0430 \u0431\u0430\u043b\u0443, \u0433\u0434\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u043a\u0440\u0443\u0442\u044f\u0442 \u0442\u0430\u043d\u0446\u044b \u0432\u0441\u0435\u0445 \u0441\u0442\u0438\u043b\u0435\u0439 \u0438 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0439 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u0433\u043e \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430. \u041c\u044b \u043d\u0435 \u0441\u0442\u0430\u043b\u0438 \u0441\u0442\u043e\u044f\u0442\u044c \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0438 \u043f\u043e\u0441\u043f\u0435\u0448\u0438\u043b\u0438 \u0437\u0430\u0432\u0435\u0441\u0442\u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441\u043e \u0441\u0442\u043e\u043b\u044c \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u043c \u0442\u043e\u0432\u0430\u0440\u0438\u0449\u0435\u043c, \u0434\u043e\u0431\u0430\u0432\u0438\u0432, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0438 \u0435\u0433\u043e \u0434\u043e\u0431\u0440\u043e\u0435 \u0438\u043c\u044f \u0432 \u0441\u0432\u043e\u0439 <a href=\"https:\/\/unitpay.ru\/tariff\">\u0441\u043f\u0438\u0441\u043e\u043a \u0434\u0440\u0443\u0437\u0435\u0439<\/a>. \u0421 \u043a\u0430\u043a\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043f\u043e\u0434\u043e\u0439\u0442\u0438, \u043e \u0447\u0435\u043c \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u0438 \u043a\u0430\u043a \u043f\u0440\u0438\u0432\u043b\u0435\u0447\u044c \u0435\u0433\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0447\u0438\u0442\u0430\u0435\u043c \u0432 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c.<a name=\"habracut\"><\/a><br \/>  <br clear=\"all\"\/>  <\/p>\n<h4>\u0414\u0440\u0443\u0436\u0431\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u0443\u043b\u044b\u0431\u043a\u0438<\/h4>\n<p>  \u041f\u0435\u0440\u0432\u044b\u0439 \u0440\u043e\u0431\u043a\u0438\u0439 \u0448\u0430\u0433 \u043d\u0430 \u043f\u0443\u0442\u0438 \u043a \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0434\u0440\u0443\u0436\u0431\u0435 \u2013 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u0442\u043e \u0435\u0441\u0442\u044c, \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f, \u0433\u0434\u0435 \u0432 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u043e\u0439 \u0434\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438, \u0447\u0442\u043e \u0438 \u0431\u044b\u043b\u043e \u043d\u0430\u043c\u0438 \u0434\u043e\u0431\u0440\u043e\u0441\u043e\u0432\u0435\u0441\u0442\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/094\/cb9\/b05\/094cb9b055649abf41f641b5baa3eeeb.png\"\/><\/p>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u043b\u0435\u0433\u043a\u0438\u0445 \u0438 \u043d\u0435\u043f\u0440\u0438\u043d\u0443\u0436\u0434\u0435\u043d\u043d\u044b\u0445 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u044b \u0443\u0441\u043f\u0435\u043b\u0438 \u043c\u044b\u0441\u043b\u0435\u043d\u043d\u043e \u043e\u0431\u0440\u0430\u0434\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u043d\u0430\u0441 \u043e\u0436\u0438\u0434\u0430\u043b\u043e \u043d\u0435\u043f\u0440\u0438\u0432\u0435\u0442\u043b\u0438\u0432\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0438 \u0441\u0447\u0435\u0442\u0430 \u0438 \u043f\u0440\u043e\u0441\u044c\u0431\u0430 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0446\u0435\u043b\u044b\u0439 \u0440\u044f\u0434 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430. \u041d\u0435 \u0443\u0441\u043f\u0435\u043b\u0438 \u043c\u044b \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435, \u043a\u0430\u043a, \u043a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0432 \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f PayPal \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043b \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u044e\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043b\u0438\u0446. \u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0443 \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 PayPal. \u041d\u043e \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u0440\u0430\u043d\u043e \u0431\u044b\u043b\u043e \u0440\u0430\u0434\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u2014 \u043f\u0435\u0440\u0432\u044b\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439 \u0444\u043e\u0440\u043c\u0430 \u043f\u043e\u043f\u0440\u043e\u0441\u0442\u0443 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430. \u041c\u044b \u0447\u0435\u0441\u0442\u043d\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u043b\u0438 \u0432\u0441\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0438 \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f, \u043d\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0443 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438, \u043a\u0430\u043a \u043d\u0438 \u0441\u0442\u0430\u0440\u0430\u043b\u0438\u0441\u044c, \u044d\u0442\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u043b\u043e\u0441\u044c \u0441\u043d\u043e\u0432\u0430 \u0438 \u0441\u043d\u043e\u0432\u0430. \u041d\u0435 \u0440\u0430\u0441\u0442\u0435\u0440\u044f\u0432 \u0440\u0435\u0448\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438 \u0438\u043c\u0435\u044f \u0432 \u0437\u0430\u043f\u0430\u0441\u0435 \u043d\u0435\u043c\u0430\u043b\u043e \u0443\u043f\u043e\u0440\u0441\u0442\u0432\u0430, \u0441\u043f\u0443\u0441\u0442\u044f \u043d\u0435\u0434\u0435\u043b\u044e \u043c\u044b \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043b\u0438 \u201c\u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u201d \u0438, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0434\u043e\u043b\u0433\u043e\u0436\u0434\u0430\u043d\u043d\u043e\u0435 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435, \u0430 \u0432 \u0441\u043a\u043e\u0440\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u0437\u0430\u0432\u0435\u0442\u043d\u043e\u0435 \u043f\u0438\u0441\u044c\u043c\u043e \u043e\u0442 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 PayPal.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/1eb\/3b1\/da1\/1eb3b1da19ee1da1d8e6fd34555fb8f8.png\"\/><\/p>\n<h4>\u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0434\u0440\u0443\u0433 \u043f\u043e\u0437\u043d\u0430\u0435\u0442\u0441\u044f \u0432 API<\/h4>\n<p>  \u0420\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432\u043e \u0432\u0441\u0435\u0445 \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u044f\u0445 <a href=\"https:\/\/developer.paypal.com\/webapps\/developer\/docs\/api\/\">\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 PayPal<\/a> \u0434\u0435\u043b\u043e \u043d\u0435 \u043b\u0435\u0433\u043a\u043e\u0435. \u0420\u0430\u0437\u0431\u0440\u043e\u0441\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u0447\u0430\u0441\u0442\u044f\u043c \u0441\u0430\u0439\u0442\u0430 \u043a\u0443\u0441\u043a\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0439, \u0442\u044f\u0436\u0435\u043b\u043e\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u0438\u0435 SOAP, \u0432\u0441\u0435\u043e\u0431\u0449\u0430\u044f \u043c\u0435\u0448\u0430\u043d\u0438\u043d\u0430 \u0441\u0442\u0435\u043a\u0430 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 (NVP, SOAP, REST) \u0438 \u043d\u0435\u0445\u0432\u0430\u0442\u043a\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0441\u0432\u043e\u0435 \u0434\u0435\u043b\u043e. \u0422\u0438\u043f\u0438\u0447\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435\u0440\u0430\u0437\u0431\u0435\u0440\u0438\u0445\u0438, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c\u043e\u0435 \u043e\u0434\u043d\u0438\u043c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u043c, \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u043c \u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442.<br \/>  \u041d\u043e \u043f\u0443\u0442\u044c \u0432 \u0442\u044b\u0441\u044f\u0447\u0443 \u043c\u0438\u043b\u044c \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0448\u0430\u0433\u0430, \u043e\u0442\u0431\u0440\u043e\u0441\u0438\u0432 \u0432\u0441\u0435 \u0441\u043e\u043c\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0447\u044c, \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0439 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 REST API, \u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0431\u0435\u0440\u0442\u043a\u0438 \u043a \u043d\u0435\u043c\u0443 \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0438\u0445 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 <a href=\"https:\/\/github.com\/paypal\/rest-api-sdk-php\">PHP SDK<\/a>. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0435\u0449\u0438, \u043f\u0440\u0430\u0432\u0434\u0430, \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0434\u043e\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c \u0441\u0430\u043c\u0438\u043c, \u0438\u0441\u0441\u043b\u0435\u0434\u0443\u044f \u043a\u043e\u0434. <\/p>\n<p>  \u041e\u0431\u0449\u0443\u044e \u0438\u0434\u0435\u044e \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0448\u0430\u0433\u0430\u0445:<\/p>\n<ol>\n<li>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c <a href=\"https:\/\/developer.paypal.com\/webapps\/developer\/applications\/myapps\">PayPal Application<\/a>, \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u0430\u0440 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 client_id \u0438 secret_key \u0434\u043b\u044f live \u0438 sandbox \u0440\u0435\u0436\u0438\u043c\u0430:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/582\/83e\/586\/58283e58619b55fd49909dbc70daacbe.png\"\/>\n<\/li>\n<li>\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c OAuth \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e:<br \/> \n<pre><code class=\"php\">$apiContext = new ApiContext(new OAuthTokenCredential( $clientId, $clientSecret)); $apiContext-&gt;setConfig([ 'mode' =&gt; 'live']); <\/code><\/pre>\n<p>   <\/li>\n<li>\u0414\u0435\u043b\u0430\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u0430. \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043e\u043f\u043b\u0430\u0442\u0443 \u0441\u043e \u0441\u0447\u0435\u0442\u0430 paypal, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0439 \u043a \u043d\u0435\u043c\u0443 \u043a\u0430\u0440\u0442\u044b \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 \u043e\u043f\u043b\u0430\u0442\u044b: paypal<br \/> \n<pre><code class=\"php\">$payer = new Payer(); $payer-&gt;setPaymentMethod('paypal'); $amount = new Amount(); $amount-&gt;setCurrency('RUB'); $amount-&gt;setTotal('10'); $item1 = new Item(); $item1-&gt;setName('\u041f\u0440\u043e\u0434\u0430\u0436\u0430 \u0442\u043e\u0432\u0430\u0440\u0430\/\u0443\u0441\u043b\u0443\u0433\u0438')-&gt;setCurrency('RUB')-&gt;setQuantity(1)-&gt;setPrice('10'); \/\/ \u0418\u0434 \u0442\u043e\u0432\u0430\u0440\u0430\/\u0443\u0441\u043b\u0443\u0433\u0438 \u043d\u0430 \u0432\u0430\u0448\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 $item1-&gt;setSku('1000'); $itemList = new ItemList(); $itemList-&gt;setItems(array($item1)); $transaction = new Transaction(); $transaction-&gt;setAmount($amount); $transaction-&gt;setDescription('Payment to UnitPay'); $transaction-&gt;setItemList($itemList); $payment = new Payment(); $payment-&gt;setIntent('sale'); $payment-&gt;setPayer($payer); $payment-&gt;setTransactions(array($transaction)); $payment&gt;setRedirectUrls(array(     &quot;return_url&quot; =&gt; $resultUrl,     &quot;cancel_url&quot; =&gt; $resultUrl )); $payment-&gt;create($apiContext); <\/code><\/pre>\n<p>   <\/li>\n<li>\u0412 \u043e\u0442\u0432\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u043e\u043c\u0435\u0440 \u043f\u043b\u0430\u0442\u0435\u0436\u0430 \u0432 PayPal \u0438 redirectURL \u0444\u043e\u0440\u043c\u044b \u043e\u043f\u043b\u0430\u0442\u044b, \u043a\u0443\u0434\u0430 \u0438 \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:<br \/> \n<pre><code class=\"php\">\/\/ ID \u043f\u043b\u0430\u0442\u0435\u0436\u0430, \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0441 \u0437\u0430\u043a\u0430\u0437\u043e\u043c \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u0411\u0414 $payment-&gt;getId(); $links = $payment-&gt;getLinks(); foreach ($links as $link) {     if ($link-&gt;getMethod() == 'REDIRECT') {         header('location:'.$link-&gt;getHref());         return;     } } <\/code><\/pre>\n<p>  <\/li>\n<li>\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u0441\u0447\u0435\u0442\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/044\/866\/b34\/044866b34908293bb89de72052f0edde.png\"\/>\n<\/li>\n<li>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0441 GET \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 token, PayerID \u043d\u0430 $resultUrl (\u0441\u043c. \u0448\u0430\u0433 3).  <\/li>\n<li>\u0414\u0435\u043d\u044c\u0433\u0438 \u0441\u043f\u0438\u0441\u0430\u043d\u044b, \u043d\u043e \u043f\u043b\u0430\u0442\u0435\u0436 \u0435\u0449\u0435 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d. \u0413\u043e\u0432\u043e\u0440\u0438\u043c PayPal, \u0447\u0442\u043e \u0434\u0430, \u043c\u044b \u0442\u043e\u0447\u043d\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u043c \u043f\u043b\u0430\u0442\u0435\u0436: <br \/> \n<pre><code class=\"php\">$apiContext = new ApiContext(new OAuthTokenCredential(     $clientId, $clientSecret)); $apiContext-&gt;setConfig([ 'mode' =&gt; 'live']); $payment = Payment::get($payment-&gt;getExternalPaymentId(), $apiContext); $paymentExecution= new PaymentExecution(); $paymentExecution-&gt;setPayerId($payerId); $payment-&gt;execute($paymentExecution, $apiContext); <\/code><\/pre>\n<p>  <\/li>\n<li>\u041e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e PayPal \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u043e \u043f\u043b\u0430\u0442\u0435\u0436\u0430\u0445 \u043d\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 URL, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u0443 \u043d\u0438\u0445 <a href=\"https:\/\/www.paypal.com\/ru\/cgi-bin\/webscr?cmd=p\/acc\/ipn-info-outside\">IPN<\/a>:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/ccf\/bf1\/0ee\/ccfbf10eeafc068f4fe2cdd9447cfc34.png\"\/>\n<p>  \u041a\u0430\u0436\u0434\u043e\u0435 \u0442\u0430\u043a\u043e\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u0430\u043b\u0438\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u043d\u044b\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 PayPal. \u0422\u0430\u043a\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0441\u0432\u0435\u0440\u044f\u0442\u044c \u0441\u0443\u043c\u043c\u0443 \u043f\u043b\u0430\u0442\u0435\u0436\u0430, \u0432\u0430\u043b\u044e\u0442\u0443 \u0438 email \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f. \u041e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u0437\u0430\u0432\u0435\u0442\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u0442\u0443\u0441\u0430 completed \u0438 \u043f\u043b\u0430\u0442\u0435\u0436 \u043c\u043e\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u043c. \u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0441 IPN, \u0442\u043e \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 PayPal \u043e \u0441\u0442\u0430\u0442\u0443\u0441\u0430\u0445 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u044b\u0445 \u043f\u043b\u0430\u0442\u0435\u0436\u0435\u0439, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0447\u0435\u0440\u0435\u0437 cron, \u0445\u043e\u0442\u044f IPN \u0432\u0441\u0435 \u0436\u0435 \u0443\u0434\u043e\u0431\u043d\u0435\u0439:  <\/p>\n<pre><code class=\"php\">$ipn = new PPIPNMessage(null, array(['mode' =&gt; 'live'])); if (!$ipn-&gt;validate()) { \tthrow new \\Exception('\u041d\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u0430 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0442\u0435\u0436\u0430 \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 PayPal'); } \/\/ $_GET['txn_id']          \u0418\u0434 \u043f\u043b\u0430\u0442\u0435\u0436\u0430 PayPal \/\/ $_GET['mc_gross']        \u0421\u0443\u043c\u043c\u0430 \u043f\u043b\u0430\u0442\u0435\u0436\u0430 \/\/ $_GET['mc_currency']     \u0412\u0430\u043b\u044e\u0442\u0430 \u043f\u043b\u0430\u0442\u0435\u0436\u0430 \/\/ $_GET['payer_email']     \u0415mail \u043f\u043b\u0430\u0442\u0435\u043b\u044c\u0449\u0438\u043a\u0430  \/\/ $_GET['item_number1']    \u0418\u0434 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u0430 \/\/ $_GET['payment_status']  \u0421\u0442\u0430\u0442\u0443\u0441 \u0437\u0430\u043a\u0430\u0437\u0430 \/\/ $_GET['receiver_email']  Email \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f switch ($_GET['payment_status']) { \t\/\/ \u041f\u043b\u0430\u0442\u0435\u0436 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d, \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0443\u0441\u043b\u0443\u0433\u0443 \tcase 'completed': break; \t\/\/ \u041f\u043b\u0430\u0442\u0435\u0436 \u043d\u0435 \u043f\u0440\u043e\u0448\u0435\u043b \tcase 'failed': break; \t\/\/ \u041f\u043b\u0430\u0442\u0435\u0436 \u043e\u0442\u043c\u0435\u043d\u0435\u043d \u043f\u0440\u043e\u0434\u0430\u0432\u0446\u043e\u043c \tcase 'denied': break; \t\/\/ \u0414\u0435\u043d\u044c\u0433\u0438 \u0431\u044b\u043b\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u044b \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u044e \tcase 'refunded': break; } <\/code><\/pre>\n<\/li>\n<\/ol>\n<p>  \u041d\u0430 \u043d\u0430\u0448 \u0432\u0437\u0433\u043b\u044f\u0434, \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0448\u0430\u0433\u043e\u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0445\u0435\u043c\u044b \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u0435: \u043c\u043e\u0436\u043d\u043e \u0443\u0431\u0440\u0430\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432 \u0430\u0434\u0440\u0435\u0441 PayPal \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043e \u043f\u043b\u0430\u0442\u0435\u0436\u0435, \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0432 \u043f\u0440\u0438\u0441\u043b\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u042d\u0442\u043e \u0436\u0435 \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u0438 \u043b\u0438\u0448\u043d\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0441 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435\u043c \u0443\u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043b\u0430\u0442\u0435\u0436\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u0422\u0430\u043a\u0436\u0435, \u043f\u043e\u043c\u0438\u043c\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043d\u043e\u043c\u0435\u0440\u0430 \u043f\u043b\u0430\u0442\u0435\u0436\u0430 PayPal, \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 token\u2019\u0430 \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0437\u0430\u043a\u0430\u0437\u0430 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0448\u0430\u0433\u0430 7. \u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 Url\u2019\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u0441 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c.<\/p>\n<p>  \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 API PayPal <a href=\"http:\/\/habrahabr.ru\/post\/128198\/\">\u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0437\u0430\u043f\u0443\u0442\u0430\u043d\u043d\u044b\u0445 \u0438 \u043d\u0435\u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u044b\u0445<\/a> \u0441\u0440\u0435\u0434\u0438 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c, \u043d\u043e \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0435\u0441\u043b\u0438, \u043d\u0435 \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u044f, \u0438\u0434\u0442\u0438 \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043f\u0442\u0430\u043d\u043d\u043e\u0439 \u0442\u0440\u043e\u043f\u0438\u043d\u043a\u0435, \u0442\u043e \u0432\u0441\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f.<\/p>\n<h4>\u041d\u0435 \u0438\u043c\u0435\u0439 \u0441\u0442\u043e \u0440\u0443\u0431\u043b\u0435\u0439, \u0430 \u0438\u043c\u0435\u0439 \u0441\u0442\u043e \u0434\u0440\u0443\u0437\u0435\u0439<\/h4>\n<p>  \u0412 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043c\u044b \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043b\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 PayPal \u0438 \u0433\u043e\u0442\u043e\u0432\u044b \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0440\u044f\u0434 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 \u0432\u044b\u0431\u043e\u0440.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0434\u0443\u043c\u0430\u043b\u0438\u0441\u044c \u043d\u0430\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u0435\u043c \u043f\u043b\u0430\u0442\u0435\u0436\u0435\u0439 \u0434\u043b\u044f \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u043a\u0430\u043a\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u043e\u043f\u043b\u0430\u0442\u044b \u0432\u0430\u043c \u043f\u043e\u0434\u043e\u0439\u0434\u0443\u0442 \u043f\u043e\u043c\u0438\u043c\u043e PayPal, \u0442\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u0441\u0430\u043c\u044b\u0439 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u2014 <a href=\"https:\/\/unitpay.ru\/pay\/demo\/mc?sum=10&amp;account=demo&amp;desc=DEMO+%D0%BF%D0%BB%D0%B0%D1%82%D0%B5%D0%B6+Unitpay.ru\">\u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0430 \u043e\u043f\u043b\u0430\u0442\u044b UnitPay<\/a>. \u0421\u0440\u0435\u0434\u0438 \u043f\u0440\u043e\u0447\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043e\u043f\u043b\u0430\u0442\u044b \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0438 PayPal.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/f1a\/c0e\/1f8\/f1ac0e1f88f7824013edbc87971e5431.png\"\/><\/p>\n<p>  \u0414\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u0443\u0436\u0435 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043b \u0441\u0432\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0435\u0433\u043e, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0432 PayPal, \u043c\u044b \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u043c \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u0448\u0438\u043c API, \u043f\u043e\u043b\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/b0a\/4f0\/0a5\/b0a4f00a53724a69d3fa8d943015fa98.png\"\/><\/p>\n<h4>\u0410 \u0447\u0442\u043e \u0434\u043b\u044f \u0441\u0442\u0440\u0430\u043d \u0421\u041d\u0413?<\/h4>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043f\u043e\u043a\u0430 PayPal \u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0440\u044f\u0434\u0430 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0445 \u043a \u043d\u0430\u043c \u0441\u0442\u0440\u0430\u043d. \u041c\u043d\u043e\u0433\u0438\u0435 \u0438\u0441\u043f\u044b\u0442\u044b\u0432\u0430\u044e\u0442 \u0441 \u044d\u0442\u0438\u043c \u0440\u044f\u0434 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0435\u0439 \u0438 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e <a href=\"http:\/\/habrahabr.ru\/post\/182790\/\">\u0440\u0430\u0437\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/a>. \u0414\u0443\u043c\u0430\u0435\u043c, \u0447\u0442\u043e \u0432 \u0441\u043a\u043e\u0440\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u044d\u0442\u0430 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f \u0432 \u043b\u0443\u0447\u0448\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443.<\/p>\n<h4>\u0412 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h4>\n<p>  PayPal \u0432 \u0420\u043e\u0441\u0441\u0438\u0438 \u0435\u0449\u0451 \u043e\u0447\u0435\u043d\u044c \u043c\u043e\u043b\u043e\u0434, \u043d\u043e \u0443 \u043d\u0435\u0433\u043e \u0431\u043e\u0433\u0430\u0442\u043e\u0435 \u043f\u0440\u043e\u0448\u043b\u043e\u0435 \u0438 \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b. \u041c\u044b \u043d\u0430\u0434\u0435\u0435\u043c\u0441\u044f, \u0447\u0442\u043e \u043f\u0440\u043e\u0439\u0434\u0435\u0442 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0438 \u043e\u043d \u0437\u0430\u0439\u043c\u0435\u0442 \u0441\u0432\u043e\u0435 \u0434\u043e\u0441\u0442\u043e\u0439\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0445 \u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u043d\u0430 \u043e\u0442\u0435\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u0440\u044b\u043d\u043a\u0435.    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/company\/unitmobile\/blog\/199370\/\"> http:\/\/habrahabr.ru\/company\/unitmobile\/blog\/199370\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" align=\"left\" src=\"http:\/\/habr.habrastorage.org\/post_images\/dfa\/7bb\/72c\/dfa7bb72c920453fcb9e1ee0c3186868.jpg\"\/><br \/>  \u0414\u043e\u0440\u043e\u0433\u043e\u0439 \u0438\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0439 \u0433\u043e\u0441\u0442\u044c \u0441 \u0444\u0430\u043c\u0438\u043b\u0438\u0435\u0439 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0439, \u0447\u0442\u043e\u0431\u044b \u0435\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u0433\u0440\u0430\u0436\u0434\u0430\u043d\u0438\u043d PayPal \u0442\u043e\u043b\u044c\u043a\u043e-\u0442\u043e\u043b\u044c\u043a\u043e \u00ab\u0441\u043e\u0448\u0435\u043b \u0441 \u043a\u043e\u0440\u0430\u0431\u043b\u044f\u00bb \u043d\u0430 \u043e\u0442\u0435\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u00ab\u043f\u0440\u0438\u0447\u0430\u043b\u00bb, \u043d\u043e \u0443\u0436\u0435 \u0443\u0441\u043f\u0435\u043b \u0441\u0442\u0430\u0442\u044c \u0441\u0432\u043e\u0438\u043c \u043d\u0430 \u0431\u0430\u043b\u0443, \u0433\u0434\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u043a\u0440\u0443\u0442\u044f\u0442 \u0442\u0430\u043d\u0446\u044b \u0432\u0441\u0435\u0445 \u0441\u0442\u0438\u043b\u0435\u0439 \u0438 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0439 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u0433\u043e \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430. \u041c\u044b \u043d\u0435 \u0441\u0442\u0430\u043b\u0438 \u0441\u0442\u043e\u044f\u0442\u044c \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u0438 \u043f\u043e\u0441\u043f\u0435\u0448\u0438\u043b\u0438 \u0437\u0430\u0432\u0435\u0441\u0442\u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441\u043e \u0441\u0442\u043e\u043b\u044c \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u043c \u0442\u043e\u0432\u0430\u0440\u0438\u0449\u0435\u043c, \u0434\u043e\u0431\u0430\u0432\u0438\u0432, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0438 \u0435\u0433\u043e \u0434\u043e\u0431\u0440\u043e\u0435 \u0438\u043c\u044f \u0432 \u0441\u0432\u043e\u0439 <a href=\"https:\/\/unitpay.ru\/tariff\">\u0441\u043f\u0438\u0441\u043e\u043a \u0434\u0440\u0443\u0437\u0435\u0439<\/a>. \u0421 \u043a\u0430\u043a\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043f\u043e\u0434\u043e\u0439\u0442\u0438, \u043e \u0447\u0435\u043c \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u0438 \u043a\u0430\u043a \u043f\u0440\u0438\u0432\u043b\u0435\u0447\u044c \u0435\u0433\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0447\u0438\u0442\u0430\u0435\u043c \u0432 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-199370","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/199370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=199370"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/199370\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=199370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=199370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=199370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}