Sha256: 091ca0c2b022e17ba9176902738614c1e2ecded52a390f1ab13ff4dec0ca0386

Contents?: true

Size: 603 Bytes

Versions: 4

Compression:

Stored size: 603 Bytes

Contents

#
# Example 3 - How to show a return page to the customer.
#
# In this example we retrieve the order stored in the database.
# Here, it's unnecessary to use the Mollie API Client.
#
if $request.params.empty?
	$response.body << "No order"
else
	status = database_read $request.params['order_id']

	#
	# Determine the url parts to these example files.
	#
	path = $request.script_name || ""

	$response.body << "<p>Your payment status is '" << (CGI.escapeHTML status) << "'.</p>"
	$response.body << "<p>"
	$response.body << '<a href="' << path << '/">Back to examples</a><br>'
	$response.body << "</p>"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mollie-api-ruby-1.1.2 examples/3-return-page.rb
mollie-api-ruby-1.1.1 examples/3-return-page.rb
mollie-api-ruby-1.1.0 examples/3-return-page.rb
mollie-api-ruby-1.0.1 examples/3-return-page.rb