Utwórz customizację
curl --request POST \
--url https://gateway-api.sandbox.paymove.io/api/pay/product/{productId}/customization \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"title": "Nowy produkt",
"subtitle": "Subtytuł",
"summaryHeader": "Nagłówek podsumowania",
"summaryFirstLine": "Pierwsza linia",
"summarySecondLine": "Druga linia",
"buttonText": "Kup teraz",
"cardDescription": "Opis karty",
"locale": "pl-PL"
}
'import requests
url = "https://gateway-api.sandbox.paymove.io/api/pay/product/{productId}/customization"
payload = {
"title": "Nowy produkt",
"subtitle": "Subtytuł",
"summaryHeader": "Nagłówek podsumowania",
"summaryFirstLine": "Pierwsza linia",
"summarySecondLine": "Druga linia",
"buttonText": "Kup teraz",
"cardDescription": "Opis karty",
"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({
title: 'Nowy produkt',
subtitle: 'Subtytuł',
summaryHeader: 'Nagłówek podsumowania',
summaryFirstLine: 'Pierwsza linia',
summarySecondLine: 'Druga linia',
buttonText: 'Kup teraz',
cardDescription: 'Opis karty',
locale: 'pl-PL'
})
};
fetch('https://gateway-api.sandbox.paymove.io/api/pay/product/{productId}/customization', 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/pay/product/{productId}/customization",
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([
'title' => 'Nowy produkt',
'subtitle' => 'Subtytuł',
'summaryHeader' => 'Nagłówek podsumowania',
'summaryFirstLine' => 'Pierwsza linia',
'summarySecondLine' => 'Druga linia',
'buttonText' => 'Kup teraz',
'cardDescription' => 'Opis karty',
'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/pay/product/{productId}/customization"
payload := strings.NewReader("{\n \"title\": \"Nowy produkt\",\n \"subtitle\": \"Subtytuł\",\n \"summaryHeader\": \"Nagłówek podsumowania\",\n \"summaryFirstLine\": \"Pierwsza linia\",\n \"summarySecondLine\": \"Druga linia\",\n \"buttonText\": \"Kup teraz\",\n \"cardDescription\": \"Opis karty\",\n \"locale\": \"pl-PL\"\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/pay/product/{productId}/customization")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Nowy produkt\",\n \"subtitle\": \"Subtytuł\",\n \"summaryHeader\": \"Nagłówek podsumowania\",\n \"summaryFirstLine\": \"Pierwsza linia\",\n \"summarySecondLine\": \"Druga linia\",\n \"buttonText\": \"Kup teraz\",\n \"cardDescription\": \"Opis karty\",\n \"locale\": \"pl-PL\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway-api.sandbox.paymove.io/api/pay/product/{productId}/customization")
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 \"title\": \"Nowy produkt\",\n \"subtitle\": \"Subtytuł\",\n \"summaryHeader\": \"Nagłówek podsumowania\",\n \"summaryFirstLine\": \"Pierwsza linia\",\n \"summarySecondLine\": \"Druga linia\",\n \"buttonText\": \"Kup teraz\",\n \"cardDescription\": \"Opis karty\",\n \"locale\": \"pl-PL\"\n}"
response = http.request(request)
puts response.read_bodyPersonalizacja UI
Utwórz customizację
Tworzy customizację dla produktu — wszystkie teksty widoczne na stronie zakupu (tytuły, przyciski, opisy) konfigurowane z poziomu API.
POST
/
api
/
pay
/
product
/
{productId}
/
customization
Utwórz customizację
curl --request POST \
--url https://gateway-api.sandbox.paymove.io/api/pay/product/{productId}/customization \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"title": "Nowy produkt",
"subtitle": "Subtytuł",
"summaryHeader": "Nagłówek podsumowania",
"summaryFirstLine": "Pierwsza linia",
"summarySecondLine": "Druga linia",
"buttonText": "Kup teraz",
"cardDescription": "Opis karty",
"locale": "pl-PL"
}
'import requests
url = "https://gateway-api.sandbox.paymove.io/api/pay/product/{productId}/customization"
payload = {
"title": "Nowy produkt",
"subtitle": "Subtytuł",
"summaryHeader": "Nagłówek podsumowania",
"summaryFirstLine": "Pierwsza linia",
"summarySecondLine": "Druga linia",
"buttonText": "Kup teraz",
"cardDescription": "Opis karty",
"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({
title: 'Nowy produkt',
subtitle: 'Subtytuł',
summaryHeader: 'Nagłówek podsumowania',
summaryFirstLine: 'Pierwsza linia',
summarySecondLine: 'Druga linia',
buttonText: 'Kup teraz',
cardDescription: 'Opis karty',
locale: 'pl-PL'
})
};
fetch('https://gateway-api.sandbox.paymove.io/api/pay/product/{productId}/customization', 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/pay/product/{productId}/customization",
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([
'title' => 'Nowy produkt',
'subtitle' => 'Subtytuł',
'summaryHeader' => 'Nagłówek podsumowania',
'summaryFirstLine' => 'Pierwsza linia',
'summarySecondLine' => 'Druga linia',
'buttonText' => 'Kup teraz',
'cardDescription' => 'Opis karty',
'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/pay/product/{productId}/customization"
payload := strings.NewReader("{\n \"title\": \"Nowy produkt\",\n \"subtitle\": \"Subtytuł\",\n \"summaryHeader\": \"Nagłówek podsumowania\",\n \"summaryFirstLine\": \"Pierwsza linia\",\n \"summarySecondLine\": \"Druga linia\",\n \"buttonText\": \"Kup teraz\",\n \"cardDescription\": \"Opis karty\",\n \"locale\": \"pl-PL\"\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/pay/product/{productId}/customization")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Nowy produkt\",\n \"subtitle\": \"Subtytuł\",\n \"summaryHeader\": \"Nagłówek podsumowania\",\n \"summaryFirstLine\": \"Pierwsza linia\",\n \"summarySecondLine\": \"Druga linia\",\n \"buttonText\": \"Kup teraz\",\n \"cardDescription\": \"Opis karty\",\n \"locale\": \"pl-PL\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway-api.sandbox.paymove.io/api/pay/product/{productId}/customization")
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 \"title\": \"Nowy produkt\",\n \"subtitle\": \"Subtytuł\",\n \"summaryHeader\": \"Nagłówek podsumowania\",\n \"summaryFirstLine\": \"Pierwsza linia\",\n \"summarySecondLine\": \"Druga linia\",\n \"buttonText\": \"Kup teraz\",\n \"cardDescription\": \"Opis karty\",\n \"locale\": \"pl-PL\"\n}"
response = http.request(request)
puts response.read_bodyAutoryzacje
Klucz API dostarczony przez Paymove po zakończeniu procesu KYC.
Przykład: sk_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Parametry ścieżki
Identyfikator produktu (id z odpowiedzi przy tworzeniu produktu)
Przykład:
"d0a834f9-94a4-4b3a-aa10-27d911e3633f"
Treść
application/json
Główny tytuł strony/produktu — nagłówek na górze widoku zakupu
Tekst pod tytułem
Tekst przycisku akcji (np. „Kup teraz", „Zapłać")
Nagłówek sekcji podsumowania zamówienia
Pierwsza linia w sekcji podsumowania
Druga linia w sekcji podsumowania
Opis wyświetlany na karcie/listingu produktu
Język/wersja językowa (np. pl-PL, en-GB)
Przykład:
"pl-PL"
Odpowiedź
200
Customizacja utworzona
⌘I