在国外使用电子支票是很普遍的事情,所以既然需要增加支付方式,那么电子支票支付肯定也是必须的啦...EchoBank(OpenEcho)也支持电子支票支付,ProStores也同样支持电子支票支付,那好我的工作就是把他俩给连上,
先来看看我需要实现的接口
ExtensionWorker这个接口只是一个标识接口用于ProStores扩展时对这个实现类进行更新.
public interface ExtensionWorker
This interface serves only to identify your extension class as the Worker class so that StoreSense can make the appropriate updates.
那么还是现介绍配置,ExtensionConfig这个接口只提供了一个方法
java.lang.String | getHelp() This method should return a string that a user will read when they clicks the online help button. |
这个方法是生成提示信息是调用的.
下面就是重要的接口了ElectronicCheckProcessor
public interface ElectronicCheckProcessorextends ExtensionFamily
This interface serves as the interface required to implement a custom electronic check processor.
由于电子支票支付模块只有一个类,所以只需要上传一次就行了,还是按照上面的步骤将电子支票配置和处理类的完全限定名填写至(Fully qualified classname)框中,点击浏览(Browse…)选中文件,然后点击上传(Upload)
此时会在System >> Extensions >> Electronic Check 下看到OpenEcho Electronic Card这就是咱们的支票配置和处理类.