回复: 0
收起左侧

Stripe OA 面经

本楼:   👍  0
0%
0%
0   👎
全局:   10
100%
0%
0

2023(10-12月) 码农类General 硕士 实习@Stripe - 网上海投 - 在线笔试  | 😃 Positive 😐 AveragePass | 应届毕业生

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x

Stripe 的oa题,For all intents and purposes

#INIT <merchant_id> ‹starting_balance>
# Initializes a merchant with a unique identifier string and starting balance (the amount of money in their account).
# If a merchant with the given identifier has already been created, this command should do nothing.

# CREATE <payment_intent_id> <merchant_id> <amount>
# Creates a Payment Intent for a merchant with a given amount. After creation, the state of the Payment Intent should be REQUIRED_ACTION
# If a Payment Intent with the given identifier already exists, or if a merchant with the given identifier does not exist, or if the amount is negative, this command should do nothing.

# ATTEMPT <payment_intent_id>
# •Transitions a Payment Intent with a given identifier from the REQUIRES_ACTION state to the PROCESSING state.
# •If no Payment Intent with the given identifier exists, or if the state of the Payment Intent is not REQUIRES_ACTION, this command should do nothing

# SUCCEED <payment_intent_id>
# •Transitions a Payment Intent with a given identifier from the PROCESSING state to the COMPLETED state.
# •If no Payment Intent with the given identifier exists, or if the state of the Payment Intent is not PROCESSING, this command should do nothing.


# input:
# INIT m1 0
# INIT m2 10
# CREATE p1 m1 50
# ATTEMPT p1
# SUCCEED p1
# CREATE p2 m2 100
# ATTEMPT p2

# output:
# m1 50
# m2 10

# explanation:
# INIT m1 0 initializes merchant m1 with a starting balance of 0
# INIT m2 10 initializes merchant m2 with a starting balance of 10
# CREATE p1 m1 50 creates a payment intent p1 for merchant m1 with an amount of 50 and initial state of REQUIRES_ACTION
# ATTEMPT p1 transitions p1 from REQUIRES_ACTION to PROCESSING
# SUCCEED p1 from PROCESSING to COMPLETED and increments merchant m1's balance by 50
# CREATE p2 m2 100 creates a payment Intent p2 for merchant m
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
t;
# Processing a refund for a previously successful payment intent in the COMPLETED state. This should decrement the merchant's balance by the amount of the Payment Intent in order to return the funds to the customer.
# • If no Payment intent with the given identifier exists, or if the Payment Intent is not in the COMPLETED state, or if the Payment Intent has already been refunded, this command should do nothing.

感觉stripe的题大部份都有面经,求加米
另外还有几道oa题叫catch me if you can, card meta data







评分

参与人数 2大米 +11 收起 理由
DanielaW + 1 很有用的信息!
清道神君 + 10 欢迎分享你知道的情况,会给更多大米奖励!

查看全部评分


上一篇:Uber 5a VO遇到辣鸡面试官
下一篇:TikTok OA 题目分享
您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

Advertisement
>
快速回复 返回顶部 返回列表