Hol: Settings → Readers & money → Connections → Payments
Open this page: admin.<your-site>/settings/connections/payments (replace <your-site> with your site address)
Mielőtt elkezdené
- A Razorpay account. Start in Teszt mód in Razorpay.
- You must be the site owner.
Lépések
- In the Razorpay dashboard, switch to Teszt mód.
- Go to Beállítások → Haladó → Egyéb appok összekapcsolása → API-kulcsok and generate a key. Copy the key id and key secret. Razorpay shows the secret only once.
- In Keynate, open Beállítások → Olvasók és bevételek → Kapcsolatok → Fizetések and press Razorpay összekapcsolása (or Kapcsolat hozzáadása).
- Choose Teszt mód. Paste the Kulcsazonosító (Key ID) (it starts with
rzp_test_), the Titkos kulcs (Key secret) and the Webhook titkos kód (Secret). - Press Razorpay összekapcsolása at the bottom of the sheet.
- On the card, find Engedd, hogy a Razorpay értesítse a webhelyedet a fizetésekről. Razorpay doesn't let other apps do this for you, so it is one minute in Razorpay. It has 3 steps:
- Open Razorpay → Webhookok and press Add New Webhook.
- Fill Razorpay's form with the Webhook URL, the Titkos kulcs and the Active events (tick each one). Each has a Másolás button. The secret is shown only once. If you lost it, press Szerkesztés, then Új titkos kód generálása nekem.
- Press Create Webhook. Then make a small test payment.
- Watch the line under the steps. It says Waiting for Razorpay's first message… and turns green with We received Razorpay's first message. when it works. Payments then show as paid by themselves. Press Ellenőrzés most to look again. Later, Lépések megjelenítése újra opens the steps.
- Press Kapcsolat tesztelése on the card, then make a test payment.
- When it works, press Go live with Razorpay in the Test mode bar and add your live keys (
rzp_live_). For live mode the card turns green after your first real payment.
More help: Payment messages (webhook).
Jó tudni
- Key ids must start with
rzp_test_for test mode orrzp_live_for live mode. - Use a different webhook secret for test and live.
Gyakori problémák
- "Key ids start with rzp_test_ (test mode) or rzp_live_ (live mode). Copy it from the API keys page inside your Razorpay dashboard."
- "Paste the key secret. Razorpay shows it only once, when you create the key." Generate a new key if you lost it.
- "Paste the webhook secret you typed in Razorpay."
Kérdések
Gyakran ismételt kérdések
Where is the Razorpay key page?
The sheet has a link that opens it in a new tab, and the page side panel has Razorpay API-kulcsok megnyitása and Razorpay webhookok megnyitása.
How do I know the webhook works?
The card shows We received Razorpay's first message. until then it says Waiting for Razorpay's first message…. If Stripe or PayPal are also on, the card can't tell which sent a message and says so. If you did it once already, nothing more to do.
Where is the test mode switch?
In the Razorpay dashboard. Switch to Teszt mód before you create keys.