المدفوعات
مدفوعات العملات الرقمية — صفحة دفع مستضافة وواجهة برمجية لأكثر من 110 عملة العلامة البيضاء — علامتك التجارية على مسار الدفع بالكامل معالجة الأموال — تحويل تلقائي وسحوبات وأدوات تحكّم الدفعات الجماعية — إرسال جماعي للعملات الرقمية عبر الواجهة البرمجية أو ملف المنصات — مدفوعات وعمولات لمنصات البيع القطاعات — مدفوعات العملات الرقمية للألعاب والاستضافة وSaaS وغيرها طرق الدفع — العملات الرقمية والبطاقات وApple Pay وPayPal والطرق المحلية
التبادل الإضافات برنامج الشركاء الأسعار المدونة التوثيق اتصل بنا
اللغة
تسجيل الدخول
API and webhooks

SDKs and the popup checkout

Ready-made code for PHP, Node.js and Python, and a checkout that opens on your page.

Updated 1 min read

SDKs

There are SDKs for PHP, Node.js and Python. Each wraps the API and includes the webhook signature check.

  1. Download the SDK's zip from Plugins.
  2. Unpack it into your project and include it as its README shows.
The SDKs are installed from the zip. They aren't on Packagist, npm or PyPI, so composer require, npm install and pip install won't find them.

Instead of sending the customer away to the checkout page, you can open it in a popup over your own page.

  1. Create the payment on your server as usual.
  2. Load cryptopayr.js on your page and open the popup with the payment's ID.
  3. Your page is told when the customer has paid or closed the window.

The popup tells your page what happened, but your server should still rely on the webhook or a lookup before delivering. Details: the docs.

Everything else

The API reference has examples in cURL, PHP, Node.js and Python for every request, and there is an OpenAPI file and a Postman collection to import.

Was this article helpful?