/AWS1/IF_BDO=>UPDATEPAYMENTCREDPROVIDER()¶
About UpdatePaymentCredentialProvider¶
Updates an existing payment credential provider with new authentication credentials.
Method Signature¶
METHODS /AWS1/IF_BDO~UPDATEPAYMENTCREDPROVIDER
IMPORTING
!IV_NAME TYPE /AWS1/BDOCREDPROVIDERNAME OPTIONAL
!IV_CREDENTIALPROVIDERVENDOR TYPE /AWS1/BDOPMNTCREDPVDRVNDRTYPE OPTIONAL
!IO_PROVIDERCONFINPUT TYPE REF TO /AWS1/CL_BDOPMNTPVDRCONFINPUT OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdoupdpmntcredpvdrrsp
RAISING
/AWS1/CX_BDOACCESSDENIEDEX
/AWS1/CX_BDOCONFLICTEXCEPTION
/AWS1/CX_BDODECRYPTIONFAILURE
/AWS1/CX_BDOENCRYPTIONFAILURE
/AWS1/CX_BDOINTERNALSERVEREX
/AWS1/CX_BDORESOURCENOTFOUNDEX
/AWS1/CX_BDOSERVICEQUOTAEXCDEX
/AWS1/CX_BDOTHROTTLINGEX
/AWS1/CX_BDOUNAUTHORIZEDEX
/AWS1/CX_BDOVALIDATIONEX
/AWS1/CX_BDOCLIENTEXC
/AWS1/CX_BDOSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/BDOCREDPROVIDERNAME /AWS1/BDOCREDPROVIDERNAME¶
The name of the payment credential provider to update.
iv_credentialprovidervendor TYPE /AWS1/BDOPMNTCREDPVDRVNDRTYPE /AWS1/BDOPMNTCREDPVDRVNDRTYPE¶
The vendor type for the payment credential provider (e.g., CoinbaseCDP, StripePrivy).
io_providerconfinput TYPE REF TO /AWS1/CL_BDOPMNTPVDRCONFINPUT /AWS1/CL_BDOPMNTPVDRCONFINPUT¶
Configuration specific to the vendor, including API credentials.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bdoupdpmntcredpvdrrsp /AWS1/CL_BDOUPDPMNTCREDPVDRRSP¶
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->updatepaymentcredprovider(
io_providerconfinput = new /aws1/cl_bdopmntpvdrconfinput(
io_coinbasecdpconfiguration = new /aws1/cl_bdocnbscdpconfinput(
io_apikeysecretconfig = new /aws1/cl_bdosecretreference(
iv_jsonkey = |string|
iv_secretid = |string|
)
io_walletsecretconfig = new /aws1/cl_bdosecretreference(
iv_jsonkey = |string|
iv_secretid = |string|
)
iv_apikeyid = |string|
iv_apikeysecret = |string|
iv_apikeysecretsource = |string|
iv_walletsecret = |string|
iv_walletsecretsource = |string|
)
io_stripeprivyconfiguration = new /aws1/cl_bdostrpprivyconfinput(
io_appsecretconfig = new /aws1/cl_bdosecretreference(
iv_jsonkey = |string|
iv_secretid = |string|
)
io_authprivatekeyconfig = new /aws1/cl_bdosecretreference(
iv_jsonkey = |string|
iv_secretid = |string|
)
iv_appid = |string|
iv_appsecret = |string|
iv_appsecretsource = |string|
iv_authorizationid = |string|
iv_authorizationprivatekey = |string|
iv_authprivatekeysource = |string|
)
)
iv_credentialprovidervendor = |string|
iv_name = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_credentialprovidername = lo_result->get_name( ).
lv_paymentcredentialprovid = lo_result->get_credentialprovidervendor( ).
lv_paymentcredentialprovid_1 = lo_result->get_credentialproviderarn( ).
lo_paymentproviderconfigur = lo_result->get_providerconfoutput( ).
IF lo_paymentproviderconfigur IS NOT INITIAL.
lo_coinbasecdpconfiguratio = lo_paymentproviderconfigur->get_coinbasecdpconfiguration( ).
IF lo_coinbasecdpconfiguratio IS NOT INITIAL.
lv_coinbasecdpapikeyidtype = lo_coinbasecdpconfiguratio->get_apikeyid( ).
lo_secret = lo_coinbasecdpconfiguratio->get_apikeysecretarn( ).
IF lo_secret IS NOT INITIAL.
lv_secretarn = lo_secret->get_secretarn( ).
ENDIF.
lv_secretjsonkeytype = lo_coinbasecdpconfiguratio->get_apikeysecretjsonkey( ).
lv_secretsourcetype = lo_coinbasecdpconfiguratio->get_apikeysecretsource( ).
lo_secret = lo_coinbasecdpconfiguratio->get_walletsecretarn( ).
IF lo_secret IS NOT INITIAL.
lv_secretarn = lo_secret->get_secretarn( ).
ENDIF.
lv_secretjsonkeytype = lo_coinbasecdpconfiguratio->get_walletsecretjsonkey( ).
lv_secretsourcetype = lo_coinbasecdpconfiguratio->get_walletsecretsource( ).
ENDIF.
lo_stripeprivyconfiguratio = lo_paymentproviderconfigur->get_stripeprivyconfiguration( ).
IF lo_stripeprivyconfiguratio IS NOT INITIAL.
lv_stripeprivyappidtype = lo_stripeprivyconfiguratio->get_appid( ).
lo_secret = lo_stripeprivyconfiguratio->get_appsecretarn( ).
IF lo_secret IS NOT INITIAL.
lv_secretarn = lo_secret->get_secretarn( ).
ENDIF.
lv_secretjsonkeytype = lo_stripeprivyconfiguratio->get_appsecretjsonkey( ).
lv_secretsourcetype = lo_stripeprivyconfiguratio->get_appsecretsource( ).
lo_secret = lo_stripeprivyconfiguratio->get_authprivatekeyarn( ).
IF lo_secret IS NOT INITIAL.
lv_secretarn = lo_secret->get_secretarn( ).
ENDIF.
lv_secretjsonkeytype = lo_stripeprivyconfiguratio->get_authprivatekeyjsonkey( ).
lv_secretsourcetype = lo_stripeprivyconfiguratio->get_authprivatekeysource( ).
lv_stripeprivyauthorizatio = lo_stripeprivyconfiguratio->get_authorizationid( ).
ENDIF.
ENDIF.
lv_timestamp = lo_result->get_createdtime( ).
lv_timestamp = lo_result->get_lastupdatedtime( ).
ENDIF.