@@ -1395,6 +1395,7 @@ module ProcessOut {
13951395 options : any ,
13961396 success : ( data : any ) => void ,
13971397 error : ( err : Exception ) => void ,
1398+ iframeOverride ?: IframeOverride ,
13981399 ) : void {
13991400 if ( val instanceof Card || val instanceof CardForm )
14001401 return this . tokenize (
@@ -1408,6 +1409,7 @@ module ProcessOut {
14081409 options ,
14091410 success ,
14101411 error ,
1412+ iframeOverride ,
14111413 )
14121414 } . bind ( this ) ,
14131415 error ,
@@ -1420,6 +1422,7 @@ module ProcessOut {
14201422 options ,
14211423 success ,
14221424 error ,
1425+ iframeOverride ,
14231426 )
14241427 }
14251428
@@ -1430,6 +1433,7 @@ module ProcessOut {
14301433 options : any ,
14311434 success : ( data : any ) => void ,
14321435 error : ( err : Exception ) => void ,
1436+ iframeOverride ?: IframeOverride ,
14331437 ) : void {
14341438 this . handleCardActions (
14351439 "PUT" ,
@@ -1439,6 +1443,8 @@ module ProcessOut {
14391443 options ,
14401444 success ,
14411445 error ,
1446+ undefined ,
1447+ iframeOverride ,
14421448 )
14431449 }
14441450
@@ -1460,6 +1466,7 @@ module ProcessOut {
14601466 success : ( data : any ) => void ,
14611467 error : ( err : Exception ) => void ,
14621468 apiRequestOptions ?: apiRequestOptions ,
1469+ iframeOverride ?: IframeOverride ,
14631470 ) : void {
14641471 const url : string = `invoices/${ invoiceID } /capture`
14651472 this . threeDSInitiationURL = `invoices/${ invoiceID } /three-d-s`
@@ -1474,6 +1481,7 @@ module ProcessOut {
14741481 success ,
14751482 error ,
14761483 apiRequestOptions ,
1484+ iframeOverride ,
14771485 )
14781486 }
14791487
@@ -1493,6 +1501,7 @@ module ProcessOut {
14931501 success : ( data : any ) => void ,
14941502 error : ( err : Exception ) => void ,
14951503 apiRequestOptions ?: apiRequestOptions ,
1504+ iframeOverride ?: IframeOverride ,
14961505 ) : void {
14971506 this . handleCardActions (
14981507 "POST" ,
@@ -1503,6 +1512,7 @@ module ProcessOut {
15031512 success ,
15041513 error ,
15051514 apiRequestOptions ,
1515+ iframeOverride ,
15061516 )
15071517 }
15081518
@@ -1521,6 +1531,7 @@ module ProcessOut {
15211531 options : any ,
15221532 success : ( data : any ) => void ,
15231533 error : ( err : Exception ) => void ,
1534+ iframeOverride ?: IframeOverride ,
15241535 ) : void {
15251536 if ( ! options ) options = { }
15261537 options . incremental = true
@@ -1532,6 +1543,8 @@ module ProcessOut {
15321543 options ,
15331544 success ,
15341545 error ,
1546+ undefined ,
1547+ iframeOverride ,
15351548 )
15361549 }
15371550
@@ -1576,6 +1589,7 @@ module ProcessOut {
15761589 success : ( data : any ) => void ,
15771590 error : ( err : Exception ) => void ,
15781591 apiRequestOptions ?: apiRequestOptions ,
1592+ iframeOverride ?: IframeOverride ,
15791593 ) : void {
15801594 // returns this.hppInitialURL only once during the first call from HPP, then returns the endpoint
15811595 const getEndpoint = ( ) : string => {
@@ -1646,6 +1660,7 @@ module ProcessOut {
16461660 success ,
16471661 error ,
16481662 apiRequestOptions ,
1663+ iframeOverride ,
16491664 )
16501665 } . bind ( this )
16511666
@@ -1672,10 +1687,15 @@ module ProcessOut {
16721687 success ,
16731688 error ,
16741689 apiRequestOptions ,
1690+ iframeOverride ,
16751691 )
16761692 } . bind ( this ) ,
16771693 error ,
1678- new ActionHandlerOptions ( opts ) ,
1694+ new ActionHandlerOptions (
1695+ opts ,
1696+ undefined ,
1697+ opts !== ActionHandlerOptions . ThreeDSChallengeFlowNoIframe ? iframeOverride : undefined
1698+ )
16791699 )
16801700 break
16811701
@@ -1698,7 +1718,11 @@ module ProcessOut {
16981718 gReq . body = `threeDSMethodData={"threeDS2FingerprintTimeout":true}`
16991719 nextStep ( gReq . token ( ) )
17001720 } ,
1701- new ActionHandlerOptions ( ActionHandlerOptions . ThreeDSFingerprintFlow ) ,
1721+ new ActionHandlerOptions (
1722+ ActionHandlerOptions . ThreeDSFingerprintFlow ,
1723+ undefined ,
1724+ iframeOverride ,
1725+ ) ,
17021726 )
17031727 break
17041728
@@ -1708,7 +1732,11 @@ module ProcessOut {
17081732 data . customer_action . value ,
17091733 nextStep ,
17101734 error ,
1711- new ActionHandlerOptions ( ActionHandlerOptions . ThreeDSChallengeFlow ) ,
1735+ new ActionHandlerOptions (
1736+ ActionHandlerOptions . ThreeDSChallengeFlow ,
1737+ undefined ,
1738+ iframeOverride ,
1739+ ) ,
17121740 )
17131741 break
17141742
0 commit comments