Skip to content

Commit

Permalink
Merge pull request #94 from vimeo/PYMT-1355
Browse files Browse the repository at this point in the history
Default to credit card payment method type for HOA
  • Loading branch information
fredespo authored Aug 3, 2023
2 parents 83790d9 + ee90bbd commit 0280a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Message/AbstractHOARequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ protected function getPrivateFormValues()
$values = array();
$objectParamNames = $this->getObjectParamNames();

$payment_method_type = $this->getParameter('paymentMethodType');
$payment_method_type = $this->getParameter('paymentMethodType') ?? self::PAYMENT_METHOD_CREDIT_CARD;;
foreach ($objectParamNames as $object_name => $param_name) {
$data = $this->regularRequest->getData($payment_method_type);
$object = $data[$param_name];
Expand Down

0 comments on commit 0280a7a

Please sign in to comment.