tbc-credit-card-payment-gateway-php-lib
tbc-credit-card-payment-gateway-php-lib copied to clipboard
space replace
გამარჯობა, php-ში $_GET, $_REQUEST ში + სიმბოლო დარეზერვებულია და გარდაიქმნება სფეისად. ხშირად ტრანზაქციის id გენერირდება + სიმბოლოთი, რის გამოც ტრანზაქციები ვერ სრულდება.
მადლობა, pull-ისთვის.
თუმცა უცნაურია, სატესტო საიტზე არის + იანი trans_id-ები და ჩოულებრივად სრულდება.
![screen shot 2017-12-08 at 12 09 48 am](https://user-images.githubusercontent.com/8479569/33736469-295c1076-dbac-11e7-889c-4f24ad345636.png)
შემთხვევით rawurlencode-ს ხომ არ იყენებ? ეგ ქმნიდა პრობლემას, და რომელიღაც კომიტში ამვოაგდე: https://github.com/wearede/tbcpay-php/commit/815bed539f6c086dea0453e027fd3bd248900df3
დოკუმენტაციაშიც უწერია: http://php.net/manual/en/function.urlencode.php
Returns a string in which all non-alphanumeric characters except -_. have been replaced with a percent (%) sign followed by two hex digits and spaces encoded as plus (+) signs. It is encoded the same way that the posted data from a WWW form is encoded, that is the same way as in application/x-www-form-urlencoded media type. This differs from the » RFC 3986 encoding (see rawurlencode()) in that for historical reasons, spaces are encoded as plus (+) signs.
როცა $_REQUEST
-ზე არაფერი წერია.
არა არ ვიყენებ, ეგ რომ გამოიყენო თიბისიზე რედაირექტის დროს ვერ პოულობს ტრანზაქციას.
ოკ, შეგიძლია ეს მაგალითი ნახო თუ მუშაობს შენ სერვერზე? ყველაფერი აქვს ამას, sqlite3 db-შექმენი და ვნახოთ ტრანზაქციები როგორ მიდის: https://github.com/wearede/tbcpay-php-example