You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(This endpoint is deprecated. Clients should use `/authorization_code`.) Clients use this endpoint to request an authorization_code according to a user, member, and account specified in the request body. Clients then pass this code to processors. Processor access is scoped only to the user/member/account specified in this request. Before requesting an authorization_code, clients must have verified the specified member.
1548
+
1549
+
### Examples
1550
+
1551
+
```ruby
1552
+
require'time'
1553
+
require'mx-platform-ruby'
1554
+
# setup authorization
1555
+
MxPlatformRuby.configure do |config|
1556
+
# Configure HTTP basic authorization: basicAuth
1557
+
config.username ='YOUR USERNAME'
1558
+
config.password ='YOUR PASSWORD'
1559
+
end
1560
+
1561
+
api_instance =MxPlatformRuby::MxPlatformApi.new
1562
+
payment_processor_authorization_code_request_body =MxPlatformRuby::PaymentProcessorAuthorizationCodeRequestBody.new# PaymentProcessorAuthorizationCodeRequestBody | The scope for the authorization code.
1563
+
1564
+
begin
1565
+
# (Deprecated) Request an authorization code.
1566
+
result = api_instance.deprecated_request_payment_processor_authorization_code(payment_processor_authorization_code_request_body)
1567
+
p result
1568
+
rescueMxPlatformRuby::ApiError => e
1569
+
puts"Error when calling MxPlatformApi->deprecated_request_payment_processor_authorization_code: #{e}"
1570
+
end
1571
+
```
1572
+
1573
+
#### Using the deprecated_request_payment_processor_authorization_code_with_http_info variant
1574
+
1575
+
This returns an Array which contains the response data, status code and headers.
p data # => <PaymentProcessorAuthorizationCodeResponseBody>
1586
+
rescueMxPlatformRuby::ApiError => e
1587
+
puts"Error when calling MxPlatformApi->deprecated_request_payment_processor_authorization_code_with_http_info: #{e}"
1588
+
end
1589
+
```
1590
+
1591
+
### Parameters
1592
+
1593
+
| Name | Type | Description | Notes |
1594
+
| ---- | ---- | ----------- | ----- |
1595
+
|**payment_processor_authorization_code_request_body**|[**PaymentProcessorAuthorizationCodeRequestBody**](PaymentProcessorAuthorizationCodeRequestBody.md)| The scope for the authorization code. ||
Clients use this endpoint to request an authorization code according to the parameters specified in the scope. Clients then pass this code to processors. Processor access is scoped only to the GUIDs and features specified in this request. Before requesting an authorization code which includes a member in the scope, clients must have verified that member.
5768
+
5769
+
### Examples
5770
+
5771
+
```ruby
5772
+
require'time'
5773
+
require'mx-platform-ruby'
5774
+
# setup authorization
5775
+
MxPlatformRuby.configure do |config|
5776
+
# Configure HTTP basic authorization: basicAuth
5777
+
config.username ='YOUR USERNAME'
5778
+
config.password ='YOUR PASSWORD'
5779
+
end
5780
+
5781
+
api_instance =MxPlatformRuby::MxPlatformApi.new
5782
+
authorization_code_request_body =MxPlatformRuby::AuthorizationCodeRequestBody.new# AuthorizationCodeRequestBody | The scope for the authorization code.
5783
+
5784
+
begin
5785
+
# Request an authorization code.
5786
+
result = api_instance.request_authorization_code(authorization_code_request_body)
5787
+
p result
5788
+
rescueMxPlatformRuby::ApiError => e
5789
+
puts"Error when calling MxPlatformApi->request_authorization_code: #{e}"
5790
+
end
5791
+
```
5792
+
5793
+
#### Using the request_authorization_code_with_http_info variant
5794
+
5795
+
This returns an Array which contains the response data, status code and headers.
0 commit comments