sul-dlss / mylibrary

My Library Account - an application for checkouts, renewals, requests, and fines
https://mylibrary.stanford.edu
Other
2 stars 1 forks source link

Use ruby_sop Card Payments Implementation #40

Closed jgreben closed 1 year ago

jgreben commented 5 years ago

Option 1) Integrate CyberSource ruby_sop into project ruby_sop is a Sinatra app that includes Class, View, and Controller with supporting JS for generating the secure payment forms.

See example: https://github.com/sul-dlss/mylibrary/tree/payment-implementation-example/vendor/ruby_sop

Option 2) Use the existing Symphony web payment PHP forms Sending a POST request to {Symphony}/secureacceptance/payment_form.php? and use the following post params and change the link in the existing receipt to the new MyLibrary App.

name='amount' value=[:billamount] // total amount of bill (sum of all indiviual bills)

name='billseq' value=[:billno] // billSequence number || {lowest billSequence number}-{highest billSquence number}

name='user' value=[:userID]

name='session_id' value=[:session]

name='group' value=[:group] // G || nil

jgreben commented 5 years ago

receipt display values for request params:

'Order Number:' => 'req_reference_number', 'Library ID:' => 'req_merchant_defined_data1', 'Amount:' => 'req_amount', 'Date and Time:' => 'auth_time', 'Result:' => 'message', 'Transaction ID:' => 'req_transaction_uuid', 'Last Name:' => 'req_bill_to_surname', 'First Name:' => 'req_bill_to_forename'

jgreben commented 5 years ago

Download ruby_sop: http://apps.cybersource.com/library/documentation/dev_guides/Secure_Acceptance_Checkout_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm#href=creating_profile.05.8.html

cbeer commented 5 years ago

Thanks @jgreben.

I've checked in with @camillevilla; for now, let's pursue option 2. There's significant complexity introduced by option 1, and we can revisit it after reaching parity with the current application.

jgreben commented 5 years ago

On existing PHP pages, I just noticed that the "View online payment refund policy" link is broken. Need to fix that...

thatbudakguy commented 1 year ago

was resolved by #901