Web Payment API/PHP SDK HTTP Header Text

:wave: In our examples we echo the results or the error. For example:

try {
  $create_payment_request = new CreatePaymentRequest($token, Uuid::uuid4(), $money);

  $response = $payments_api->createPayment($create_payment_request);

  if ($response->isSuccess()) {
    echo json_encode($response->getResult());
  } else {
    echo json_encode(array('errors' => $response->getErrors()));
  }
} catch (ApiException $e) {
  echo json_encode(array('errors' => $e));
}

Also feel free to checkout our PHP example with the Web Payments SDK.