Пример #1
0
 /**
  * Create billing agreement by token specified in request
  *
  * @param Mage_Payment_Model_Billing_AgreementAbstract $agreement
  * @return Mage_Paypal_Model_Method_Agreement
  */
 public function placeBillingAgreement(Mage_Payment_Model_Billing_AgreementAbstract $agreement)
 {
     $api = $this->_pro->getApi()->setToken($agreement->getToken());
     $api->callCreateBillingAgreement();
     $agreement->setBillingAgreementId($api->getData('billing_agreement_id'));
     return $this;
 }
Пример #2
0
 /**
  * Create billing agreement
  *
  * @param Mage_Payment_Model_Billing_AgreementAbstract $agreement
  * @return $this
  */
 public function placeBillingAgreement(Mage_Payment_Model_Billing_AgreementAbstract $agreement)
 {
     $agreement->setBillingAgreementId('SEPA12345');
     return $this;
 }