tbc-credit-card-payment-gateway-php-lib icon indicating copy to clipboard operation
tbc-credit-card-payment-gateway-php-lib copied to clipboard

space replace

Open georgechaduneli opened this issue 6 years ago • 3 comments

გამარჯობა, php-ში $_GET, $_REQUEST ში + სიმბოლო დარეზერვებულია და გარდაიქმნება სფეისად. ხშირად ტრანზაქციის id გენერირდება + სიმბოლოთი, რის გამოც ტრანზაქციები ვერ სრულდება.

georgechaduneli avatar Dec 07 '17 19:12 georgechaduneli

მადლობა, pull-ისთვის.

თუმცა უცნაურია, სატესტო საიტზე არის + იანი trans_id-ები და ჩოულებრივად სრულდება.

screen shot 2017-12-08 at 12 09 48 am

შემთხვევით 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-ზე არაფერი წერია.

sandrodz avatar Dec 07 '17 20:12 sandrodz

არა არ ვიყენებ, ეგ რომ გამოიყენო თიბისიზე რედაირექტის დროს ვერ პოულობს ტრანზაქციას.

georgechaduneli avatar Dec 07 '17 21:12 georgechaduneli

ოკ, შეგიძლია ეს მაგალითი ნახო თუ მუშაობს შენ სერვერზე? ყველაფერი აქვს ამას, sqlite3 db-შექმენი და ვნახოთ ტრანზაქციები როგორ მიდის: https://github.com/wearede/tbcpay-php-example

sandrodz avatar Dec 14 '17 19:12 sandrodz