Upgrade to Pro — share decks privately, control downloads, hide ads and more …

191025 LINE PayとUiPathを連携してみた アイエンター がおまるさん

191025 LINE PayとUiPathを連携してみた アイエンター がおまるさん

RPACommunity

October 25, 2019
Tweet

More Decks by RPACommunity

Other Decks in Technology

Transcript

  1. 31"-5 -*/&1BZܾࡁॲཧ͸7VFKT // ܾࡁ༧໿ let options = { productName: "ϩοΫղআ",

    amount: 1, // ֹۚʢ͜ͷ৔߹͸1ԁʣ currency: "JPY", // ೔ຊԁ orderId: uuid(), confirmUrl: process.env.VUE_APP_LINE_PAY_CONFIRM_URL } pay.reserve(options).then((response) => { let reservation = options reservation.transactionId = response.info.transactionId reservation.paymentUrl = response.info.paymentUrl.web callback(null, { statusCode: 200, body: JSON.stringify(reservation), headers: headers }) }) ɾBNPVOUɿֹۚ ɾPSEFS*Eɿܾࡁ؅ཧ൪߸ ɾDPOpSN6SMɿܾࡁޙભҠ63- ɾSFTFSWFɿॲཧ࣮ߦ IUUQTQBZMJOFNFKQEFWFMPQFSTBQJTPOMJOF"QJT MPDBMFKB@+1 ܾࡁ༧໿
  2. 31"-5 -*/&1BZܾࡁॲཧ͸7VFKT // ܾࡁॲཧ const transactionId = params.get('transactionId') const reservations

    = JSON.parse(params.get('reservations')) let confirmation = { transactionId: transactionId, amount: reservations.amount, currency: reservations.currency } pay.confirm(confirmation).then((response) => { callback(null, { statusCode: 200, body: 'ܾࡁ׬ྃ͠·ͨ͠ʂ', headers: headers }) }) ɾUSBOTBDUJPO*Eɿܾࡁ൪߸ ɾBNPVOUɿܾࡁ࣌ͷֹۚ ɾDVSSFODZɿܾࡁ࣌ͷ೔ຊԁ ɾDPOpSNɿॲཧ࣮ߦ IUUQTQBZMJOFNFKQEFWFMPQFSTBQJTPOMJOF"QJT MPDBMFKB@+1 ܾࡁ֬ೝ