pear:packages:payment_process2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pear:packages:payment_process2 [2009/02/27 05:10] – clockwerx | pear:packages:payment_process2 [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 76: | Line 76: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | |||
===== Roadmap ===== | ===== Roadmap ===== | ||
Line 82: | Line 84: | ||
* < | * < | ||
* < | * < | ||
+ | * < | ||
+ | * Support people won't give access to test environment | ||
+ | * doconnor has mailed other open source projects which provide paycom drivers to see if he can get test data | ||
+ | * < | ||
+ | |||
+ | |||
+ | |||
+ | ==== 0.2.0 ==== | ||
+ | * Add a new driver for an Australian Bank (Payment_Process2_ANZ) ((needs clearing)) | ||
+ | * < | ||
+ | * Fix protected / public properties - dbezborodow | ||
* Unit test coverage (mocked out) for all drivers | * Unit test coverage (mocked out) for all drivers | ||
* Running into problems here with many providers | * Running into problems here with many providers | ||
- | * TrustCommerce - inprogress | + | * TrustCommerce - simple coverage done. |
* Paypal - TBA | * Paypal - TBA | ||
- | * Transfirst - TBA | + | * Transfirst - asking original author |
* Linkpoint - TBA | * Linkpoint - TBA | ||
* Bibit - TBA | * Bibit - TBA | ||
* AuthorizeNet - TBA | * AuthorizeNet - TBA | ||
* < | * < | ||
- | * Lots of failures in test coverage | + | * <del>Lots of</ |
* Test coverage is not extensive! | * Test coverage is not extensive! | ||
* Need to improve the test case loaders and what have you | * Need to improve the test case loaders and what have you | ||
- | | + | |
- | * Support people won't give access to test environment | + | === API changes === |
- | * doconnor has mailed other open source projects | + | Anything |
- | | + | <code php> |
+ | PAYMENT_PROCESS_SOMETHING_CONSTANT | ||
+ | </code> | ||
+ | will be | ||
+ | <code php> | ||
+ | Payment_Process2:: | ||
+ | </code> | ||
+ | Also; setPayment() is now a lot more angry about things. | ||
- | + | Finally; Payment_Process2_Type:: | |
- | ==== 0.2.0 ==== | + | |
- | * Add a new driver for an Australian Bank (Payment_Process2_ANZ) ((needs clearing)) | + | |
- | * < | + | |
==== 0.3.0 ==== | ==== 0.3.0 ==== | ||
+ | * < | ||
+ | * Fix typeMapping concept | ||
+ | * Fix cvvCode concept in results | ||
+ | * Use reflection where appropriate | ||
+ | <code php> | ||
+ | <?php | ||
+ | |||
+ | $process = Payment_Process2:: | ||
+ | $process-> | ||
+ | $process-> | ||
+ | |||
+ | $cc = Payment_Process2_Type:: | ||
+ | $cc-> | ||
+ | $cc-> | ||
+ | $cc-> | ||
+ | $cc-> | ||
+ | |||
+ | $action = Payment_Process2_Action:: | ||
+ | $action-> | ||
+ | $action-> | ||
+ | $action-> | ||
+ | |||
+ | $result = $process-> | ||
+ | |||
+ | /* | ||
+ | |||
+ | Responsibilities: | ||
+ | |||
+ | Processor: | ||
+ | Knows the endpoint, prepares the request from data. | ||
+ | Knows credentials. | ||
+ | Has a translator for the action types. | ||
+ | Has a translator for the base fields such as credentials. | ||
+ | Has a process() method that: | ||
+ | Passes response data into a Result and call the parser method. | ||
+ | Returns the Result. | ||
+ | |||
+ | Action: | ||
+ | Has a translator for the data | ||
+ | Prepares data. | ||
+ | |||
+ | Translator: | ||
+ | Very generic. Is never extended so that we don't litter | ||
+ | the class tree; instead, we set up the translator in | ||
+ | constructor methods. | ||
+ | |||
+ | Result: | ||
+ | Has a parser that transforms the response into data that is given to it | ||
+ | by the processor. | ||
+ | Has a translator for the result data. | ||
+ | */ | ||
+ | </ | ||
| |
pear/packages/payment_process2.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1