Paymentwall website uses cookies to store your browsing preferences on your device. However, cookies do not collect personal information.

For more information about how we use cookies, check our cookie policy

Close

Documentation

New Documentation Getting Started API Libraries APIs Checklists Flows Integrations Mobile SDKs Reference Smart TV SDK SpiderPipe Testing Payments
Contacts
If you still have questions regarding integration, please email us at devsupport@paymentwall.com

Geolocation API

This API can be used for client-side or server-side detection of user location based on user's IP. This API also works tightly with Paymentwall Risk Scoring.

Request

Request Endpoint

https://api.paymentwall.com/api/rest/country

Request Method

GET

Request Parameters

parameter is required description
key yes your Paymentwall Project Key
uid yes identifier of the end-user
user_ip no IP address of the end-user, e.g. 255.255.255.255
callback no callback function, can be used for JSONP on clientside

Sample Request

https://api.paymentwall.com/api/rest/country?key={$appkey}&uid={$uid}[&user_ip={$user_ip}][&callback={$callbackFunction}]


Response

Sample response if callback parameter is present:

callbackFunction({"code":"DE","name":"Germany"});

Sample response if callback is not present:

{"code":"DE","name":"Germany"}
This page needs JavaScript
Your browser is
not supported anymore.
Please update to the more recent one.
This page needs JavaScript
This page needs JavaScript.
Please enable it in your browser settings and try again.
페이먼트월은 보다 나은 사용자 환경 개선을 위해 동의된 페이먼트월 쿠키정책에 한하여 쿠키를 사용합니다. 쿠키 정책 보기.