diff --git a/src/data/payments/PaymentHelper.ts b/src/data/payments/PaymentHelper.ts index b071cfe3..348ff121 100644 --- a/src/data/payments/PaymentHelper.ts +++ b/src/data/payments/PaymentHelper.ts @@ -269,7 +269,11 @@ export default class PaymentHelper extends Helper { * @since 3.6.0 */ public getCaptures(parameters?: ThrottlingParameter): HelpfulIterator { - return runIf(this.links.captures, ({ href }) => this.networkClient.iterate(href, 'captures', undefined, parameters?.valuesPerMinute)) ?? emptyHelpfulIterator; + return ( + runIf(this.embedded?.captures, captures => new HelpfulIterator(makeAsync(captures[Symbol.iterator]()))) ?? + runIf(this.links.captures, ({ href }) => this.networkClient.iterate(href, 'captures', undefined, parameters?.valuesPerMinute)) ?? + emptyHelpfulIterator + ); } /**