i want to extend may Payment-Module by a Paygate Module. I started to extend my module with code examples from authorizenet, all works fine, my request query is build and i can send my request to paymentprovider and i get responce. But i have two Problems. I made a request-model like request model of authorizenet to set my request parameters. for example i set parameter
This will be transformed to SECURITY_SENDER=xxxxyyyyyxxxxxzzzzyyyyy, i need a transformation to SECURITY.SENDER=xxxxyyyyyxxxxxzzzzyyyyy. Where can i set the delimiter from _ to .?
Within my _buildRequest method there is following code:
class Mage_Heidelpaydebitadvice_Model_Heidelpaydebitadvice extends Mage_Payment_Model_Method_Abstract{ protected function _buildRequest(Varien_Object $payment) { $document = $payment->getDocument();# /*......*/ $billing = $document->getBillingAddress(); $request->setNameGiven($billing->getFirstname()) ->setNameFamily($billing->getLastname()); } }
During authorization i get following error-message:
Call to a member function getBillingAddress() on a non-object in
Within my paygate i need some additional Information: Need the store/selected currency, how can i get it?