test/app.rb in sinatra-paypal-0.3.0 vs test/app.rb in sinatra-paypal-0.3.1
- old
+ new
@@ -33,9 +33,13 @@
File.append path, "#{p.id}\n"
return false
end
end
+payment :complete do |p|
+ halt 500, 'rejection requested' if !p.custom_data.nil? && p.custom_data[:reject] == true
+end
+
get '/payment/form/empty' do
return html_payment_form nil
end
get '/payment/form' do