Module: FlexCommerce::PaypalExpress::Api
- Extended by:
- ActiveSupport::Concern
- Included in:
- AdditionalInfo, Auth, GenerateSummary, Process::PaypalParams, Setup
- Defined in:
- lib/paypal_express/api.rb
Overview
A concern for use in paypal express services that need access to the API
Constant Summary collapse
- USER_ERRORS =
{ "10410" => {gateway_response: "Invalid token"}, "10411" => {gateway_response: "Checkout session expired"}, "10415" => {gateway_response: "Duplicate transaction"}, "13113" => {gateway_response: "Paypal declined the transaction"}, "10417" => {gateway_response: "Paypal cannot process this transaction. Please use alternative payment method"}, "10419" => {gateway_response: "PayerID Missing"}, "10421" => {gateway_response: "Invalid token"}, "10422" => {gateway_response: "Invalid funding source. Please try again with a different funding source"}, "10424" => {gateway_response: "Invalid shipping address"}, "10474" => {gateway_response: "Invalid shipping country - must be the same as the paypal account"}, "10486" => {gateway_response: "Invalid funding source. Please try again with a different funding source"}, "10736" => {gateway_response: "Invalid shipping address"}, "11084" => {gateway_response: "No funding sources. Please try a different payment method"}, "13122" => {gateway_response: "This transaction cannot be completed because it violates the PayPal User Agreement"}, "10606" => {gateway_response: "Paypal cannot process this transaction using the payment method provided"}, "10626" => {gateway_response: "Paypal declined this transaction due to its risk model"} }.freeze