view · edit · sidebar · attach · print · history

Index>

20140919-fix-paypal-checkout

Summary

  • Paypal checkout does not work

Commits

Index

Keep in Mind
  • Fix dojo error http://www.sitepen.com/blog/2012/10/31/debugging-dojo-common-error-messages/#forgot-dom-ready
  • I removed on May-27 tests for ix_registrationss, fix_sequences, fix_compositions, fix_packages from test/test_plugin/swissmedic.rb,as he could not find any references for them in the src code. Did I erroneously remove stuff when cleaning up the swissmedic import earlier?
  • The whole test for older/newer Packages must be adapted to xlsx. One must compare the rows (e.g. by creating csv files) and do the same stuff in xlsx!

---

Paypal checkout does not work

Checkout with paypal does not work as shown by watir test committed yesterday.

I still do not have a clue what is going wrong. I think I must just paypal sandbox and run the watir tests on the same machine as the oddb-server to create a valid test environment.

Looking around where we had similar problems. Stumbled over http://dev.ywesee.com/Oddb/Oddbcsv

To enable the paypal sandbox the following steps will be required:

  • Reorganize the code to read the paypal server and test API from etc/oddb.yml, leaving it to the present value if not found
  • Create watir tests to create two test users customer and poor_soul
  • Create a new developer.paypal.com account test@ywesee.com to share with other from ywesee. Notifications will at the moment only be sent to me.
  • Create test-accounts
    • customer@ywesee.com: with a positive balance and not error returned
    • poor_soul@ywesee.com: returning an error as balance = 0

Added watir tests that check etc/oddb.yml and that the test receiver is okay. Now trying to add a new user to oddb.org via watir. Recorded a payout using the sandbox and seeing some instrumented puts telling me that oddb.org did not receive correctly the answer

paypal/return ReturnComposite nil? false
paypal/return ReturnComposite payment_received? false
paypal/return ReturnComposite back #<ODDB::Invoice:0x000000092ab940>

Now the watir tests fails telling me that the text in window should not match Ihre Bezahlung ist von PayPal noch nicht bestätigt worden. Now it is time to fix the error.

I just don't understand how the invoice is signalled payment_received. When I call payment_received in src/state/paypay/return.rb I get the following screeen, but the download link is wrong:

view · edit · sidebar · attach · print · history
Page last modified on September 19, 2014, at 05:03 PM