How to make an extra payment with a Braintree token?

payment
payment-token
braintree

(Siva Kumar Koduru) #1

How to capture amount through customer credit card token ?

For example customer placed an order $100.
i can capture $100 by invoice with capture online.
but i want to capture extra $15 amount.
I have enabled forcefully vault feature in frontend.


How is Magento\Vault\Api\PaymentTokenManagementInterface::addLinkToOrderPayment() implemented and used?
(Dmitry Fedyuk) #2

It depends on a payment service provider.


(Siva Kumar Koduru) #3

I am using braintree payment credit cards.
I don’t need paypal through braintree.
can you help me on this?
$sql = “SELECT payment_token_id FROM vault_payment_token_order_payment_link WHERE order_payment_id=’” . $paymentId . “’”;
$res = $this->connection->fetchCol($sql);
if (isset($res[0])) {
$paymentTokenId = $res[0];
$paymentToken=$this->paymentTokenRepo->getById($paymentTokenId);
$gatewayToken=$paymentToken->getGatewayToken();
}


(Dmitry Fedyuk) #4

I can help only on the terms of my support service.


(Siva Kumar Koduru) #5

sorry, i’m a developer. i can’t afford.