HomeChallengesRepsProblemsLeaderboardTake a challenge

Payment API Integration

Integrate the Paystack API to initialise a payment and surface the authorization URL.

Beginner15 min on the clock6 graded checks · 100 pointsAPI Integration Sprint
Graded by reading your code against the checklist below.

What you build

  • Set up API key authentication
  • Create a payment initialization function
  • Display the transaction reference
  • Handle the API response properly
  • Show success and error states

Done means

Successfully initialize a payment and display the authorization URL.

How it is graded

Published in full, before you start — every point is one of these and there is nothing else.

  1. Call the Paystack API+20Calling an HTTP API
  2. Authenticate with a Bearer token+20Authentication and tokens
  3. Use the POST method+15Calling an HTTP API
  4. Send the customer email in the body+15Calling an HTTP API
  5. Send the amount in kobo+15Calling an HTTP API
  6. Handle errors (try/catch or .catch)+15Error handling

What it teaches

The rest of API Integration Sprint