Donation Payment Error - PurposeOpen/Platform GitHub Wiki

POST /api/movements/:movement_id/action_pages/:id/donation_payment_error(.:format)

Sends a notification email to Platform Administrator reporting payment error.

Parameters
movement_idMandatory Movement Id
idMandatory Action Page Id
payment_error_data[error_code]Optional Payment error code received from Payment Gateway
payment_error_data[message]Mandatory Payment error message received from Payment Gateway
payment_error_data[donation_payment_method]Mandatory Payment donation method used on failed transaction
payment_error_data[donation_amount_in_cents]Mandatory Payment donation amount in cents used on failed transaction
payment_error_data[donation_currency]Mandatory Payment donation currency used on failed transaction
member_info[first_name]Optional Member first name used on failed transaction
member_info[last_name]Optional Member last name used on failed transaction
member_info[email]Optional Member email used on failed transaction
member_info[country_iso]Optional Member country iso on failed transaction
member_info[language_iso] Optional Member language iso used on failed transaction
member_info[reference] Optional Member reference used on failed transaction

Response

Status Code

200 if Successful

Content

No content is returned in the response.

Example Request

POST /api/movements/test-movement/action_pages/1234/donation_payment_error.json Content-Type: application/x-www-form-urlencoded

payment_error_data%5Berror_code%5D=1111&payment_error_data%5Bmessage%5D=An error occurred&payment_error_data%5Bdonation_payment_method%5D=credit_card&payment_error_data%5Bdonation_amount_in_cents%5D=10000&payment_error_data%5Bdonation_currency%5D=usd&member_info%5Bfirst_name%5D=John&member_info%5Blast_name%5D=Doe&member_info%5Bemail%[email protected]&member_info%5Bcountry_iso%5D=us&member_info%5Blanguage_iso%5D=en

Example Response

200 (OK)

back