You are here

public function Mollie_API_Resource_Payments_Refunds::with in Commerce Mollie 7

Set the resource to use a certain payment. Use this method before performing a get() or all() call.

Parameters

Mollie_API_Object_Payment $payment:

Return value

self

File

Mollie/API/Resource/Payments/Refunds.php, line 62

Class

Mollie_API_Resource_Payments_Refunds
Copyright (c) 2013, Mollie B.V. All rights reserved.

Code

public function with(Mollie_API_Object_Payment $payment) {
  $this->payment_id = $payment->id;
  return $this;
}