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

QuickPay-Callback-Url header is ignored #183

Open
mthorsdal opened this issue Dec 9, 2024 · 0 comments
Open

QuickPay-Callback-Url header is ignored #183

mthorsdal opened this issue Dec 9, 2024 · 0 comments

Comments

@mthorsdal
Copy link

When making a post request to /payments/{id}/capture, the additional header QuickPay-Callback-Url seem not to be attached - unless quickpay api ignores it. It insists on falling back to default callback url

$this->quickpay = new QuickPay(
':' . $api_key
[
'QuickPay-Callback-Url' => $callbackUrl
]
);

         // Capture the payment via QuickPay
        $response = $this->quickpay->request->post(
            "/payments/{$cardAuthorization->system_id}/capture",
            [
                'amount' => $validated['amount_in_cents'],
                'raw' => [
                    'synchronized' => $request->query('synchronized', false)
                ]
            ]
        );
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