Skip to content

Commit

Permalink
Last finalization
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobia Zanarella committed Mar 31, 2021
1 parent 67eb4fe commit d7a1620
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/IntesaSanPaoloClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,10 @@ public function createInstantPayment( PaymentExecution $payment ): PaymentExecut
$data['resubmitId'] = $payment->getResubmitId();
}

if( is_null( $data['siaCode'] ) ) {
$data['siaCode'] = '';
}

$paymentExecutedResponse = $this->request( 'POST', sprintf( '%s/payments/sct/instant', $this->getApiBaseUri() ), [], $data );

return new PaymentExecuted( $paymentExecutedResponse );
Expand Down
4 changes: 1 addition & 3 deletions src/Models/PaymentSimulated.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@

class PaymentSimulated extends GenericPaymentResult {
/**
* [ ACCP accepted, RJCT rejected ]
* @var string
*/
private $ValidationStatus;



/**
* Hydrates specific data
* @param stdClass $data
Expand All @@ -24,7 +23,6 @@ protected function hydrateData( stdClass $data ) {
$this->ValidationStatus = $payload->validationStatus;
}


/**
* @return string|null
*/
Expand Down

0 comments on commit d7a1620

Please sign in to comment.