for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BitWasp\Bitcoin\PaymentProtocol;
use BitWasp\Bitcoin\PaymentProtocol\Protobufs\Payment;
use BitWasp\Bitcoin\PaymentProtocol\Protobufs\PaymentACK;
class PaymentHandler
{
/**
* @param Payment $payment
* @param string $memo
* @return PaymentACK
*/
public function getPaymentAck(Payment $payment, $memo = null)
$ack = new PaymentACK();
$ack->setPayment($payment);
if (is_string($memo)) {
$ack->setMemo($memo);
}
return $ack;