curl --request POST \
--url https://gateway-api.sandbox.paymove.io/api/product/pay \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: sk_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
--data '{
"partnerId": "78562c79-2f5c-4415-8af4-c871eea92ef2",
"productType": "PAY",
"name": "Sklep Testowy",
"shortName": "SHOP1",
"location": "Warszawa",
"timezone": "Europe/Warsaw",
"productMetadata": { "locale": "pl-PL" }
}'
import requests
url = "https://gateway-api.sandbox.paymove.io/api/product/pay"
payload = {
"partnerId": "78562c79-2f5c-4415-8af4-c871eea92ef2",
"productType": "PAY",
"name": "Sklep Testowy",
"shortName": "SHOP1",
"location": "Warszawa",
"timezone": "Europe/Warsaw",
"productMetadata": { "locale": "pl-PL" }
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
partnerId: '78562c79-2f5c-4415-8af4-c871eea92ef2',
productType: 'PAY',
name: 'Sklep Testowy',
shortName: 'SHOP1',
location: 'Warszawa',
timezone: 'Europe/Warsaw',
productMetadata: {locale: 'pl-PL'}
})
};
fetch('https://gateway-api.sandbox.paymove.io/api/product/pay', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://gateway-api.sandbox.paymove.io/api/product/pay",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'partnerId' => '78562c79-2f5c-4415-8af4-c871eea92ef2',
'productType' => 'PAY',
'name' => 'Sklep Testowy',
'shortName' => 'SHOP1',
'location' => 'Warszawa',
'timezone' => 'Europe/Warsaw',
'productMetadata' => [
'locale' => 'pl-PL'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://gateway-api.sandbox.paymove.io/api/product/pay"
payload := strings.NewReader("{\n \"partnerId\": \"78562c79-2f5c-4415-8af4-c871eea92ef2\",\n \"productType\": \"PAY\",\n \"name\": \"Sklep Testowy\",\n \"shortName\": \"SHOP1\",\n \"location\": \"Warszawa\",\n \"timezone\": \"Europe/Warsaw\",\n \"productMetadata\": {\n \"locale\": \"pl-PL\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://gateway-api.sandbox.paymove.io/api/product/pay")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"partnerId\": \"78562c79-2f5c-4415-8af4-c871eea92ef2\",\n \"productType\": \"PAY\",\n \"name\": \"Sklep Testowy\",\n \"shortName\": \"SHOP1\",\n \"location\": \"Warszawa\",\n \"timezone\": \"Europe/Warsaw\",\n \"productMetadata\": {\n \"locale\": \"pl-PL\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway-api.sandbox.paymove.io/api/product/pay")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"partnerId\": \"78562c79-2f5c-4415-8af4-c871eea92ef2\",\n \"productType\": \"PAY\",\n \"name\": \"Sklep Testowy\",\n \"shortName\": \"SHOP1\",\n \"location\": \"Warszawa\",\n \"timezone\": \"Europe/Warsaw\",\n \"productMetadata\": {\n \"locale\": \"pl-PL\"\n }\n}"
response = http.request(request)
puts response.read_bodyUtwórz produkt (sklep)
Tworzy produkt reprezentujący Twój sklep w systemie Paymove.
Wszystkie płatności są tworzone w ramach tego produktu. Produkt tworzysz jednorazowo, przy starcie integracji.
Pole id z odpowiedzi to productId używany w pozostałych wywołaniach.
curl --request POST \
--url https://gateway-api.sandbox.paymove.io/api/product/pay \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: sk_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
--data '{
"partnerId": "78562c79-2f5c-4415-8af4-c871eea92ef2",
"productType": "PAY",
"name": "Sklep Testowy",
"shortName": "SHOP1",
"location": "Warszawa",
"timezone": "Europe/Warsaw",
"productMetadata": { "locale": "pl-PL" }
}'
import requests
url = "https://gateway-api.sandbox.paymove.io/api/product/pay"
payload = {
"partnerId": "78562c79-2f5c-4415-8af4-c871eea92ef2",
"productType": "PAY",
"name": "Sklep Testowy",
"shortName": "SHOP1",
"location": "Warszawa",
"timezone": "Europe/Warsaw",
"productMetadata": { "locale": "pl-PL" }
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
partnerId: '78562c79-2f5c-4415-8af4-c871eea92ef2',
productType: 'PAY',
name: 'Sklep Testowy',
shortName: 'SHOP1',
location: 'Warszawa',
timezone: 'Europe/Warsaw',
productMetadata: {locale: 'pl-PL'}
})
};
fetch('https://gateway-api.sandbox.paymove.io/api/product/pay', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://gateway-api.sandbox.paymove.io/api/product/pay",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'partnerId' => '78562c79-2f5c-4415-8af4-c871eea92ef2',
'productType' => 'PAY',
'name' => 'Sklep Testowy',
'shortName' => 'SHOP1',
'location' => 'Warszawa',
'timezone' => 'Europe/Warsaw',
'productMetadata' => [
'locale' => 'pl-PL'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://gateway-api.sandbox.paymove.io/api/product/pay"
payload := strings.NewReader("{\n \"partnerId\": \"78562c79-2f5c-4415-8af4-c871eea92ef2\",\n \"productType\": \"PAY\",\n \"name\": \"Sklep Testowy\",\n \"shortName\": \"SHOP1\",\n \"location\": \"Warszawa\",\n \"timezone\": \"Europe/Warsaw\",\n \"productMetadata\": {\n \"locale\": \"pl-PL\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://gateway-api.sandbox.paymove.io/api/product/pay")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"partnerId\": \"78562c79-2f5c-4415-8af4-c871eea92ef2\",\n \"productType\": \"PAY\",\n \"name\": \"Sklep Testowy\",\n \"shortName\": \"SHOP1\",\n \"location\": \"Warszawa\",\n \"timezone\": \"Europe/Warsaw\",\n \"productMetadata\": {\n \"locale\": \"pl-PL\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway-api.sandbox.paymove.io/api/product/pay")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"partnerId\": \"78562c79-2f5c-4415-8af4-c871eea92ef2\",\n \"productType\": \"PAY\",\n \"name\": \"Sklep Testowy\",\n \"shortName\": \"SHOP1\",\n \"location\": \"Warszawa\",\n \"timezone\": \"Europe/Warsaw\",\n \"productMetadata\": {\n \"locale\": \"pl-PL\"\n }\n}"
response = http.request(request)
puts response.read_bodyAutoryzacje
Klucz API generowany w Panelu Paymove.
Format: 51 znaków z prefiksem środowiska — sk_test_ w sandboxie,
sk_live_ na produkcji.
Przykład: sk_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Klucz przekazuj wyłącznie z serwera. Żądanie wysłane ze strony sklepu zostanie odrzucone — a klucz i tak nigdy nie może trafić do kodu frontendowego.
Treść
Identyfikator partnera (nadawany przez Paymove)
Typ produktu — dla bramki płatniczej PAY
PAY Nazwa produktu (sklepu)
Lokalizacja (np. miasto)
Strefa czasowa IANA
"Europe/Warsaw"
Opcjonalnie — krótka nazwa wyświetlana
Show child attributes
Show child attributes
Odpowiedź
Produkt utworzony — zwraca pełny obiekt produktu
Pełny obiekt produktu zwracany przez API
Identyfikator produktu (productId) używany w pozostałych wywołaniach
Show child attributes
Show child attributes
Prowizja skonfigurowana dla produktu
Show child attributes
Show child attributes
"ACTIVE"
"PAYMOVE"
Znacznik czasu (epoch, sekundy)
Znacznik czasu (epoch, sekundy)