결제
암호화폐 결제 — 110개 이상 코인을 지원하는 호스팅 결제창과 API 화이트 라벨 — 결제 흐름 전체를 내 브랜드로 자금 처리 — 자동 전환, 출금, 통제 기능 대량 지급 — API 또는 파일로 암호화폐 대량 지급 플랫폼 — 마켓플레이스 결제와 수수료 산업 — 게임, 호스팅, 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?