Remove the accrual flag of an existing payment transaction.

@param string $paymentId The payment transaction id
@return bool
@throws GuzzleException
@throws ApiError
@throws AuthError
@throws ClientError
554081
public function reverseAccrual($paymentId)
    {
        $class = $this->resourceMetadata->resourceClass;
        /**
         * @var $object Transaction
         */
        $object = new $class();
        $object->id = $paymentId;
        $object->accrual = false;
        $res = $this->updateWithAction($paymentId, 'accrual', null, $object, $class);

        if ($res) {
            return true;
        }

        return false;
    }
1038377
public function withPaymentMethod($paymentMethod)
    {
        $this->paymentMethod = $paymentMethod;
        if ($paymentMethod instanceof EBTCardData && $paymentMethod->serialNumber !== null) {
            $this->transactionModifier = TransactionModifier::VOUCHER;
        }
        return $this;
    }
132593
public function getPdt($transactionID)
    {
        $this->transactionID = $transactionID;
        
        // Now we need to ask PayPal to tell us if it sent this notification
        $pdtResponse = $this->_postData($this->pdtURL, array('cmd' => '_notify-synch', 'tx' => $transactionID, 'at' => $this->pdtToken));
        if ($pdtResponse === FALSE) { // Bail out if we have an error.
            return FALSE;
        }

        // Phew! We have a valid PDT transaction, log it.
        $this->_logTransaction('PDT', 'SUCCESS', 'Parsing complete', $pdtResponse);
        return $pdtResponse;
    }
947611
public function removeCoupon(string $subscriptionId)
    {
        // Log Debug
        $this->flow->getLogger()->debug("Removing Coupons from $subscriptionId");

        return $this->make(
            $this->flow->send(
                'post',
                $this->endpoint . '/deleteCoupon',
                ['subscriptionId' => $subscriptionId]
            )
        );
    }
521896
public function delete($sOxId = null)
    {
        if (parent::delete($sOxId)) {
            $sOxId = $sOxId ? $sOxId : $this->getId();
            $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

            // deleting payment related data
            $rs = $oDb->execute("delete from oxobject2payment where oxpaymentid = " . $oDb->quote($sOxId));

            return $rs->EOF;
        }

        return false;
    }
488989
public function deleteCard($cardId)
    {
        if (!$this->stripe_id) {
            return [
                'status' => 'error',
                'message' => 'Invalid StripeId'
            ];
        }

        try {
            $stripe = new Stripe(Billable::getStripeKey());

            $card = $stripe->cards()
                ->delete($this->stripe_id, $cardId);

            return [
                'status' => 'success',
                'cardId' => $card['id']
            ];
        } catch (\Exception $e) {
            return [
                'status' => 'error',
                'message' => $e->getMessage()
            ];
        }
    }
124958
@Override
	public void removeByBillingAddressId(long billingAddressId) {
		for (CommerceOrder commerceOrder : findByBillingAddressId(
				billingAddressId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceOrder);
		}
	}
406417
def remove_token(self, *, payer_id, credit_card_token_id):
        
        payload = {
            "language": self.client.language.value,
            "command": PaymentCommand.REMOVE_TOKEN.value,
            "merchant": {
                "apiLogin": self.client.api_login,
                "apiKey": self.client.api_key
            },
            "removeCreditCardToken": {
                "payerId": payer_id,
                "creditCardTokenId": credit_card_token_id
            },
            "test": self.client.is_test
        }
        return self.client._post(self.url, json=payload)
1205212
private void removeTransactionSession(String xferId, String sessionId) {
		List<String> sessions = transactionSessions.get(xferId);

		if(sessions != null){
			final boolean removal = sessions.remove(sessionId);
			if (removal) {
				ascpCount--;
			}
		}
	}
950854
public function load($paymentId)
    {
        $db = $this->getDb();
        $data = $db->getRow('SELECT * FROM `oepaypal_orderpayments` WHERE `oepaypal_paymentid` = ' . $db->quote($paymentId));

        return $data;
    }
1086337
@Override
	public void removeByCommerceOrderId(long commerceOrderId) {
		for (CommerceOrderPayment commerceOrderPayment : findByCommerceOrderId(
				commerceOrderId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceOrderPayment);
		}
	}
957013
public function get($paymentId){
        $uri = Braspag::$apiQueryBase . "sales/{$paymentId}"; 
        $response = Request::get($uri)
            ->sendsJson()
            ->addHeaders($this->headers)
            ->send();
        if($response->code == HttpStatus::Ok){    
            return new Sale(json_decode($response->raw_body, true));
            
        }elseif($response->code == HttpStatus::BadRequest){   
            Utils::handleApiError($response);            
        }   
                
        return $response->code;
    }
1311885
public function getPaymentRefunds($paymentID)
    {
        $obj = new stdClass();

        // Must be in specific order for checksum --
        $obj->Secret = $this->getSecretCode();
        $obj->MerchantID = $this->getMerchantID();
        $obj->Timestamp = $this->getTimeStamp();
        $obj->PaymentID = $paymentID;
        // -----------------------------------------  
        // Generate Checksum
        $obj->Checksum = $this->generateChecksum($obj);

        // Ask for getPaymentRefunds and get response
        $result = $this->client->getPaymentRefunds($obj);

        $result = $result->GetPaymentRefundsResult;
        $refunds = isset($result->Refunds->Refund) ? $result->Refunds->Refund : null;

        $obj->Timestamp = $result->Timestamp;

        if (!is_null($refunds)) {
            // Assign all properties of the DayStatistics object as property of mainObject
            $obj = $this->parseForChecksum($obj, $refunds, true, array("RefundID", "DateCreated", "RefundAmount", "RefundCurrency", "Status"));
        }

        // Unset properties for new Checksum
        unset($obj->Checksum);

        // Verify response data by making a new Checksum
        $Checksum = $this->generateChecksum($obj);

        // Compare Checksums
        if ($result->Checksum != $Checksum)
            throw new Exception('Data could not be verified');

        return (!is_null($refunds)) ? $this->forceArray($refunds) : array();
    }
358130
public function removeCredentialsByApplicationId($applicationId)
    {
        return $this->createCommand()
            ->setRequest(
                $this->client->delete(Url::factory('application')->setQuery(array('applicationId' => $applicationId)))
            )
        ;
    }
205414
public static MozuUrl removeTransactionUrl(Integer accountId, String transactionId)
	{
		UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/accounts/{accountId}/transactions/{transactionId}");
		formatter.formatUrl("accountId", accountId);
		formatter.formatUrl("transactionId", transactionId);
		return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;
	}
178364
public function removePayment(\Gpupo\CommonSchema\ORM\Entity\Trading\Payment\Payment $payment)
    {
        return $this->payments->removeElement($payment);
    }
34776
public function create($payment, $paymentId = null)
    {
        if (isset($paymentId)) {
            return $this->client()->put($payment, 'payments/{paymentId}', ['paymentId' => $paymentId]);
        }

        return $this->client()->post($payment, 'payments');
    }