Skip to content

Commit ce9ff4b

Browse files
authored
Update Payfast.php
trim values before urlencoding
1 parent aa2188d commit ce9ff4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Payfast/Payfast/Model/Payfast.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ public function getStandardCheckoutFormFields()
357357
{
358358
if (!empty( $val ))
359359
{
360-
$pfOutput .= $key .'='. urlencode( $val ) .'&';
360+
$pfOutput .= $key .'='. urlencode( trim( $val ) ) .'&';
361361
}
362362
}
363363

0 commit comments

Comments
 (0)