WePay API Version 2015-08-15
Changes to /checkout/create and /checkout API call.
Change Log
Checkout & Checkout/Create
- The new /checkout/create accepts structured input parameters:
- Replaced payee_email_message/payer_email_message parameters with new email_message object parameter.
- Replaced app_fee/fee_payer parameters with new fee object parameter.
- Replaced payment_method_id/payment_method_type/preapproval_id parameters with new payment_method object parameter.
- Replaced shipping information, redirect URL, fallback URL, mode, prefill_info, funding_sources, and theme_object parameters with new hosted_checkout object parameter. -
The new /checkout/create and /checkout API calls return structured output parameters:
- Return refund object that contains information about the amount refunded and the reason for the refund.
- Return hosted_checkout parameter that contains information about the checkout URL, redirect URL, theme object, and shipping information for checkout.
- Return payment_method object parameter that contains payment method information.
- Return chargeback object parameter that contains information about the amount charged back and dispute URL.
- Return new payer object parameter that contains the payer's name, address, and email.
- Return new fee object parameter that contains the app_fee, WePay's processing fee, and fee_payer information. - The new /checkout/create requires currency as an input parameter and funding_sources to be passed in as an array to the new hosted_checkout parameter.