forked from LiveCarta/PayPal-PHP-SDK
Add Type Hiting 'array' to method setTransactions to avoid receive a non array parameter which cause a validation errors when Payment 'created' function is executed.
This commit is contained in:
@@ -150,7 +150,7 @@ class Payment extends PPModel implements IResource {
|
||||
* @array
|
||||
* @param PayPal\Api\Transaction $transactions
|
||||
*/
|
||||
public function setTransactions($transactions) {
|
||||
public function setTransactions(array $transactions) {
|
||||
$this->transactions = $transactions;
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user