Sha256: 3177d8381207b3618dfdee3636e691154eb0e50832faa295bb1e42d3dc1d735b
Contents?: true
Size: 553 Bytes
Versions: 9
Compression:
Stored size: 553 Bytes
Contents
# frozen_string_literal: true module SolidusPaypalCommercePlatform class AccessTokenAuthorizationRequest attr_accessor :verb, :path, :headers, :body def initialize(environment:, auth_code:, nonce:) @verb = "POST" @path = "/v1/oauth2/token" @headers = { "Content-Type" => "application/x-www-form-urlencoded", "Authorization" => environment.authorizationString, } @body = { grant_type: "authorization_code", code: auth_code, code_verifier: nonce, } end end end
Version data entries
9 entries across 9 versions & 1 rubygems