Closed ibrahim-atif closed 2 years ago
Hello, please provide a code snippet explaining which value are you referring to.
I'm assuming you mean the server host, which indicates your own host, all requests will fail until you implement the required endpoints on your server and provide it on initialization as in the example.
Follow this guide from HyperPay to setup your server.
I have the same issue , I am using "https://test.oppwa.com/" for test and get this Unhandled Exception: FormatException: Illegal IPv6 address, an IPv6 part can only contain a maximum of 4 hex digits (at character 1) @pr-Mais @ibraheem-nt @
Have you implemented your own endpoints on your own server as shown clearly in this guide?
The call to test.oppwa.com
shouldn't be the host in your client app, it must happen server-to-server.
String _host = 'test.oppwa.com';
Uri _checkoutEndpoint = Uri( scheme: 'https', host: _host, path: '', );
Uri _statusEndpoint = Uri( scheme: 'https', host: _host, path: '', );
/// Initialize HyperPay session
Future
When I did that I got this response "Empty Html tag " :
==> FormatException: Unexpected character (at character 1)
==> <html></html>
==> ^
Do you mean that the host name should be my own ? even on test Mode? @pr-Mais
Yes even on test mode. You will need to set your backend either ways to accept both testing and production environments.
Ok thanks a lot , Is this the reason why I get this response :
==> FormatException: Unexpected character (at character 1)
==> <html></html>
==> ^
@pr-Mais
Most probably yes. It's not the response the plugin is expecting.
String _host = 'karaj-payment.cc';
Uri _checkoutEndpoint = Uri(
scheme: 'https',
host: _host,
path: '/shopper/redirect',
);
Uri _statusEndpoint = Uri(
scheme: 'https',
host: _host,
path: '',
);
Is this Right ?
Now I am getting this error :
HandshakeException: Handshake error in client (OS Error:
CERTIFICATE_VERIFY_FAILED: certificate has expired(handshake.cc:393))
@pr-Mais
It's recommended that you use Postman to verify that your server endpoint is working as intended first.
Dear eng. I hope you are fine. I just have small question which is String_host Value what do mean with it as i assigned "https://test.oppwa.com/" To it but it is false as in the run in terminal it says sting-host value is 4 hex digits. So i need your help. Besy regards.