Challengesch-23-prepare-stripe-charge-payload-from-order-data
DataWeaveELEMENTARY

Prepare Stripe Charge Payload from Order Data

Stripe's Charges API requires the payment amount as an integer in the smallest currency unit (cents), but order management systems typically store amounts as decimal dollar values. In this challenge, you will transform a raw order payload into a valid Stripe charge request body, converting the decimal amount to integer cents and mapping order metadata into Stripe's `metadata` object. This is a foundational pattern any integration developer will encounter when connecting an e-commerce platform.

striperest-api
Rating

Community

No ratings yet

Enroll to rate

Challenge Info

Access Tier

FREE

Est. Time

15MIN

XP Reward

100

Points

90

Status

Not Enrolled

Account required

Sign in to start this challenge

Create a free account or sign in to enroll and access the full challenge.

What you'll do
  • Write DataWeave transformations in a live editor
  • Validate your output against test cases
  • Submit all test cases and get scored
Skills practiced
#stripe#rest-api