pub struct CreateCharge { /* private fields */ }Expand description
トークンIDまたはカードを保有している顧客IDを指定して支払いを作成します。. テスト用のキーでは、本番用の決済ネットワークへは接続されず、実際の請求が行われることもありません。. 本番用のキーでは、決済ネットワークで処理が行われ、実際の請求が行われます。.
支払いを確定せずに、カードの認証と支払い額のみ確保する場合は、 capture に false を指定してください。.
このとき expiry_days を指定することで、認証の期間を定めることができます。 expiry_days はデフォルトで7日となっており、1日~60日の間で設定が可能です。なお60日に設定した場合、認証期限は59日後の11:59PM(日本時間)までになります。また確保されました与信枠は、expiry_days で設定されました期間を過ぎると解放されるようなっております。.
three_d_secure にtrueを指定することで、3Dセキュアを開始できます。
指定した場合、支払いオブジェクトは作成されますが実際の決済処理は保留された状態になります。.
保留中の支払いは、引数指定の内容に関わらずcapturedはfalse、captured_atはnull、expired_atはnullと表示されます。.
なお、支払い作成から30分を経過すると、3Dセキュアフローはタイムアウトし、処理が進められなくなります。.
3Dセキュアの進め方は、 支払いで3Dセキュアを実施する を参照してください。.
Implementations§
Source§impl CreateCharge
impl CreateCharge
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
概要
Sourcepub fn expiry_days(self, expiry_days: impl Into<u32>) -> Self
pub fn expiry_days(self, expiry_days: impl Into<u32>) -> Self
認証状態が失効するまでの日数
Sourcepub fn platform_fee(self, platform_fee: impl Into<i64>) -> Self
pub fn platform_fee(self, platform_fee: impl Into<i64>) -> Self
PAY.JP Platform のみ設定可能
プラットフォーマーに振り分けられる入金金額。
Sourcepub fn tenant(self, tenant: impl Into<String>) -> Self
pub fn tenant(self, tenant: impl Into<String>) -> Self
PAY.JP Platform のみ設定可能
テナントID
Sourcepub fn three_d_secure(self, three_d_secure: impl Into<bool>) -> Self
pub fn three_d_secure(self, three_d_secure: impl Into<bool>) -> Self
3Dセキュアを行うならtrue
Source§impl CreateCharge
impl CreateCharge
Sourcepub async fn send<C: PayjpClient>(
&self,
client: &C,
) -> Result<<Self as PayjpRequest>::Output, C::Err>
pub async fn send<C: PayjpClient>( &self, client: &C, ) -> Result<<Self as PayjpRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: BlockingClient>(
&self,
client: &C,
) -> Result<<Self as PayjpRequest>::Output, C::Err>
pub fn send_blocking<C: BlockingClient>( &self, client: &C, ) -> Result<<Self as PayjpRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for CreateCharge
impl Clone for CreateCharge
Source§fn clone(&self) -> CreateCharge
fn clone(&self) -> CreateCharge
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more