Skip to content

Handle Failed Payment

Diego edited this page May 20, 2013 · 10 revisions

POST /api/movements/:movement_id/donations/handle_failed_payment(.:format)

Processes the failed payment, sending an error notification email to Administrator and Donor User Email

Parameters
movement_id
Mandatory
Movement Identifier related to Donation Payment Error
action_page
Mandatory
Action Page related to Donation Payment Error
subscription_id
Mandatory
Subscription Identifier (if payment is recurring) related to Donation Payment Error
error_code
Optional
Payment Gateway Error Code related to Donation Payment Error
message
Optional
Payment Gateway Error Message related to Donation Payment Error
member_email
Optional
Donor User Email
reference
Optional
Donation External Reference Number
donation_amount_in_cents
Optional
User Donation amount

Response

Status Code

200 if Successful

Content

No content is included in response.

Example Request

POST /api/movements/test-movement/donations/handle_failed_payment.json
Content-Type: application/x-www-form-urlencoded

action_page=1234&error_code=10780&message=Invalid Credit Card number&member_email=john.doe%40example.com&reference=ef8211e1-9b50-4263-a143-e97c7237a9be&subscription_id=fdfcc2d6-43a0-4946-bd64-c18361ac5cf5&donation_amount_in_cents=10000

Example Response

200 (OK)

back