Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special chars in Order Info will cause signature calculating failed #3

Open
MrCorncob opened this issue Nov 3, 2019 · 0 comments
Open

Comments

@MrCorncob
Copy link

MrCorncob commented Nov 3, 2019

$orderInfo with special characters will render invalid when receiving response after successful payment.
Example:

$orderInfo = 'foo & bar';
$momoCaptureResponse = CaptureMoMo::process(
        $env,
        sprintf('MOMO-%s-%s', $order_id, time() . ""),
        $orderInfo,
        sprintf('%0d', $order_info['total']),
        "cs_order_id=" . $order_id,
        $requestId,
        $notify_url,
        $return_url
    );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant